forked from openlp/openlp
Fix bugs with spinboxes spinning madly
This commit is contained in:
parent
6fdd5d028f
commit
13be06d633
@ -71,29 +71,29 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog):
|
|||||||
QtCore.SIGNAL(u'activated(int)'), self.onVerticalComboBoxSelected)
|
QtCore.SIGNAL(u'activated(int)'), self.onVerticalComboBoxSelected)
|
||||||
|
|
||||||
QtCore.QObject.connect(self.FontMainSizeSpinBox,
|
QtCore.QObject.connect(self.FontMainSizeSpinBox,
|
||||||
QtCore.SIGNAL(u'valueChanged(int)'), self.onFontMainSizeSpinBoxChanged)
|
QtCore.SIGNAL(u'editingFinished()'), self.onFontMainSizeSpinBoxChanged)
|
||||||
QtCore.QObject.connect(self.FontFooterSizeSpinBox,
|
QtCore.QObject.connect(self.FontFooterSizeSpinBox,
|
||||||
QtCore.SIGNAL(u'valueChanged(int)'), self.onFontFooterSizeSpinBoxChanged)
|
QtCore.SIGNAL(u'editingFinished()'), self.onFontFooterSizeSpinBoxChanged)
|
||||||
QtCore.QObject.connect(self.FontMainDefaultCheckBox,
|
QtCore.QObject.connect(self.FontMainDefaultCheckBox,
|
||||||
QtCore.SIGNAL(u'stateChanged(int)'), self.onFontMainDefaultCheckBoxChanged)
|
QtCore.SIGNAL(u'stateChanged(int)'), self.onFontMainDefaultCheckBoxChanged)
|
||||||
QtCore.QObject.connect(self.FontMainXSpinBox,
|
QtCore.QObject.connect(self.FontMainXSpinBox,
|
||||||
QtCore.SIGNAL(u'valueChanged(int)'), self.onFontMainXSpinBoxChanged)
|
QtCore.SIGNAL(u'editingFinished()'), self.onFontMainXSpinBoxChanged)
|
||||||
QtCore.QObject.connect(self.FontMainYSpinBox,
|
QtCore.QObject.connect(self.FontMainYSpinBox,
|
||||||
QtCore.SIGNAL(u'valueChanged(int)'), self.onFontMainYSpinBoxChanged)
|
QtCore.SIGNAL(u'editingFinished()'), self.onFontMainYSpinBoxChanged)
|
||||||
QtCore.QObject.connect(self.FontMainWidthSpinBox,
|
QtCore.QObject.connect(self.FontMainWidthSpinBox,
|
||||||
QtCore.SIGNAL(u'valueChanged(int)'), self.onFontMainWidthSpinBoxChanged)
|
QtCore.SIGNAL(u'editingFinished()'), self.onFontMainWidthSpinBoxChanged)
|
||||||
QtCore.QObject.connect(self.FontMainHeightSpinBox,
|
QtCore.QObject.connect(self.FontMainHeightSpinBox,
|
||||||
QtCore.SIGNAL(u'valueChanged(int)'), self.onFontMainHeightSpinBoxChanged)
|
QtCore.SIGNAL(u'editingFinished()'), self.onFontMainHeightSpinBoxChanged)
|
||||||
QtCore.QObject.connect(self.FontFooterDefaultCheckBox,
|
QtCore.QObject.connect(self.FontFooterDefaultCheckBox,
|
||||||
QtCore.SIGNAL(u'stateChanged(int)'), self.onFontFooterDefaultCheckBoxChanged)
|
QtCore.SIGNAL(u'stateChanged(int)'), self.onFontFooterDefaultCheckBoxChanged)
|
||||||
QtCore.QObject.connect(self.FontFooterXSpinBox,
|
QtCore.QObject.connect(self.FontFooterXSpinBox,
|
||||||
QtCore.SIGNAL(u'valueChanged(int)'), self.onFontFooterXSpinBoxChanged)
|
QtCore.SIGNAL(u'editingFinished()'), self.onFontFooterXSpinBoxChanged)
|
||||||
QtCore.QObject.connect(self.FontFooterYSpinBox,
|
QtCore.QObject.connect(self.FontFooterYSpinBox,
|
||||||
QtCore.SIGNAL(u'valueChanged(int)'), self.onFontFooterYSpinBoxChanged)
|
QtCore.SIGNAL(u'editingFinished()'), self.onFontFooterYSpinBoxChanged)
|
||||||
QtCore.QObject.connect(self.FontFooterWidthSpinBox,
|
QtCore.QObject.connect(self.FontFooterWidthSpinBox,
|
||||||
QtCore.SIGNAL(u'valueChanged(int)'), self.onFontFooterWidthSpinBoxChanged)
|
QtCore.SIGNAL(u'editingFinished()'), self.onFontFooterWidthSpinBoxChanged)
|
||||||
QtCore.QObject.connect(self.FontFooterHeightSpinBox,
|
QtCore.QObject.connect(self.FontFooterHeightSpinBox,
|
||||||
QtCore.SIGNAL(u'valueChanged(int)'), self.onFontFooterHeightSpinBoxChanged)
|
QtCore.SIGNAL(u'editingFinished()'), self.onFontFooterHeightSpinBoxChanged)
|
||||||
QtCore.QObject.connect(self.OutlineCheckBox,
|
QtCore.QObject.connect(self.OutlineCheckBox,
|
||||||
QtCore.SIGNAL(u'stateChanged(int)'), self.onOutlineCheckBoxChanged)
|
QtCore.SIGNAL(u'stateChanged(int)'), self.onOutlineCheckBoxChanged)
|
||||||
QtCore.QObject.connect(self.ShadowCheckBox,
|
QtCore.QObject.connect(self.ShadowCheckBox,
|
||||||
@ -167,9 +167,10 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog):
|
|||||||
u'background-color: %s' % unicode(self.theme.font_main_color))
|
u'background-color: %s' % unicode(self.theme.font_main_color))
|
||||||
self.previewTheme(self.theme)
|
self.previewTheme(self.theme)
|
||||||
|
|
||||||
def onFontMainSizeSpinBoxChanged(self, value):
|
def onFontMainSizeSpinBoxChanged(self):
|
||||||
self.theme.font_main_proportion = value
|
if self.theme.font_main_proportion != self.FontMainSizeSpinBox.value():
|
||||||
self.previewTheme(self.theme)
|
self.theme.font_main_proportion = self.FontMainSizeSpinBox.value()
|
||||||
|
self.previewTheme(self.theme)
|
||||||
|
|
||||||
def onFontMainDefaultCheckBoxChanged(self, value):
|
def onFontMainDefaultCheckBoxChanged(self, value):
|
||||||
if value == 2: # checked
|
if value == 2: # checked
|
||||||
@ -190,21 +191,25 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog):
|
|||||||
self.stateChanging(self.theme)
|
self.stateChanging(self.theme)
|
||||||
self.previewTheme(self.theme)
|
self.previewTheme(self.theme)
|
||||||
|
|
||||||
def onFontMainXSpinBoxChanged(self, value):
|
def onFontMainXSpinBoxChanged(self):
|
||||||
self.theme.font_main_x = value
|
if self.theme.font_main_x != self.FontMainXSpinBox.value():
|
||||||
self.previewTheme(self.theme)
|
self.theme.font_main_x = self.FontMainXSpinBox.value()
|
||||||
|
self.previewTheme(self.theme)
|
||||||
|
|
||||||
def onFontMainYSpinBoxChanged(self, value):
|
def onFontMainYSpinBoxChanged(self):
|
||||||
self.theme.font_main_y = value
|
if self.theme.font_main_y != self.FontMainYSpinBox.value():
|
||||||
self.previewTheme(self.theme)
|
self.theme.font_main_y = self.FontMainYSpinBox.value()
|
||||||
|
self.previewTheme(self.theme)
|
||||||
|
|
||||||
def onFontMainWidthSpinBoxChanged(self, value):
|
def onFontMainWidthSpinBoxChanged(self):
|
||||||
self.theme.font_main_width = value
|
if self.theme.font_main_width != self.FontMainWidthSpinBox.value():
|
||||||
self.previewTheme(self.theme)
|
self.theme.font_main_width = self.FontMainWidthSpinBox.value()
|
||||||
|
self.previewTheme(self.theme)
|
||||||
|
|
||||||
def onFontMainHeightSpinBoxChanged(self, value):
|
def onFontMainHeightSpinBoxChanged(self):
|
||||||
self.theme.font_main_height = value
|
if self.theme.font_main_height != self.FontMainHeightSpinBox.value():
|
||||||
self.previewTheme(self.theme)
|
self.theme.font_main_height = self.FontMainHeightSpinBox.value()
|
||||||
|
self.previewTheme(self.theme)
|
||||||
#
|
#
|
||||||
#Footer Font Tab
|
#Footer Font Tab
|
||||||
#
|
#
|
||||||
@ -220,9 +225,10 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog):
|
|||||||
'background-color: %s' % unicode(self.theme.font_footer_color))
|
'background-color: %s' % unicode(self.theme.font_footer_color))
|
||||||
self.previewTheme(self.theme)
|
self.previewTheme(self.theme)
|
||||||
|
|
||||||
def onFontFooterSizeSpinBoxChanged(self, value):
|
def onFontFooterSizeSpinBoxChanged(self):
|
||||||
self.theme.font_footer_proportion = value
|
if self.theme.font_footer_proportion != self.FontFooterSizeSpinBox.value():
|
||||||
self.previewTheme(self.theme)
|
self.theme.font_footer_proportion = self.FontFooterSizeSpinBox.value()
|
||||||
|
self.previewTheme(self.theme)
|
||||||
|
|
||||||
def onFontFooterDefaultCheckBoxChanged(self, value):
|
def onFontFooterDefaultCheckBoxChanged(self, value):
|
||||||
if value == 2: # checked
|
if value == 2: # checked
|
||||||
@ -245,22 +251,25 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog):
|
|||||||
self.stateChanging(self.theme)
|
self.stateChanging(self.theme)
|
||||||
self.previewTheme(self.theme)
|
self.previewTheme(self.theme)
|
||||||
|
|
||||||
def onFontFooterXSpinBoxChanged(self, value):
|
def onFontFooterXSpinBoxChanged(self):
|
||||||
self.theme.font_footer_x = value
|
if self.theme.font_footer_x != self.FontFooterXSpinBox.value():
|
||||||
self.previewTheme(self.theme)
|
self.theme.font_footer_x = self.FontFooterXSpinBox.value()
|
||||||
|
self.previewTheme(self.theme)
|
||||||
|
|
||||||
def onFontFooterYSpinBoxChanged(self, value):
|
def onFontFooterYSpinBoxChanged(self):
|
||||||
self.theme.font_footer_y = value
|
if self.theme.font_footer_y != self.FontFooterYSpinBox.value():
|
||||||
self.previewTheme(self.theme)
|
self.theme.font_footer_y = self.FontFooterYSpinBox.value()
|
||||||
|
self.previewTheme(self.theme)
|
||||||
|
|
||||||
def onFontFooterWidthSpinBoxChanged(self, value):
|
def onFontFooterWidthSpinBoxChanged(self):
|
||||||
self.theme.font_footer_width = value
|
if self.theme.font_footer_width != self.FontFooterWidthSpinBox.value():
|
||||||
self.previewTheme(self.theme)
|
self.theme.font_footer_width = self.FontFooterWidthSpinBox.value()
|
||||||
|
self.previewTheme(self.theme)
|
||||||
def onFontFooterHeightSpinBoxChanged(self, value):
|
|
||||||
self.theme.font_footer_height = value
|
|
||||||
self.previewTheme(self.theme)
|
|
||||||
|
|
||||||
|
def onFontFooterHeightSpinBoxChanged(self):
|
||||||
|
if self.theme.font_footer_height != self.FontFooterHeightSpinBox.value():
|
||||||
|
self.theme.font_footer_height = self.FontFooterHeightSpinBox.value()
|
||||||
|
self.previewTheme(self.theme)
|
||||||
#
|
#
|
||||||
#Background Tab
|
#Background Tab
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user