From 658a06d1ee76b6e7c0d304147d3e85dbd87f9e7b Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 13 Apr 2023 12:57:12 +0900 Subject: Initialize TQScintilla's editor. TabWidth settings is now saved and restored across executions Signed-off-by: Michele Calgaro --- src/__TODO/UiGuiHighlighter.cpp | 4 ++-- src/__TODO/UiGuiHighlighter.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/__TODO') diff --git a/src/__TODO/UiGuiHighlighter.cpp b/src/__TODO/UiGuiHighlighter.cpp index cfb99c9..a5065c1 100644 --- a/src/__TODO/UiGuiHighlighter.cpp +++ b/src/__TODO/UiGuiHighlighter.cpp @@ -79,13 +79,13 @@ /* \class UiGuiHighlighter \ingroup grp_EditorComponent - \brief UiGuiHighlighter used for selecting the syntax highlighter/lexer for the QsciScintilla component. + \brief UiGuiHighlighter used for selecting the syntax highlighter/lexer for the TQextScintilla component. */ /* \brief The constructor initializes some regular expressions and keywords to identify cpp tokens */ -UiGuiHighlighter::UiGuiHighlighter(QsciScintilla *parent) : +UiGuiHighlighter::UiGuiHighlighter(TQextScintilla *parent) : TQObject(parent) { _qsciEditorParent = parent; diff --git a/src/__TODO/UiGuiHighlighter.h b/src/__TODO/UiGuiHighlighter.h index 3dd8200..602017e 100644 --- a/src/__TODO/UiGuiHighlighter.h +++ b/src/__TODO/UiGuiHighlighter.h @@ -28,7 +28,7 @@ class TQAction; class TQSettings; -class QsciScintilla; +class TQextScintilla; class QsciLexer; @@ -37,7 +37,7 @@ class UiGuiHighlighter : public TQObject Q_OBJECT public: - UiGuiHighlighter(QsciScintilla *parent); + UiGuiHighlighter(TQextScintilla *parent); void turnHighlightOff(); void turnHighlightOn(); @@ -64,7 +64,7 @@ class UiGuiHighlighter : public TQObject private: bool _highlightingIsOn; - QsciScintilla *_qsciEditorParent; + TQextScintilla *_qsciEditorParent; TQMap _fontForStyles; TQMap _colorForStyles; QsciLexer *_lexer; -- cgit v1.2.1