summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qhighdpiscaling_p.h
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@theqtcompany.com>2015-04-14 16:27:33 +0200
committerPaul Olav Tvete <paul.tvete@theqtcompany.com>2015-04-14 16:27:33 +0200
commit56b72d7809a6016149668b7df0dfd35022ff01c6 (patch)
tree06aaf93c55ce6f3185f70e1d5f9aa68372d2d807 /src/gui/kernel/qhighdpiscaling_p.h
parent04e4feae6c2fc0074839c490c81977ade20011c9 (diff)
Per-screen scaleFactor
To enable, set QT_SCALE_FACTOR=auto Tons of bugs, since this does not port all the QT_DEVICE_PIXEL_RATIO fixes from xcb.
Diffstat (limited to 'src/gui/kernel/qhighdpiscaling_p.h')
-rw-r--r--src/gui/kernel/qhighdpiscaling_p.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/kernel/qhighdpiscaling_p.h b/src/gui/kernel/qhighdpiscaling_p.h
index 6929b3ac83..5827bc1565 100644
--- a/src/gui/kernel/qhighdpiscaling_p.h
+++ b/src/gui/kernel/qhighdpiscaling_p.h
@@ -79,11 +79,13 @@ Q_DECLARE_LOGGING_CATEGORY(lcScaling);
class Q_GUI_EXPORT QHighDpiScaling {
public:
static bool isActive() { return m_active; }
- static qreal factor(const QWindow *window = 0);
+ static qreal factor(const QWindow *window);
+ static qreal factor(const QScreen *screen);
static void setFactor(qreal factor);
static void setWindowFactor(QWindow *window, qreal factor);
private:
static qreal m_factor;
+ static bool m_autoFactor;
static bool m_active;
static bool m_perWindowActive;
};