Gui: Hide line marker and do not highlight current line in Python console

This commit is contained in:
wmayer
2024-12-25 18:31:03 +01:00
committed by Yorik van Havre
parent 35700db40e
commit 0dba0a3b31
3 changed files with 65 additions and 33 deletions

View File

@@ -450,7 +450,10 @@ PythonConsole::PythonConsole(QWidget *parent)
// use the console highlighter
pythonSyntax = new PythonConsoleHighlighter(this);
pythonSyntax->setDocument(this->document());
setSyntaxHighlighter(pythonSyntax);
setVisibleLineNumbers(false);
setEnabledHighlightCurrentLine(false);
// create the window for call tips
d->callTipsList = new CallTipsList(this);
@@ -511,7 +514,6 @@ PythonConsole::~PythonConsole()
saveHistory();
Base::PyGILStateLocker lock;
d->hGrpSettings->Detach(this);
delete pythonSyntax;
Py_XDECREF(d->_stdoutPy);
Py_XDECREF(d->_stderrPy);
Py_XDECREF(d->_stdinPy);