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 |