summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/windows
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@digia.com>2014-07-04 14:43:57 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-07-04 18:46:06 +0200
commit14a80bd4df83e960de458403deaf895a3d2c8812 (patch)
tree1bf8a79b746378b14f64dbb32bb3bf5119d22f0c /src/plugins/platforms/windows
parent3acd4b546ded7523f65d60cee6f3809113a91a16 (diff)
parent39a290af6cea538dbbdb207d03d2af3602015c95 (diff)
Merge "Merge remote-tracking branch 'origin/5.3' into dev" into refs/staging/dev
Diffstat (limited to 'src/plugins/platforms/windows')
-rw-r--r--src/plugins/platforms/windows/accessible/iaccessible2.cpp8
-rw-r--r--src/plugins/platforms/windows/qplatformfunctions_wince.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/platforms/windows/accessible/iaccessible2.cpp b/src/plugins/platforms/windows/accessible/iaccessible2.cpp
index 743f1394aa..64a2891e49 100644
--- a/src/plugins/platforms/windows/accessible/iaccessible2.cpp
+++ b/src/plugins/platforms/windows/accessible/iaccessible2.cpp
@@ -502,13 +502,11 @@ HRESULT STDMETHODCALLTYPE QWindowsIA2Accessible::get_indexInParent(long *indexIn
if (!indexInParent)
return E_INVALIDARG;
QAccessibleInterface *par = accessible->parent();
- if (!par) {
- *indexInParent = -1;
+ *indexInParent = par ? par->indexOfChild(accessible) : -1;
+ if (*indexInParent < 0) {
+ qCWarning(lcQpaAccessibility) << "index in parent invalid:" << accessible << "parent:" << par;
return S_FALSE;
}
- int indexOfChild = par->indexOfChild(accessible);
- Q_ASSERT(indexOfChild >= 0);
- *indexInParent = indexOfChild;
return S_OK;
}
diff --git a/src/plugins/platforms/windows/qplatformfunctions_wince.h b/src/plugins/platforms/windows/qplatformfunctions_wince.h
index 921e64d64c..47b03b29cc 100644
--- a/src/plugins/platforms/windows/qplatformfunctions_wince.h
+++ b/src/plugins/platforms/windows/qplatformfunctions_wince.h
@@ -86,8 +86,10 @@
#define HWND_MESSAGE 0
#endif
+// Real Value would be 0x40000000, but if we pass this to Windows Embedded Compact
+// he blits it wrongly, so lets not do any harm and define it to 0
#ifndef CAPTUREBLT
-#define CAPTUREBLT (DWORD)0x40000000
+#define CAPTUREBLT (DWORD)0x0
#endif
#define SW_SHOWMINIMIZED SW_MINIMIZE