summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@theqtcompany.com>2016-01-25 06:53:31 +0100
committerChristian Stenger <christian.stenger@theqtcompany.com>2016-01-25 06:12:44 +0000
commit5b9350baf68e8319236960cc4e65b4f0f150fab6 (patch)
tree2369ea0d23db8973cfa5fb7d9bd391b929e42dc8
parentf443c95dcc49f0846fc2bee5bd2ccbcac4e4b1d5 (diff)
downloadqt-creator-5b9350baf68e8319236960cc4e65b4f0f150fab6.tar.gz
Fix compile for Qt5.4
Introduced with f443c95dcc49f0846fc2bee5bd2ccbcac4e4b1d5. Change-Id: I6fcc2c429b90cb56a02c3c63f0788fcf0ab1df52 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
-rw-r--r--src/plugins/coreplugin/find/basetextfind.cpp2
-rw-r--r--src/plugins/texteditor/texteditoroverlay.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/coreplugin/find/basetextfind.cpp b/src/plugins/coreplugin/find/basetextfind.cpp
index 9630dd53fa..f331d6206a 100644
--- a/src/plugins/coreplugin/find/basetextfind.cpp
+++ b/src/plugins/coreplugin/find/basetextfind.cpp
@@ -39,7 +39,9 @@
#include <QPlainTextEdit>
#include <QTextCursor>
+#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
#include <private/qtextcursor_p.h>
+#endif
namespace Core {
diff --git a/src/plugins/texteditor/texteditoroverlay.cpp b/src/plugins/texteditor/texteditoroverlay.cpp
index 295d9a66b4..7837fd52b5 100644
--- a/src/plugins/texteditor/texteditoroverlay.cpp
+++ b/src/plugins/texteditor/texteditoroverlay.cpp
@@ -37,7 +37,9 @@
#include <QPainter>
#include <QTextBlock>
+#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
#include <private/qtextcursor_p.h>
+#endif
using namespace TextEditor;
using namespace TextEditor::Internal;