Plugins/WizardPlugins/QRegExpWizard/QRegExpWizardDialog.py

changeset 2752
5d556f9040e3
parent 2407
b98cc8ee1142
child 2791
a9577f248f04
child 2824
858412c29c34
equal deleted inserted replaced
2751:5f7d5ce932fc 2752:5d556f9040e3
93 self.nextButton.setToolTip( 93 self.nextButton.setToolTip(
94 self.trUtf8("Show the next match of the regular expression")) 94 self.trUtf8("Show the next match of the regular expression"))
95 self.nextButton.setEnabled(False) 95 self.nextButton.setEnabled(False)
96 96
97 if fromEric: 97 if fromEric:
98 self.buttonBox.button(QDialogButtonBox.Close).hide() 98 self.buttonBox.setStandardButtons(
99 QDialogButtonBox.Cancel | QDialogButtonBox.Ok)
99 self.copyButton = None 100 self.copyButton = None
100 else: 101 else:
101 self.copyButton = \ 102 self.copyButton = \
102 self.buttonBox.addButton(self.trUtf8("Copy"), QDialogButtonBox.ActionRole) 103 self.buttonBox.addButton(self.trUtf8("Copy"), QDialogButtonBox.ActionRole)
103 self.copyButton.setToolTip( 104 self.copyButton.setToolTip(
104 self.trUtf8("Copy the regular expression to the clipboard")) 105 self.trUtf8("Copy the regular expression to the clipboard"))
105 self.buttonBox.button(QDialogButtonBox.Ok).hide() 106 self.buttonBox.setStandardButtons(QDialogButtonBox.Close)
106 self.buttonBox.button(QDialogButtonBox.Cancel).hide()
107 self.variableLabel.hide() 107 self.variableLabel.hide()
108 self.variableLineEdit.hide() 108 self.variableLineEdit.hide()
109 self.variableLine.hide() 109 self.variableLine.hide()
110 self.regexpLineEdit.setFocus() 110 self.regexpLineEdit.setFocus()
111 111

eric ide

mercurial