diff options
author | Christian Kandeler <christian.kandeler@digia.com> | 2014-01-17 11:04:29 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@digia.com> | 2014-01-17 11:40:58 +0100 |
commit | 9f354991a972f214040e2f93872bd07287aed6e4 (patch) | |
tree | 9a16c980c5f8062b0103d4479226a43b35088eb2 /src/lib/qtprofilesetup | |
parent | 0a27c8f3020b11134361cd5999b997ab838fe727 (diff) |
Add virtual "Qt.widgets" module for Qt 4 installations.
We used to have this when we still hardcoded all the modules, and it got
lost during the switch.
Change-Id: I3170a2ca77f0a105b1b6c7de485be6d112bf88e7
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'src/lib/qtprofilesetup')
-rw-r--r-- | src/lib/qtprofilesetup/qtprofilesetup.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/qtprofilesetup/qtprofilesetup.cpp b/src/lib/qtprofilesetup/qtprofilesetup.cpp index 6bf191c36..1bd2bc830 100644 --- a/src/lib/qtprofilesetup/qtprofilesetup.cpp +++ b/src/lib/qtprofilesetup/qtprofilesetup.cpp @@ -135,6 +135,14 @@ static void createModules(Profile &profile, Settings *settings, << QtModuleInfo(QLatin1String("QAxContainer"), QLatin1String("axcontainer")) << QtModuleInfo(QLatin1String("QAxServer"), QLatin1String("axserver")) << QtModuleInfo(QLatin1String("QtDBus"), QLatin1String("dbus")); + + // This is a "virtual" module for the convenience of project file authors. It allows + // to add a dependency to "Qt.widgets" without a version check. + QtModuleInfo widgetsModule(QLatin1String("QtWidgets"), QLatin1String("widgets"), + QStringList() << QLatin1String("gui")); + widgetsModule.hasLibrary = false; + modules << widgetsModule; + } else { QDirIterator dit(qtEnvironment.mkspecBasePath + QLatin1String("/modules")); while (dit.hasNext()) { |