Fix qitemview and qdatetimeedit autotest builds for WinCE.

Defined missing SPI_GETPLATFORMTYPE macro as it was done in for example
in qwidget and qaccesiblity test cases.

Change-Id: I33a1e0119848911fbc4830299fcc1854f5259e86
Reviewed-by: Andreas Holzammer <andreas.holzammer@kdab.com>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
This commit is contained in:
Janne Anttila 2012-06-19 11:27:06 +03:00 committed by Qt by Nokia
parent db7bdcd976
commit 5281cba808
2 changed files with 8 additions and 0 deletions

View File

@ -57,6 +57,10 @@
#define srandom srand
#if defined(Q_OS_WINCE)
#ifndef SPI_GETPLATFORMTYPE
#define SPI_GETPLATFORMTYPE 257
#endif
bool qt_wince_is_platform(const QString &platformString) {
wchar_t tszPlatform[64];
if (SystemParametersInfo(SPI_GETPLATFORMTYPE,

View File

@ -101,6 +101,10 @@ Q_DECLARE_METATYPE(QTime);
Q_DECLARE_METATYPE(QList<int>);
#if defined(Q_OS_WINCE)
#ifndef SPI_GETPLATFORMTYPE
#define SPI_GETPLATFORMTYPE 257
#endif
bool qt_wince_is_platform(const QString &platformString) {
wchar_t tszPlatform[64];
if (SystemParametersInfo(SPI_GETPLATFORMTYPE,