openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #08109
[Merge] lp:~googol-hush/openlp/tweaks into lp:openlp
Andreas Preikschat has proposed merging lp:~googol-hush/openlp/tweaks into lp:openlp.
Requested reviews:
OpenLP Core (openlp-core)
For more details, see:
https://code.launchpad.net/~googol-hush/openlp/tweaks/+merge/58028
Hello,
- "Preview Panel" and "Live Panel" work again
- fixed an untranslated string
--
https://code.launchpad.net/~googol-hush/openlp/tweaks/+merge/58028
Your team OpenLP Core is requested to review the proposed merge of lp:~googol-hush/openlp/tweaks into lp:openlp.
=== modified file 'openlp/core/lib/ui.py'
--- openlp/core/lib/ui.py 2011-04-15 21:55:11 +0000
+++ openlp/core/lib/ui.py 2011-04-17 12:08:30 +0000
@@ -323,7 +323,7 @@
action.setShortcutContext(context)
action_list = ActionList.get_instance()
action_list.add_action(action, category)
- QtCore.QObject.connect(action, QtCore.SIGNAL(u'triggered()'), function)
+ QtCore.QObject.connect(action, QtCore.SIGNAL(u'triggered(bool)'), function)
return action
def context_menu_action(base, icon, text, slot, shortcuts=None, category=None,
@@ -356,7 +356,7 @@
action = QtGui.QAction(text, base)
if icon:
action.setIcon(build_icon(icon))
- QtCore.QObject.connect(action, QtCore.SIGNAL(u'triggered()'), slot)
+ QtCore.QObject.connect(action, QtCore.SIGNAL(u'triggered(bool)'), slot)
if shortcuts is not None:
action.setShortcuts(shortcuts)
action.setShortcutContext(context)
=== modified file 'openlp/core/ui/mainwindow.py'
--- openlp/core/ui/mainwindow.py 2011-04-15 21:43:59 +0000
+++ openlp/core/ui/mainwindow.py 2011-04-17 12:08:30 +0000
@@ -896,7 +896,7 @@
def toggleThemeManager(self):
self.themeManagerDock.setVisible(not self.themeManagerDock.isVisible())
- def setPreviewPanelVisibility(self, visible=None):
+ def setPreviewPanelVisibility(self, visible):
"""
Sets the visibility of the preview panel including saving the setting
and updating the menu.
@@ -906,14 +906,12 @@
True - Visible
False - Hidden
"""
- if visible is None:
- visible = self.ViewPreviewPanel.isVisible()
self.previewController.panel.setVisible(visible)
QtCore.QSettings().setValue(u'user interface/preview panel',
QtCore.QVariant(visible))
self.ViewPreviewPanel.setChecked(visible)
- def setLivePanelVisibility(self, visible=None):
+ def setLivePanelVisibility(self, visible):
"""
Sets the visibility of the live panel including saving the setting and
updating the menu.
@@ -923,8 +921,6 @@
True - Visible
False - Hidden
"""
- if visible is None:
- visible = self.ViewLivePanel.isVisible()
self.liveController.panel.setVisible(visible)
QtCore.QSettings().setValue(u'user interface/live panel',
QtCore.QVariant(visible))
@@ -1011,4 +1007,4 @@
self.recentFiles.insert(0, QtCore.QString(filename))
while self.recentFiles.count() > maxRecentFiles:
# Don't care what API says takeLast works, removeLast doesn't!
- self.recentFiles.takeLast()
\ No newline at end of file
+ self.recentFiles.takeLast()
=== modified file 'openlp/core/ui/servicemanager.py'
--- openlp/core/ui/servicemanager.py 2011-04-16 20:10:21 +0000
+++ openlp/core/ui/servicemanager.py 2011-04-17 12:08:30 +0000
@@ -347,7 +347,8 @@
has been modified.
"""
self._modified = modified
- serviceFile = self.shortFileName() or u'Untitled Service'
+ serviceFile = self.shortFileName() or translate(
+ 'OpenLP.ServiceManager', 'Untitled Service')
self.mainwindow.setServiceModified(modified, serviceFile)
def isModified(self):
Follow ups