From 574ea9c62e2ee3c7a52ad324b13c116baca74ea8 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Thu, 21 Apr 2016 08:55:21 -0400 Subject: Set the width of the "tab" character to be == 8 spaces (UNIX standard) --- desktop-utilities/lumina-textedit/PlainTextEditor.cpp | 1 + 1 file changed, 1 insertion(+) 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()); -- cgit