summaryrefslogtreecommitdiff
path: root/src/plugins/texteditor/texteditor.cpp
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@qt.io>2019-02-14 12:24:46 +0100
committerAlessandro Portale <alessandro.portale@qt.io>2019-02-15 14:39:12 +0000
commit88d1d92728d7a46a56075760c13e4bf76677d7a2 (patch)
treed24766c1404741aa53b9cb3ffbf73931adf90ec8 /src/plugins/texteditor/texteditor.cpp
parent66fd5abe583629cc2609e0724f0912e449e9d569 (diff)
downloadqt-creator-88d1d92728d7a46a56075760c13e4bf76677d7a2.tar.gz
Bump minimum Qt version (to build Qt Creator) to 5.11
Recent adaptations to Qt 5.13's API deprecations require using APIs which were introduces in Qt 5.11. Change-Id: I6c077d824c9ce716e019543b290c355a5d512fad Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/texteditor/texteditor.cpp')
-rw-r--r--src/plugins/texteditor/texteditor.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/plugins/texteditor/texteditor.cpp b/src/plugins/texteditor/texteditor.cpp
index 5ac69be40c..51a7da5e31 100644
--- a/src/plugins/texteditor/texteditor.cpp
+++ b/src/plugins/texteditor/texteditor.cpp
@@ -8252,11 +8252,7 @@ void TextEditorWidgetPrivate::updateTabStops()
// to be set as an int. A work around is to access directly the QTextOption.
qreal charWidth = QFontMetricsF(q->font()).width(QLatin1Char(' '));
QTextOption option = q->document()->defaultTextOption();
-#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
option.setTabStopDistance(charWidth * m_document->tabSettings().m_tabSize);
-#else
- option.setTabStop(charWidth * m_document->tabSettings().m_tabSize);
-#endif
q->document()->setDefaultTextOption(option);
}