34 def __init__(self, parent=None, fromEric=True): |
34 def __init__(self, parent=None, fromEric=True): |
35 """ |
35 """ |
36 Constructor |
36 Constructor |
37 |
37 |
38 @param parent parent widget (QWidget) |
38 @param parent parent widget (QWidget) |
39 @param fromEric flag indicating a call from within eric5 |
39 @param fromEric flag indicating a call from within eric6 |
40 """ |
40 """ |
41 super(QRegExpWizardWidget, self).__init__(parent) |
41 super(QRegExpWizardWidget, self).__init__(parent) |
42 self.setupUi(self) |
42 self.setupUi(self) |
43 |
43 |
44 # initialize icons of the tool buttons |
44 # initialize icons of the tool buttons |
409 @pyqtSlot() |
409 @pyqtSlot() |
410 def on_copyButton_clicked(self): |
410 def on_copyButton_clicked(self): |
411 """ |
411 """ |
412 Private slot to copy the regexp string into the clipboard. |
412 Private slot to copy the regexp string into the clipboard. |
413 |
413 |
414 This slot is only available, if not called from within eric5. |
414 This slot is only available, if not called from within eric6. |
415 """ |
415 """ |
416 escaped = self.regexpLineEdit.text() |
416 escaped = self.regexpLineEdit.text() |
417 if escaped: |
417 if escaped: |
418 escaped = escaped.replace("\\", "\\\\") |
418 escaped = escaped.replace("\\", "\\\\") |
419 cb = QApplication.clipboard() |
419 cb = QApplication.clipboard() |
664 def __init__(self, parent=None, fromEric=True): |
664 def __init__(self, parent=None, fromEric=True): |
665 """ |
665 """ |
666 Constructor |
666 Constructor |
667 |
667 |
668 @param parent parent widget (QWidget) |
668 @param parent parent widget (QWidget) |
669 @param fromEric flag indicating a call from within eric5 |
669 @param fromEric flag indicating a call from within eric6 |
670 """ |
670 """ |
671 super(QRegExpWizardDialog, self).__init__(parent) |
671 super(QRegExpWizardDialog, self).__init__(parent) |
672 self.setModal(fromEric) |
672 self.setModal(fromEric) |
673 self.setSizeGripEnabled(True) |
673 self.setSizeGripEnabled(True) |
674 |
674 |