102 from WizardPlugins.QRegularExpressionWizard import ( |
102 from WizardPlugins.QRegularExpressionWizard import ( |
103 QRegularExpressionWizardDialog |
103 QRegularExpressionWizardDialog |
104 ) |
104 ) |
105 dlg = QRegularExpressionWizardDialog.QRegularExpressionWizardDialog( |
105 dlg = QRegularExpressionWizardDialog.QRegularExpressionWizardDialog( |
106 None, True) |
106 None, True) |
107 if dlg.exec() == QDialog.Accepted: |
107 if dlg.exec() == QDialog.DialogCode.Accepted: |
108 line, index = editor.getCursorPosition() |
108 line, index = editor.getCursorPosition() |
109 indLevel = editor.indentation(line) // editor.indentationWidth() |
109 indLevel = editor.indentation(line) // editor.indentationWidth() |
110 if editor.indentationsUseTabs(): |
110 if editor.indentationsUseTabs(): |
111 indString = '\t' |
111 indString = '\t' |
112 else: |
112 else: |