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 <>
parent 335ada73
...@@ -117,6 +117,12 @@ void writeQtIncludeSection(const QStringList &qt4, ...@@ -117,6 +117,12 @@ void writeQtIncludeSection(const QStringList &qt4,
QSet<QString> common = qt4Only; QSet<QString> common = qt4Only;
common.intersect(qt5Only); common.intersect(qt5Only);
// qglobal.h is needed for QT_VERSION
if (includeQtModule)
qt4Only.subtract(common); qt4Only.subtract(common);
qt5Only.subtract(common); qt5Only.subtract(common);
Supports Markdown
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