summaryrefslogtreecommitdiffstats
path: root/src/widgets/widgets/qtextedit.cpp
diff options
context:
space:
mode:
authorStephan Binner <stephan.binner@basyskom.com>2017-07-27 22:07:50 +0200
committerStephan Binner <stephan.binner@basyskom.com>2017-08-10 05:37:03 +0000
commitfab326173000ef82ced76ed5b74d10988ddb3972 (patch)
treed9004b2b264c7a7bcfe7733c68a740c0ee91d44c /src/widgets/widgets/qtextedit.cpp
parentc35fc435950437d3d046b17d06593873d7b82011 (diff)
Convert features.textbrowser to QT_[REQUIRE_]CONFIG
Change-Id: I02a0c39c308204f7c67674928973275fa1247d38 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Diffstat (limited to 'src/widgets/widgets/qtextedit.cpp')
-rw-r--r--src/widgets/widgets/qtextedit.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/widgets/widgets/qtextedit.cpp b/src/widgets/widgets/qtextedit.cpp
index 6973cec429..01f20b1197 100644
--- a/src/widgets/widgets/qtextedit.cpp
+++ b/src/widgets/widgets/qtextedit.cpp
@@ -39,7 +39,9 @@
#include "qtextedit_p.h"
#include "qlineedit.h"
+#if QT_CONFIG(textbrowser)
#include "qtextbrowser.h"
+#endif
#ifndef QT_NO_TEXTEDIT
#include <qfont.h>
@@ -2134,7 +2136,7 @@ void QTextEdit::setReadOnly(bool ro)
Qt::TextInteractionFlags flags = Qt::NoTextInteraction;
if (ro) {
flags = Qt::TextSelectableByMouse;
-#ifndef QT_NO_TEXTBROWSER
+#if QT_CONFIG(textbrowser)
if (qobject_cast<QTextBrowser *>(this))
flags |= Qt::TextBrowserInteraction;
#endif