diff options
| author | Shawn Hoffman <godisgovernment@gmail.com> | 2020-08-21 18:09:04 -0700 |
|---|---|---|
| committer | Shawn Hoffman <godisgovernment@gmail.com> | 2020-08-23 13:57:05 -0700 |
| commit | 89b6a4cbeedfeece3378b8f1907af6b1e2072061 (patch) | |
| tree | b7d60a7052fc45c3e5455ac28f064f61dce19c25 /Source/Core/DolphinQt/Config/ControllersWindow.cpp | |
| parent | c629af631907b06c193137043fa86eb5ce739b95 (diff) | |
DolphinQt: resolve Qt5.15 deprecations
Diffstat (limited to 'Source/Core/DolphinQt/Config/ControllersWindow.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Config/ControllersWindow.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/Config/ControllersWindow.cpp b/Source/Core/DolphinQt/Config/ControllersWindow.cpp index 2f3d03ed43..82e6da599b 100644 --- a/Source/Core/DolphinQt/Config/ControllersWindow.cpp +++ b/Source/Core/DolphinQt/Config/ControllersWindow.cpp @@ -131,9 +131,12 @@ static int GetLayoutHorizontalSpacing(const QGridLayout* layout) // Docs claim this is deprecated, but on macOS with Qt 5.8 this is the only one that actually // works. float pixel_ratio = QGuiApplication::primaryScreen()->devicePixelRatio(); +#ifdef __APPLE__ + // TODO is this still required? hspacing = pixel_ratio * style->pixelMetric(QStyle::PM_DefaultLayoutSpacing); if (hspacing >= 0) return hspacing; +#endif // Ripped from qtbase/src/widgets/styles/qcommonstyle.cpp return pixel_ratio * 6; |
