summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel
diff options
context:
space:
mode:
authorThomas Hartmann <Thomas.Hartmann@nokia.com>2009-08-11 14:11:22 (GMT)
committerThomas Hartmann <Thomas.Hartmann@nokia.com>2009-08-11 14:11:22 (GMT)
commit1645a7b6e156623cfcb527f24bcbfc41f9e3fea0 (patch)
treea8223ab5846eeee95999ad137f0451f695cb69b0 /src/gui/kernel
parent37af08ae61715fc7877f71080b652ef5fc7820f0 (diff)
parentcb7e836d917eb43a9664c0f6b3e02788c0d78919 (diff)
downloadQt-1645a7b6e156623cfcb527f24bcbfc41f9e3fea0.zip
Qt-1645a7b6e156623cfcb527f24bcbfc41f9e3fea0.tar.gz
Qt-1645a7b6e156623cfcb527f24bcbfc41f9e3fea0.tar.bz2
Merge commit 'remotes/wm65/wm65'
Diffstat (limited to 'src/gui/kernel')
-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"));
}