Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qwindowsuiainvokeprovider.cpp
Go to the documentation of this file.
1// Copyright (C) 2017 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#include <QtGui/qtguiglobal.h>
5#if QT_CONFIG(accessibility)
6
8#include "qwindowsuiautils.h"
9#include "qwindowscontext.h"
10
11#include <QtGui/qaccessible.h>
12#include <QtCore/qloggingcategory.h>
13#include <QtCore/qstring.h>
14
16
17using namespace QWindowsUiAutomation;
18
19
20QWindowsUiaInvokeProvider::QWindowsUiaInvokeProvider(QAccessible::Id id) :
21 QWindowsUiaBaseProvider(id)
22{
23}
24
25QWindowsUiaInvokeProvider::~QWindowsUiaInvokeProvider()
26{
27}
28
29HRESULT STDMETHODCALLTYPE QWindowsUiaInvokeProvider::Invoke()
30{
31 qCDebug(lcQpaUiAutomation) << __FUNCTION__;
32
33 QAccessibleInterface *accessible = accessibleInterface();
34 if (!accessible)
35 return UIA_E_ELEMENTNOTAVAILABLE;
36
37 QAccessibleActionInterface *actionInterface = accessible->actionInterface();
38 if (!actionInterface)
39 return UIA_E_ELEMENTNOTAVAILABLE;
40
41 actionInterface->doAction(QAccessibleActionInterface::pressAction());
42 return S_OK;
43}
44
46
47#endif // QT_CONFIG(accessibility)
Combined button and popup list for selecting options.
#define qCDebug(category,...)
GLenum GLuint id
[7]
long HRESULT