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