aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-06-09 15:36:59 -0400
committerKen Moore <ken@ixsystems.com>2017-06-09 15:36:59 -0400
commit73852660c61f618215da594d3fca6a81d4d62a4a (patch)
tree10ebfbb9fcd165f84600222954075381136c0604 /src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.cpp
parentClean up the loading/changing of font family/size (still need to update the f... (diff)
downloadlumina-73852660c61f618215da594d3fca6a81d4d62a4a.tar.gz
lumina-73852660c61f618215da594d3fca6a81d4d62a4a.tar.bz2
lumina-73852660c61f618215da594d3fca6a81d4d62a4a.zip
Finish getting the font/size information in-sync with the current tab.
Diffstat (limited to 'src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.cpp')
-rw-r--r--src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.cpp b/src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.cpp
index e62ff0d4..a1b77732 100644
--- a/src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.cpp
+++ b/src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.cpp
@@ -53,7 +53,14 @@ void PlainTextEditor::showLineNumbers(bool show){
}
void PlainTextEditor::LoadSyntaxRule(QString type){
- SYNTAX->loadRules(type);
+ QList<SyntaxFile> files = SyntaxFile::availableFiles(settings);
+ for(int i=0; i<files.length(); i++){
+ if(files[i].name() == type){
+ files[i].SetupDocument(this);
+ SYNTAX->loadRules(files[i]);
+ break;
+ }
+ }
SYNTAX->rehighlight();
}
bgstack15