forked from openlp/openlp
The validators are avoiding invalid file names resp. invalid CCL numbers
bzr-revno: 1195
This commit is contained in:
commit
0be64426cd
@ -38,6 +38,8 @@ class Ui_FileRenameDialog(object):
|
|||||||
self.fileNameLabel.setObjectName(u'fileNameLabel')
|
self.fileNameLabel.setObjectName(u'fileNameLabel')
|
||||||
self.dialogLayout.addWidget(self.fileNameLabel, 0, 0)
|
self.dialogLayout.addWidget(self.fileNameLabel, 0, 0)
|
||||||
self.fileNameEdit = QtGui.QLineEdit(FileRenameDialog)
|
self.fileNameEdit = QtGui.QLineEdit(FileRenameDialog)
|
||||||
|
self.fileNameEdit.setValidator(QtGui.QRegExpValidator(
|
||||||
|
QtCore.QRegExp(r'[^/\\?*|<>\[\]":<>+%]+'), self))
|
||||||
self.fileNameEdit.setObjectName(u'fileNameEdit')
|
self.fileNameEdit.setObjectName(u'fileNameEdit')
|
||||||
self.dialogLayout.addWidget(self.fileNameEdit, 0, 1)
|
self.dialogLayout.addWidget(self.fileNameEdit, 0, 1)
|
||||||
self.buttonBox = QtGui.QDialogButtonBox(FileRenameDialog)
|
self.buttonBox = QtGui.QDialogButtonBox(FileRenameDialog)
|
||||||
|
@ -139,6 +139,7 @@ class GeneralTab(SettingsTab):
|
|||||||
self.numberLabel = QtGui.QLabel(self.ccliGroupBox)
|
self.numberLabel = QtGui.QLabel(self.ccliGroupBox)
|
||||||
self.numberLabel.setObjectName(u'numberLabel')
|
self.numberLabel.setObjectName(u'numberLabel')
|
||||||
self.numberEdit = QtGui.QLineEdit(self.ccliGroupBox)
|
self.numberEdit = QtGui.QLineEdit(self.ccliGroupBox)
|
||||||
|
self.numberEdit.setValidator(QtGui.QIntValidator())
|
||||||
self.numberEdit.setObjectName(u'numberEdit')
|
self.numberEdit.setObjectName(u'numberEdit')
|
||||||
self.ccliLayout.addRow(self.numberLabel, self.numberEdit)
|
self.ccliLayout.addRow(self.numberLabel, self.numberEdit)
|
||||||
self.usernameLabel = QtGui.QLabel(self.ccliGroupBox)
|
self.usernameLabel = QtGui.QLabel(self.ccliGroupBox)
|
||||||
|
@ -360,6 +360,8 @@ class Ui_ThemeWizard(object):
|
|||||||
self.themeNameLabel = QtGui.QLabel(self.previewPage)
|
self.themeNameLabel = QtGui.QLabel(self.previewPage)
|
||||||
self.themeNameLabel.setObjectName(u'ThemeNameLabel')
|
self.themeNameLabel.setObjectName(u'ThemeNameLabel')
|
||||||
self.themeNameEdit = QtGui.QLineEdit(self.previewPage)
|
self.themeNameEdit = QtGui.QLineEdit(self.previewPage)
|
||||||
|
self.themeNameEdit.setValidator(QtGui.QRegExpValidator(
|
||||||
|
QtCore.QRegExp(r'[^/\\?*|<>\[\]":<>+%]+'), self))
|
||||||
self.themeNameEdit.setObjectName(u'ThemeNameEdit')
|
self.themeNameEdit.setObjectName(u'ThemeNameEdit')
|
||||||
self.themeNameLayout.addRow(self.themeNameLabel, self.themeNameEdit)
|
self.themeNameLayout.addRow(self.themeNameLabel, self.themeNameEdit)
|
||||||
self.previewLayout.addLayout(self.themeNameLayout)
|
self.previewLayout.addLayout(self.themeNameLayout)
|
||||||
|
@ -245,6 +245,7 @@ class Ui_EditSongDialog(object):
|
|||||||
self.CCLILabel.setObjectName(u'CCLILabel')
|
self.CCLILabel.setObjectName(u'CCLILabel')
|
||||||
self.CCLILayout.addWidget(self.CCLILabel)
|
self.CCLILayout.addWidget(self.CCLILabel)
|
||||||
self.CCLNumberEdit = QtGui.QLineEdit(self.rightsGroupBox)
|
self.CCLNumberEdit = QtGui.QLineEdit(self.rightsGroupBox)
|
||||||
|
self.CCLNumberEdit.setValidator(QtGui.QIntValidator())
|
||||||
self.CCLNumberEdit.setObjectName(u'CCLNumberEdit')
|
self.CCLNumberEdit.setObjectName(u'CCLNumberEdit')
|
||||||
self.CCLILayout.addWidget(self.CCLNumberEdit)
|
self.CCLILayout.addWidget(self.CCLNumberEdit)
|
||||||
self.rightsLayout.addLayout(self.CCLILayout)
|
self.rightsLayout.addLayout(self.CCLILayout)
|
||||||
|
Loading…
Reference in New Issue
Block a user