forked from openlp/openlp
fixed #1204629 and made the validation more robust by checking the open dialog
This commit is contained in:
parent
208e1c2e1e
commit
3236af354c
@ -71,6 +71,7 @@ class ThemeForm(QtGui.QWizard, Ui_ThemeWizard):
|
|||||||
self.gradientStartButton.clicked.connect(self.onGradientStartButtonClicked)
|
self.gradientStartButton.clicked.connect(self.onGradientStartButtonClicked)
|
||||||
self.gradientEndButton.clicked.connect(self.onGradientEndButtonClicked)
|
self.gradientEndButton.clicked.connect(self.onGradientEndButtonClicked)
|
||||||
self.imageBrowseButton.clicked.connect(self.onImageBrowseButtonClicked)
|
self.imageBrowseButton.clicked.connect(self.onImageBrowseButtonClicked)
|
||||||
|
self.imageFileEdit.editingFinished.connect(self.onImageFileEditEditingFinished)
|
||||||
self.mainColorButton.clicked.connect(self.onMainColorButtonClicked)
|
self.mainColorButton.clicked.connect(self.onMainColorButtonClicked)
|
||||||
self.outlineColorButton.clicked.connect(self.onOutlineColorButtonClicked)
|
self.outlineColorButton.clicked.connect(self.onOutlineColorButtonClicked)
|
||||||
self.shadowColorButton.clicked.connect(self.onShadowColorButtonClicked)
|
self.shadowColorButton.clicked.connect(self.onShadowColorButtonClicked)
|
||||||
@ -441,6 +442,12 @@ class ThemeForm(QtGui.QWizard, Ui_ThemeWizard):
|
|||||||
self.theme.background_filename = unicode(filename)
|
self.theme.background_filename = unicode(filename)
|
||||||
self.setBackgroundPageValues()
|
self.setBackgroundPageValues()
|
||||||
|
|
||||||
|
def onImageFileEditEditingFinished(self):
|
||||||
|
"""
|
||||||
|
Background image path edited
|
||||||
|
"""
|
||||||
|
self.theme.background_filename = unicode(self.imageFileEdit.text())
|
||||||
|
|
||||||
def onMainColorButtonClicked(self):
|
def onMainColorButtonClicked(self):
|
||||||
"""
|
"""
|
||||||
Set the main colour value
|
Set the main colour value
|
||||||
|
Loading…
Reference in New Issue
Block a user