diff --git a/src/plugins/coreplugin/find/basetextfind.cpp b/src/plugins/coreplugin/find/basetextfind.cpp index 9630dd53fae..f331d6206a4 100644 --- a/src/plugins/coreplugin/find/basetextfind.cpp +++ b/src/plugins/coreplugin/find/basetextfind.cpp @@ -39,7 +39,9 @@ #include #include +#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0) #include +#endif namespace Core { diff --git a/src/plugins/texteditor/texteditoroverlay.cpp b/src/plugins/texteditor/texteditoroverlay.cpp index 295d9a66b49..7837fd52b53 100644 --- a/src/plugins/texteditor/texteditoroverlay.cpp +++ b/src/plugins/texteditor/texteditoroverlay.cpp @@ -37,7 +37,9 @@ #include #include +#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0) #include +#endif using namespace TextEditor; using namespace TextEditor::Internal;