forked from openlp/openlp
Fix Override state on theme edit dialog so the display and values are correct.
bzr-revno: 1253 Fixes: https://launchpad.net/bugs/710065
This commit is contained in:
commit
03be2211bb
@ -272,14 +272,18 @@ class ThemeForm(QtGui.QWizard, Ui_ThemeWizard):
|
|||||||
def onMainPositionCheckBoxStateChanged(self, value):
|
def onMainPositionCheckBoxStateChanged(self, value):
|
||||||
"""
|
"""
|
||||||
Change state as Main Area Position check box changed
|
Change state as Main Area Position check box changed
|
||||||
|
NOTE the font_main_override is the inverse of the check box value
|
||||||
"""
|
"""
|
||||||
self.theme.font_main_override = (value == QtCore.Qt.Checked)
|
if self.updateThemeAllowed:
|
||||||
|
self.theme.font_main_override = not (value == QtCore.Qt.Checked)
|
||||||
|
|
||||||
def onFooterPositionCheckBoxStateChanged(self, value):
|
def onFooterPositionCheckBoxStateChanged(self, value):
|
||||||
"""
|
"""
|
||||||
Change state as Footer Area Position check box changed
|
Change state as Footer Area Position check box changed
|
||||||
|
NOTE the font_footer_override is the inverse of the check box value
|
||||||
"""
|
"""
|
||||||
self.theme.font_footer_override = (value == QtCore.Qt.Checked)
|
if self.updateThemeAllowed:
|
||||||
|
self.theme.font_footer_override = not (value == QtCore.Qt.Checked)
|
||||||
|
|
||||||
def exec_(self, edit=False):
|
def exec_(self, edit=False):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user