[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

@@ -118,6 +118,22 @@ private:
friend class SyntaxHighlighter;
};
/** subclass of TextEditor that serves as base class for the
* python editor and the python console where we handle
* the tab key conversion to spaces, depending on user settings
*/
class GuiExport PythonTextEditor : public TextEditor
{
Q_OBJECT
public:
explicit PythonTextEditor(QWidget *parent = nullptr);
~PythonTextEditor() override;
protected:
void keyPressEvent(QKeyEvent *) override;
};
class LineMarker : public QWidget
{
Q_OBJECT