diff options
Diffstat (limited to 'src/platformheaders')
-rw-r--r-- | src/platformheaders/windowsfunctions/qwindowswindowfunctions.h | 8 | ||||
-rw-r--r-- | src/platformheaders/windowsfunctions/qwindowswindowfunctions.qdoc | 27 |
2 files changed, 35 insertions, 0 deletions
diff --git a/src/platformheaders/windowsfunctions/qwindowswindowfunctions.h b/src/platformheaders/windowsfunctions/qwindowswindowfunctions.h index 032dcafa6e..722f640a13 100644 --- a/src/platformheaders/windowsfunctions/qwindowswindowfunctions.h +++ b/src/platformheaders/windowsfunctions/qwindowswindowfunctions.h @@ -108,6 +108,14 @@ public: IsTabletModeType func = reinterpret_cast<IsTabletModeType>(QGuiApplication::platformFunction(isTabletModeIdentifier())); return func && func(); } + + typedef bool (*SetWinTabEnabled)(bool enabled); + static const QByteArray setWinTabEnabledIdentifier() { return QByteArrayLiteral("WindowsSetWinTabEnabled"); } + static bool setWinTabEnabled(bool enabled) + { + SetWinTabEnabled func = reinterpret_cast<SetWinTabEnabled>(QGuiApplication::platformFunction(setWinTabEnabledIdentifier())); + return func && func(enabled); + } }; Q_DECLARE_OPERATORS_FOR_FLAGS(QWindowsWindowFunctions::TouchWindowTouchTypes) diff --git a/src/platformheaders/windowsfunctions/qwindowswindowfunctions.qdoc b/src/platformheaders/windowsfunctions/qwindowswindowfunctions.qdoc index 31a8d40abe..e782c30ee6 100644 --- a/src/platformheaders/windowsfunctions/qwindowswindowfunctions.qdoc +++ b/src/platformheaders/windowsfunctions/qwindowswindowfunctions.qdoc @@ -210,3 +210,30 @@ \sa QWidget::showMaximized(), QWidget::saveGeometry(), QWidget::restoreGeometry() \since 5.9 */ + +/*! + \typedef QWindowsWindowFunctions::SetWinTabEnabled + \since 6.0 + + This is the typedef for the function returned by QGuiApplication::platformFunction + when passed setWinTabEnabledIdentifier(). +*/ + +/*! + \fn QByteArray QWindowsWindowFunctions::setWinTabEnabledIdentifier() + \since 6.0 + + This function returns the bytearray that can be used to query + QGuiApplication::platformFunction to retrieve the SetWinTabEnabled function. +*/ + +/*! + \fn bool QWindowsWindowFunctions::setWinTabEnabled(bool enabled) + \since 6.0 + + This is a convenience function that can be used directly instead of resolving + the function pointer. + + \a enabled determines whether the WinTab API will be used for tablet input instead + of the native API. Returns true if the operation was successful. +*/ |