From b4d35ab97d008c3b24a109640d90dba73215631b Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 8 Apr 2023 14:41:17 +0900 Subject: Settings for syntax highlighting, showing whitespaces and loading last open file are now saved and restored across executions Signed-off-by: Michele Calgaro --- src/__TODO/UiGuiHighlighter.cpp | 8 ++++---- src/__TODO/UiGuiHighlighter.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/__TODO') diff --git a/src/__TODO/UiGuiHighlighter.cpp b/src/__TODO/UiGuiHighlighter.cpp index cfbf299..cfb99c9 100644 --- a/src/__TODO/UiGuiHighlighter.cpp +++ b/src/__TODO/UiGuiHighlighter.cpp @@ -95,7 +95,7 @@ UiGuiHighlighter::UiGuiHighlighter(QsciScintilla *parent) : SettingsPaths::getSettingsPath() + "/UiGuiSyntaxHighlightConfig.ini", TQSettings::IniFormat, this); - _highlightningIsOn = true; + _highlightingIsOn = true; _mapHighlighternameToExtension["Bash"] = TQStringList() << "sh"; _mapHighlighternameToExtension["Batch"] = TQStringList() << "bat"; @@ -187,7 +187,7 @@ void UiGuiHighlighter::setHighlighterByAction(TQAction *highlighterAction) */ void UiGuiHighlighter::turnHighlightOn() { - _highlightningIsOn = true; + _highlightingIsOn = true; _qsciEditorParent->setLexer(_lexer); readCurrentSettings(""); } @@ -197,7 +197,7 @@ void UiGuiHighlighter::turnHighlightOn() */ void UiGuiHighlighter::turnHighlightOff() { - _highlightningIsOn = false; + _highlightingIsOn = false; _qsciEditorParent->setLexer(); _qsciEditorParent->setFont(TQFont("Monospace", 10, TQFont::Normal)); _qsciEditorParent->setMarginsFont(TQFont("Monospace", 10, TQFont::Normal)); @@ -583,7 +583,7 @@ int UiGuiHighlighter::setLexerForExtension(TQString extension) } // Set the _lexer for the TQScintilla widget. - if (_highlightningIsOn) + if (_highlightingIsOn) { _qsciEditorParent->setLexer(_lexer); } diff --git a/src/__TODO/UiGuiHighlighter.h b/src/__TODO/UiGuiHighlighter.h index 025219e..3dd8200 100644 --- a/src/__TODO/UiGuiHighlighter.h +++ b/src/__TODO/UiGuiHighlighter.h @@ -63,7 +63,7 @@ class UiGuiHighlighter : public TQObject void setHighlighterByAction(TQAction *highlighterAction); private: - bool _highlightningIsOn; + bool _highlightingIsOn; QsciScintilla *_qsciEditorParent; TQMap _fontForStyles; TQMap _colorForStyles; -- cgit v1.2.1