Improve Windows XP and Vista styles auto detection

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>
This commit is contained in:
Rafael Roquetto 2012-07-18 15:25:13 +02:00 committed by Qt by Nokia
parent 80749d946b
commit 6715c4fb2e

View 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");