forked from openlp/openlp
Lowercased config settings (they are case insensitive).
Made text render antialiased.
This commit is contained in:
parent
461acc2bc8
commit
a3714e98d1
@ -539,6 +539,7 @@ class Renderer(object):
|
|||||||
# setup defaults
|
# setup defaults
|
||||||
painter = QtGui.QPainter()
|
painter = QtGui.QPainter()
|
||||||
painter.begin(self._frame)
|
painter.begin(self._frame)
|
||||||
|
painter.setRenderHint(QtGui.QPainter.Antialiasing);
|
||||||
if footer :
|
if footer :
|
||||||
font = self.footerFont
|
font = self.footerFont
|
||||||
else:
|
else:
|
||||||
|
@ -556,7 +556,7 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
|
|||||||
here. Currently it is set to default to monitor 0 if the saved
|
here. Currently it is set to default to monitor 0 if the saved
|
||||||
monitor number does not exist.
|
monitor number does not exist.
|
||||||
"""
|
"""
|
||||||
screen_number = int(self.generalConfig.get_config(u'Monitor', 0))
|
screen_number = int(self.generalConfig.get_config(u'monitor', 0))
|
||||||
monitor_exists = False
|
monitor_exists = False
|
||||||
for screen in self.screenList:
|
for screen in self.screenList:
|
||||||
if screen[u'number'] == screen_number:
|
if screen[u'number'] == screen_number:
|
||||||
@ -575,16 +575,16 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
|
|||||||
if self.mainDisplay.isVisible():
|
if self.mainDisplay.isVisible():
|
||||||
self.mainDisplay.setFocus()
|
self.mainDisplay.setFocus()
|
||||||
self.activateWindow()
|
self.activateWindow()
|
||||||
if str_to_bool(self.generalConfig.get_config(u'Auto Open', False)):
|
if str_to_bool(self.generalConfig.get_config(u'auto open', False)):
|
||||||
self.ServiceManagerContents.onLoadService(True)
|
self.ServiceManagerContents.onLoadService(True)
|
||||||
if str_to_bool(self.generalConfig.get_config(u'Screen Blank', False)) \
|
if str_to_bool(self.generalConfig.get_config(u'screen blank', False)) \
|
||||||
and str_to_bool(self.generalConfig.get_config(u'Blank Warning', False)):
|
and str_to_bool(self.generalConfig.get_config(u'blank warning', False)):
|
||||||
QtGui.QMessageBox.question(None,
|
QtGui.QMessageBox.question(None,
|
||||||
self.trUtf8(u'OpenLP Main Display Blanked'),
|
self.trUtf8(u'OpenLP Main Display Blanked'),
|
||||||
self.trUtf8(u'The Main Display has been blanked out'),
|
self.trUtf8(u'The Main Display has been blanked out'),
|
||||||
QtGui.QMessageBox.StandardButtons(QtGui.QMessageBox.Ok),
|
QtGui.QMessageBox.StandardButtons(QtGui.QMessageBox.Ok),
|
||||||
QtGui.QMessageBox.Ok)
|
QtGui.QMessageBox.Ok)
|
||||||
self.LiveController.blackPushButton.setChecked(True)
|
self.LiveController.blankButton.setChecked(True)
|
||||||
|
|
||||||
def onHelpAboutItemClicked(self):
|
def onHelpAboutItemClicked(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user