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