Commit e0b31be8 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Qt includes: Include qglobal.h when using QT_VERSION



Task-number: QTCREATORBUG-13280
Change-Id: I81cfe7875b1c7a1f16c13b49fe56849210db3acd
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent 335ada73
......@@ -117,6 +117,12 @@ void writeQtIncludeSection(const QStringList &qt4,
QSet<QString> common = qt4Only;
common.intersect(qt5Only);
// qglobal.h is needed for QT_VERSION
if (includeQtModule)
common.insert(QLatin1String("QtCore/qglobal.h"));
else
common.insert(QLatin1String("qglobal.h"));
qt4Only.subtract(common);
qt5Only.subtract(common);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment