summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorThomas Hartmann <Thomas.Hartmann@nokia.com>2009-08-11 13:22:00 (GMT)
committerThomas Hartmann <Thomas.Hartmann@nokia.com>2009-08-11 13:41:24 (GMT)
commit2a4cce47072d8ec71127cf17650683e17a8cdaca (patch)
tree4b155db0f8f0d1c74d46baca3e7f2a350da7db52 /src/gui
parent64c5e55bdd53fbde6a5485eba15da501411a22ca (diff)
downloadQt-2a4cce47072d8ec71127cf17650683e17a8cdaca.zip
Qt-2a4cce47072d8ec71127cf17650683e17a8cdaca.tar.gz
Qt-2a4cce47072d8ec71127cf17650683e17a8cdaca.tar.bz2
adding qt_wince_is_windows_mobile_65()
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/kernel/qguifunctions_wince.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/gui/kernel/qguifunctions_wince.cpp b/src/gui/kernel/qguifunctions_wince.cpp
index 011c726..aba06d5 100644
--- a/src/gui/kernel/qguifunctions_wince.cpp
+++ b/src/gui/kernel/qguifunctions_wince.cpp
@@ -256,6 +256,31 @@ bool qt_wince_is_platform(const QString &platformString) {
return false;
}
+int qt_wince_get_build()
+{
+ OSVERSIONINFO osvi;
+ osvi.dwOSVersionInfoSize = sizeof(osvi);
+ if (GetVersionEx(&osvi)) {
+ return osvi.dwBuildNumber;
+ }
+ return 0;
+}
+
+int qt_wince_get_version()
+{
+ OSVERSIONINFO osvi;
+ osvi.dwOSVersionInfoSize = sizeof(osvi);
+ if (GetVersionEx(&osvi)) {
+ return (osvi.dwMajorVersion * 10 + osvi.dwMinorVersion);
+ }
+ return 0;
+}
+
+bool qt_wince_is_windows_mobile_65()
+{
+ return ((qt_wince_get_version() == 52) && (qt_wince_get_build() > 2000));
+}
+
bool qt_wince_is_pocket_pc() {
return qt_wince_is_platform(QString::fromLatin1("PocketPC"));
}