diff options
author | Tasuku Suzuki <tasuku.suzuki@kdab.com> | 2020-06-03 22:18:39 +0900 |
---|---|---|
committer | Tasuku Suzuki <tasuku.suzuki@kdab.com> | 2020-06-18 23:56:04 +0900 |
commit | 31d2804e7a777fa4a41e8011bae3279601b08ff3 (patch) | |
tree | 8fb2c3d5b9c1cbb88a3c24eb4793ae741f7af27b /src/gui/kernel/qhighdpiscaling_p.h | |
parent | e11939afee9b79127247d3b5ba0ce57b306a7dd6 (diff) |
Fix build without features.highdpiscaling
Change-Id: I9fee7303d53be228546accbcdf29a63b52e3f625
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src/gui/kernel/qhighdpiscaling_p.h')
-rw-r--r-- | src/gui/kernel/qhighdpiscaling_p.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/kernel/qhighdpiscaling_p.h b/src/gui/kernel/qhighdpiscaling_p.h index cbb05cf69e..ed493a94c6 100644 --- a/src/gui/kernel/qhighdpiscaling_p.h +++ b/src/gui/kernel/qhighdpiscaling_p.h @@ -303,6 +303,15 @@ public: static inline void setGlobalFactor(qreal) {} static inline void setScreenFactor(QScreen *, qreal) {} + struct ScaleAndOrigin + { + qreal factor; + QPoint origin; + }; + static ScaleAndOrigin scaleAndOrigin(const QPlatformScreen *platformScreen, QPoint *nativePosition = nullptr); + static ScaleAndOrigin scaleAndOrigin(const QScreen *screen, QPoint *nativePosition = nullptr); + static ScaleAndOrigin scaleAndOrigin(const QWindow *platformScreen, QPoint *nativePosition = nullptr); + static inline bool isActive() { return false; } static inline qreal factor(const QWindow *) { return 1.0; } static inline qreal factor(const QScreen *) { return 1.0; } |