aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils
diff options
context:
space:
mode:
authorlbartoletti <l.bartoletti@free.fr>2019-10-22 21:25:50 +0200
committerlbartoletti <l.bartoletti@free.fr>2019-10-22 21:25:50 +0200
commit222502d67a66ad294412c786c1c9fffc46841e1f (patch)
tree6ae3afed7f36ffac7fca029a6f5e4ee1b4c952ab /src-qt5/desktop-utils
parentfix (set)backgroundColor (diff)
downloadlumina-222502d67a66ad294412c786c1c9fffc46841e1f.tar.gz
lumina-222502d67a66ad294412c786c1c9fffc46841e1f.tar.bz2
lumina-222502d67a66ad294412c786c1c9fffc46841e1f.zip
fix setTabStopWidth -> setTabStopDistance
Diffstat (limited to 'src-qt5/desktop-utils')
-rw-r--r--src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.cpp b/src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.cpp
index 11db6f4d..0aedb1a0 100644
--- a/src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.cpp
+++ b/src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.cpp
@@ -30,7 +30,7 @@ PlainTextEditor::PlainTextEditor(QSettings *set, QWidget *parent) : QPlainTextEd
hasChanges = readonly = false;
lastSaveContents.clear();
matchleft = matchright = -1;
- this->setTabStopWidth( 8 * this->fontMetrics().horizontalAdvance(" ") ); //8 character spaces per tab (UNIX standard)
+ this->setTabStopDistance( 8 * QFontMetricsF(this->font()).width(' ') ); //8 character spaces per tab (UNIX standard)
//this->setObjectName("PlainTextEditor");
//this->setStyleSheet("QPlainTextEdit#PlainTextEditor{ }");
SYNTAX = new Custom_Syntax(settings, this->document());
bgstack15