31 def __init__(self, parent = None, fromEric = True): |
31 def __init__(self, parent = None, fromEric = True): |
32 """ |
32 """ |
33 Constructor |
33 Constructor |
34 |
34 |
35 @param parent parent widget (QWidget) |
35 @param parent parent widget (QWidget) |
36 @param fromEric flag indicating a call from within eric4 |
36 @param fromEric flag indicating a call from within eric5 |
37 """ |
37 """ |
38 QWidget.__init__(self,parent) |
38 QWidget.__init__(self,parent) |
39 self.setupUi(self) |
39 self.setupUi(self) |
40 |
40 |
41 # initialize icons of the tool buttons |
41 # initialize icons of the tool buttons |
273 @pyqtSlot() |
273 @pyqtSlot() |
274 def on_copyButton_clicked(self): |
274 def on_copyButton_clicked(self): |
275 """ |
275 """ |
276 Private slot to copy the regexp string into the clipboard. |
276 Private slot to copy the regexp string into the clipboard. |
277 |
277 |
278 This slot is only available, if not called from within eric4. |
278 This slot is only available, if not called from within eric5. |
279 """ |
279 """ |
280 escaped = self.regexpLineEdit.text() |
280 escaped = self.regexpLineEdit.text() |
281 if escaped: |
281 if escaped: |
282 escaped = escaped.replace("\\", "\\\\") |
282 escaped = escaped.replace("\\", "\\\\") |
283 cb = QApplication.clipboard() |
283 cb = QApplication.clipboard() |
482 def __init__(self, parent = None, fromEric = True): |
482 def __init__(self, parent = None, fromEric = True): |
483 """ |
483 """ |
484 Constructor |
484 Constructor |
485 |
485 |
486 @param parent parent widget (QWidget) |
486 @param parent parent widget (QWidget) |
487 @param fromEric flag indicating a call from within eric4 |
487 @param fromEric flag indicating a call from within eric5 |
488 """ |
488 """ |
489 QDialog.__init__(self, parent) |
489 QDialog.__init__(self, parent) |
490 self.setModal(fromEric) |
490 self.setModal(fromEric) |
491 self.setSizeGripEnabled(True) |
491 self.setSizeGripEnabled(True) |
492 |
492 |