diff options
author | Ken Moore <moorekou@gmail.com> | 2016-04-21 08:55:21 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2016-04-21 08:55:21 -0400 |
commit | 574ea9c62e2ee3c7a52ad324b13c116baca74ea8 (patch) | |
tree | fd250fd755bf9703c135587a40d4215f31481219 /desktop-utilities/lumina-textedit/PlainTextEditor.cpp | |
parent | Another minor change to lumina-textedit: Add a "preprocessor" syntax color, a... (diff) | |
download | lumina-574ea9c62e2ee3c7a52ad324b13c116baca74ea8.tar.gz lumina-574ea9c62e2ee3c7a52ad324b13c116baca74ea8.tar.bz2 lumina-574ea9c62e2ee3c7a52ad324b13c116baca74ea8.zip |
Set the width of the "tab" character to be == 8 spaces (UNIX standard)
Diffstat (limited to 'desktop-utilities/lumina-textedit/PlainTextEditor.cpp')
-rw-r--r-- | desktop-utilities/lumina-textedit/PlainTextEditor.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/desktop-utilities/lumina-textedit/PlainTextEditor.cpp b/desktop-utilities/lumina-textedit/PlainTextEditor.cpp index 4d5ac7ce..3a453b79 100644 --- a/desktop-utilities/lumina-textedit/PlainTextEditor.cpp +++ b/desktop-utilities/lumina-textedit/PlainTextEditor.cpp @@ -24,6 +24,7 @@ PlainTextEditor::PlainTextEditor(QSettings *set, QWidget *parent) : QPlainTextEd hasChanges = false; lastSaveContents.clear(); matchleft = matchright = -1; + this->setTabStopWidth( 8 * this->fontMetrics().width(" ") ); //8 character spaces per tab (UNIX standard) //this->setObjectName("PlainTextEditor"); //this->setStyleSheet("QPlainTextEdit#PlainTextEditor{ }"); SYNTAX = new Custom_Syntax(settings, this->document()); |