aboutsummaryrefslogtreecommitdiff
path: root/desktop-utilities/lumina-textedit/PlainTextEditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-utilities/lumina-textedit/PlainTextEditor.cpp')
-rw-r--r--desktop-utilities/lumina-textedit/PlainTextEditor.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/desktop-utilities/lumina-textedit/PlainTextEditor.cpp b/desktop-utilities/lumina-textedit/PlainTextEditor.cpp
index 4031eacc..4d5ac7ce 100644
--- a/desktop-utilities/lumina-textedit/PlainTextEditor.cpp
+++ b/desktop-utilities/lumina-textedit/PlainTextEditor.cpp
@@ -51,6 +51,11 @@ void PlainTextEditor::LoadSyntaxRule(QString type){
SYNTAX->rehighlight();
}
+void PlainTextEditor::updateSyntaxColors(){
+ SYNTAX->reloadRules();
+ SYNTAX->rehighlight();
+}
+
//File loading/setting options
void PlainTextEditor::LoadFile(QString filepath){
this->setWhatsThis(filepath);
bgstack15