Plugins/WizardPlugins/QRegExpWizard/QRegExpWizardDialog.py

branch
Py2 comp.
changeset 2791
a9577f248f04
parent 2525
8b507a9a2d40
parent 2752
5d556f9040e3
child 2847
1843ef6e2656
equal deleted inserted replaced
2790:6686a3326df8 2791:a9577f248f04
95 self.nextButton.setToolTip( 95 self.nextButton.setToolTip(
96 self.trUtf8("Show the next match of the regular expression")) 96 self.trUtf8("Show the next match of the regular expression"))
97 self.nextButton.setEnabled(False) 97 self.nextButton.setEnabled(False)
98 98
99 if fromEric: 99 if fromEric:
100 self.buttonBox.button(QDialogButtonBox.Close).hide() 100 self.buttonBox.setStandardButtons(
101 QDialogButtonBox.Cancel | QDialogButtonBox.Ok)
101 self.copyButton = None 102 self.copyButton = None
102 else: 103 else:
103 self.copyButton = \ 104 self.copyButton = \
104 self.buttonBox.addButton(self.trUtf8("Copy"), QDialogButtonBox.ActionRole) 105 self.buttonBox.addButton(self.trUtf8("Copy"), QDialogButtonBox.ActionRole)
105 self.copyButton.setToolTip( 106 self.copyButton.setToolTip(
106 self.trUtf8("Copy the regular expression to the clipboard")) 107 self.trUtf8("Copy the regular expression to the clipboard"))
107 self.buttonBox.button(QDialogButtonBox.Ok).hide() 108 self.buttonBox.setStandardButtons(QDialogButtonBox.Close)
108 self.buttonBox.button(QDialogButtonBox.Cancel).hide()
109 self.variableLabel.hide() 109 self.variableLabel.hide()
110 self.variableLineEdit.hide() 110 self.variableLineEdit.hide()
111 self.variableLine.hide() 111 self.variableLine.hide()
112 self.regexpLineEdit.setFocus() 112 self.regexpLineEdit.setFocus()
113 113

eric ide

mercurial