39 def __init__(self, parent=None, fromEric=True): |
39 def __init__(self, parent=None, fromEric=True): |
40 """ |
40 """ |
41 Constructor |
41 Constructor |
42 |
42 |
43 @param parent parent widget (QWidget) |
43 @param parent parent widget (QWidget) |
44 @param fromEric flag indicating a call from within eric5 |
44 @param fromEric flag indicating a call from within eric6 |
45 """ |
45 """ |
46 super(QRegularExpressionWizardWidget, self).__init__(parent) |
46 super(QRegularExpressionWizardWidget, self).__init__(parent) |
47 self.setupUi(self) |
47 self.setupUi(self) |
48 |
48 |
49 # initialize icons of the tool buttons |
49 # initialize icons of the tool buttons |
460 @pyqtSlot() |
460 @pyqtSlot() |
461 def on_copyButton_clicked(self): |
461 def on_copyButton_clicked(self): |
462 """ |
462 """ |
463 Private slot to copy the QRegularExpression string into the clipboard. |
463 Private slot to copy the QRegularExpression string into the clipboard. |
464 |
464 |
465 This slot is only available, if not called from within eric5. |
465 This slot is only available, if not called from within eric6. |
466 """ |
466 """ |
467 escaped = self.regexpTextEdit.toPlainText() |
467 escaped = self.regexpTextEdit.toPlainText() |
468 if escaped: |
468 if escaped: |
469 escaped = escaped.replace("\\", "\\\\") |
469 escaped = escaped.replace("\\", "\\\\") |
470 cb = QApplication.clipboard() |
470 cb = QApplication.clipboard() |
779 def __init__(self, parent=None, fromEric=True): |
779 def __init__(self, parent=None, fromEric=True): |
780 """ |
780 """ |
781 Constructor |
781 Constructor |
782 |
782 |
783 @param parent parent widget (QWidget) |
783 @param parent parent widget (QWidget) |
784 @param fromEric flag indicating a call from within eric5 |
784 @param fromEric flag indicating a call from within eric6 |
785 """ |
785 """ |
786 super(QRegularExpressionWizardDialog, self).__init__(parent) |
786 super(QRegularExpressionWizardDialog, self).__init__(parent) |
787 self.setModal(fromEric) |
787 self.setModal(fromEric) |
788 self.setSizeGripEnabled(True) |
788 self.setSizeGripEnabled(True) |
789 |
789 |