[PythonEditor] Make converting tabs to spaces the default

This commit is contained in:
mwganson
2024-12-16 17:14:33 -06:00
committed by Chris Hennes
parent 02f41bbe60
commit 40571eb683
7 changed files with 115 additions and 88 deletions

View File

@@ -65,7 +65,7 @@ struct PythonEditorP
* syntax highlighting for the Python language.
*/
PythonEditor::PythonEditor(QWidget* parent)
: TextEditor(parent)
: PythonTextEditor(parent)
{
d = new PythonEditorP();
this->setSyntaxHighlighter(new PythonSyntaxHighlighter(this));
@@ -205,7 +205,7 @@ void PythonEditor::keyPressEvent(QKeyEvent* e)
setTextCursor(cursor);
return; //skip default handler
}
TextEditor::keyPressEvent(e); //wasn't enter key, so let base class handle it
PythonTextEditor::keyPressEvent(e); //wasn't enter key, so let base class handle it
}
void PythonEditor::onComment()