summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mkspecs/features/default_post.prf3
-rw-r--r--src/gui/gui.pro1
2 files changed, 4 insertions, 0 deletions
diff --git a/mkspecs/features/default_post.prf b/mkspecs/features/default_post.prf
index 01074f4..424609e 100644
--- a/mkspecs/features/default_post.prf
+++ b/mkspecs/features/default_post.prf
@@ -6,5 +6,8 @@ incredibuild_xge {
CONFIG = incredibuild_xge $$CONFIG
}
+# It's in the default config. Get rid of it now if unused.
+!contains(QT, [Gg][Uu][Ii]):!CONFIG(force_uic):CONFIG -= uic
+
QMAKE_INCDIR += $$QMAKE_INCDIR_POST
QMAKE_LIBDIR += $$QMAKE_LIBDIR_POST
diff --git a/src/gui/gui.pro b/src/gui/gui.pro
index f224e67..0d3bbc6 100644
--- a/src/gui/gui.pro
+++ b/src/gui/gui.pro
@@ -1,6 +1,7 @@
TARGET = QtGui
QPRO_PWD = $$PWD
QT = core
+CONFIG += force_uic
DEFINES += QT_BUILD_GUI_LIB QT_NO_USING_NAMESPACE
win32-msvc*|win32-icc:QMAKE_LFLAGS += /BASE:0x65000000