Improve Windows XP and Vista styles auto detection
authorRafael Roquetto <rafael.roquetto.qnx@kdab.com>
Wed, 18 Jul 2012 13:25:13 +0000 (15:25 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 19 Jul 2012 00:31:24 +0000 (02:31 +0200)
Do not build windows styles when the target platform is not Windows. This
makes a difference when cross-compiling.

Change-Id: I2184d39ed253af1069c5cdcd6a848611cff24789
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
tools/configure/configureapp.cpp

index d1f5609..06ddefa 100644 (file)
@@ -1980,7 +1980,7 @@ bool Configure::checkAvailability(const QString &part)
 {
     bool available = false;
     if (part == "STYLE_WINDOWSXP")
-        available = findFile("uxtheme.h");
+        available = (platform() == WINDOWS) && findFile("uxtheme.h");
 
     else if (part == "ZLIB")
         available = findFile("zlib.h");