forked from openlp/openlp
clean up
This commit is contained in:
parent
4792a73bb4
commit
0bb1ec6db5
@ -257,6 +257,7 @@ class OpenLP(QtGui.QApplication):
|
|||||||
if not applicationStart:
|
if not applicationStart:
|
||||||
# Reload setting tabs to apply possible changes.
|
# Reload setting tabs to apply possible changes.
|
||||||
self.mainWindow.settingsForm.reload()
|
self.mainWindow.settingsForm.reload()
|
||||||
|
#Receiver.send_message(u'config_screen_changed')
|
||||||
# TODO: Make the new (second) monitor the live display.
|
# TODO: Make the new (second) monitor the live display.
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
@ -30,8 +30,6 @@ displays.
|
|||||||
import logging
|
import logging
|
||||||
import copy
|
import copy
|
||||||
|
|
||||||
from openlp.core.lib import Receiver
|
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
class ScreenList(object):
|
class ScreenList(object):
|
||||||
@ -82,11 +80,11 @@ class ScreenList(object):
|
|||||||
``newScreen``
|
``newScreen``
|
||||||
A dict with the new properties of the screen::
|
A dict with the new properties of the screen::
|
||||||
|
|
||||||
{
|
{
|
||||||
u'primary': True,
|
u'primary': True,
|
||||||
u'number': 0,
|
u'number': 0,
|
||||||
u'size': PyQt4.QtCore.QRect(0, 0, 1024, 768)
|
u'size': PyQt4.QtCore.QRect(0, 0, 1024, 768)
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
print u'update_screen %s' % newScreen[u'number']
|
print u'update_screen %s' % newScreen[u'number']
|
||||||
log.info(u'update_screen %d' % newScreen[u'number'])
|
log.info(u'update_screen %d' % newScreen[u'number'])
|
||||||
@ -99,7 +97,6 @@ class ScreenList(object):
|
|||||||
if oldScreen == self.override:
|
if oldScreen == self.override:
|
||||||
self.override = copy.deepcopy(newScreen)
|
self.override = copy.deepcopy(newScreen)
|
||||||
self.set_override_display()
|
self.set_override_display()
|
||||||
Receiver.send_message(u'config_screen_changed')
|
|
||||||
break
|
break
|
||||||
|
|
||||||
def remove_screen(self, number):
|
def remove_screen(self, number):
|
||||||
|
@ -113,6 +113,5 @@ class SettingsForm(QtGui.QDialog, Ui_SettingsDialog):
|
|||||||
Reload all tabs to update settings which have been changed and are
|
Reload all tabs to update settings which have been changed and are
|
||||||
outside of our scope.
|
outside of our scope.
|
||||||
"""
|
"""
|
||||||
print u'reload'
|
|
||||||
for tabIndex in range(0, self.settingsTabWidget.count()):
|
for tabIndex in range(0, self.settingsTabWidget.count()):
|
||||||
self.settingsTabWidget.widget(tabIndex).load()
|
self.settingsTabWidget.widget(tabIndex).load()
|
||||||
|
Loading…
Reference in New Issue
Block a user