aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2016-04-21 08:55:21 -0400
committerKen Moore <moorekou@gmail.com>2016-04-21 08:55:21 -0400
commit574ea9c62e2ee3c7a52ad324b13c116baca74ea8 (patch)
treefd250fd755bf9703c135587a40d4215f31481219
parentAnother minor change to lumina-textedit: Add a "preprocessor" syntax color, a... (diff)
downloadlumina-574ea9c62e2ee3c7a52ad324b13c116baca74ea8.tar.gz
lumina-574ea9c62e2ee3c7a52ad324b13c116baca74ea8.tar.bz2
lumina-574ea9c62e2ee3c7a52ad324b13c116baca74ea8.zip
Set the width of the "tab" character to be == 8 spaces (UNIX standard)
-rw-r--r--desktop-utilities/lumina-textedit/PlainTextEditor.cpp1
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());
bgstack15