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 |