diff options
Diffstat (limited to 'src/widgets/widgets/qtabbar.cpp')
-rw-r--r-- | src/widgets/widgets/qtabbar.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/widgets/widgets/qtabbar.cpp b/src/widgets/widgets/qtabbar.cpp index b586a96e4d7..53d13ca2855 100644 --- a/src/widgets/widgets/qtabbar.cpp +++ b/src/widgets/widgets/qtabbar.cpp @@ -106,14 +106,16 @@ void QTabBarPrivate::updateMacBorderMetrics() if (!function) return; // Not Cocoa platform plugin. typedef void (*RegisterContentBorderAreaFunction)(QWindow *window, quintptr identifier, int upper, int lower); - (reinterpret_cast<RegisterContentBorderAreaFunction>(function))(q->window()->windowHandle(), identifier, upper, lower); + (reinterpret_cast<RegisterContentBorderAreaFunction>(QFunctionPointer(function)))( + q->window()->windowHandle(), identifier, upper, lower); // Set visibility state function = nativeInterface->nativeResourceFunctionForIntegration("setContentBorderAreaEnabled"); if (!function) return; typedef void (*SetContentBorderAreaEnabledFunction)(QWindow *window, quintptr identifier, bool enable); - (reinterpret_cast<SetContentBorderAreaEnabledFunction>(function))(q->window()->windowHandle(), identifier, q->isVisible()); + (reinterpret_cast<SetContentBorderAreaEnabledFunction>(QFunctionPointer(function)))( + q->window()->windowHandle(), identifier, q->isVisible()); #endif } |