summaryrefslogtreecommitdiffstats
path: root/src/widgets/kernel/qapplication.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/kernel/qapplication.cpp')
-rw-r--r--src/widgets/kernel/qapplication.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/widgets/kernel/qapplication.cpp b/src/widgets/kernel/qapplication.cpp
index 40894c28702..d3cf1587c45 100644
--- a/src/widgets/kernel/qapplication.cpp
+++ b/src/widgets/kernel/qapplication.cpp
@@ -3234,8 +3234,8 @@ bool QApplication::notify(QObject *receiver, QEvent *e)
typedef void (*RegisterTouchWindowFn)(QWindow *, bool);
case QEvent::Enter:
if (w->testAttribute(Qt::WA_AcceptTouchEvents)) {
- RegisterTouchWindowFn registerTouchWindow = reinterpret_cast<RegisterTouchWindowFn>
- (platformNativeInterface()->nativeResourceFunctionForIntegration("registertouchwindow"));
+ RegisterTouchWindowFn registerTouchWindow = reinterpret_cast<RegisterTouchWindowFn>(
+ QFunctionPointer(platformNativeInterface()->nativeResourceFunctionForIntegration("registertouchwindow")));
if (registerTouchWindow)
registerTouchWindow(w->window()->windowHandle(), true);
}
@@ -3243,8 +3243,8 @@ bool QApplication::notify(QObject *receiver, QEvent *e)
break;
case QEvent::Leave:
if (w->testAttribute(Qt::WA_AcceptTouchEvents)) {
- RegisterTouchWindowFn registerTouchWindow = reinterpret_cast<RegisterTouchWindowFn>
- (platformNativeInterface()->nativeResourceFunctionForIntegration("registertouchwindow"));
+ RegisterTouchWindowFn registerTouchWindow = reinterpret_cast<RegisterTouchWindowFn>(
+ QFunctionPointer(platformNativeInterface()->nativeResourceFunctionForIntegration("registertouchwindow")));
if (registerTouchWindow)
registerTouchWindow(w->window()->windowHandle(), false);
}