openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #06311
[Merge] lp:~googol-hush/openlp/OpenLyrics into lp:openlp
Andreas Preikschat has proposed merging lp:~googol-hush/openlp/OpenLyrics into lp:openlp.
Requested reviews:
OpenLP Core (openlp-core)
For more details, see:
https://code.launchpad.net/~googol-hush/openlp/OpenLyrics/+merge/50184
Hello!
- clear search edit line when starting the wizard again
- changed the "uncheck all" and "check all" buttons check/uncheck only those songs which are currently visible. This enables the user to perform more advanced searches.
Cheers
--
https://code.launchpad.net/~googol-hush/openlp/OpenLyrics/+merge/50184
Your team OpenLP Core is requested to review the proposed merge of lp:~googol-hush/openlp/OpenLyrics into lp:openlp.
=== modified file 'openlp/plugins/songs/forms/songexportform.py'
--- openlp/plugins/songs/forms/songexportform.py 2011-02-10 19:28:17 +0000
+++ openlp/plugins/songs/forms/songexportform.py 2011-02-17 16:31:28 +0000
@@ -252,6 +252,7 @@
self.availableListWidget.clear()
self.selectedListWidget.clear()
self.directoryLineEdit.clear()
+ self.searchLineEdit.clear()
# Load the list of songs.
Receiver.send_message(u'cursor_busy')
songs = self.plugin.manager.get_all_objects(Song)
@@ -340,19 +341,21 @@
def onUncheckButtonClicked(self):
"""
- The *uncheckButton* has been clicked. Set all songs unchecked.
+ The *uncheckButton* has been clicked. Set all visible songs unchecked.
"""
for row in range(self.availableListWidget.count()):
item = self.availableListWidget.item(row)
- item.setCheckState(QtCore.Qt.Unchecked)
+ if not item.isHidden():
+ item.setCheckState(QtCore.Qt.Unchecked)
def onCheckButtonClicked(self):
"""
- The *checkButton* has been clicked. Set all songs checked.
+ The *checkButton* has been clicked. Set all visible songs checked.
"""
for row in range(self.availableListWidget.count()):
item = self.availableListWidget.item(row)
- item.setCheckState(QtCore.Qt.Checked)
+ if not item.isHidden():
+ item.setCheckState(QtCore.Qt.Checked)
def onDirectoryButtonClicked(self):
"""
Follow ups