diff options
author | Shawn Rutledge <shawn.rutledge@digia.com> | 2015-02-06 07:09:03 +0100 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@digia.com> | 2015-02-14 08:00:17 +0000 |
commit | dd4f59b227f3734051a07e35d6a3c33540c68908 (patch) | |
tree | 2c92590be98720cf128f83215b7c95dbca1c8291 /src/gui/kernel/qscreen.cpp | |
parent | 88142e73d5e062cf26638511a42140b59ef736cc (diff) |
QScreen: add devicePixelRatio property
It has been only an accessor until now.
[ChangeLog][QtGui][QScreen] added devicePixelRatio property
Change-Id: I3b9d0aed437cc11a8ddb5b601dd8db6ed5ca9748
Reviewed-by: Jørgen Lind <jorgen.lind@theqtcompany.com>
Diffstat (limited to 'src/gui/kernel/qscreen.cpp')
-rw-r--r-- | src/gui/kernel/qscreen.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/kernel/qscreen.cpp b/src/gui/kernel/qscreen.cpp index eb8ae7a2ca..038be09dc7 100644 --- a/src/gui/kernel/qscreen.cpp +++ b/src/gui/kernel/qscreen.cpp @@ -244,9 +244,14 @@ qreal QScreen::logicalDotsPerInch() const } /*! + \property QScreen::devicePixelRatio + \brief the screen's ratio between physical pixels and device-independent pixels + \since 5.5 + Returns the ratio between physical pixels and device-independent pixels for the screen. - Common values are 1.0 on normal displays and 2.0 on Apple "retina" displays. + Common values are 1.0 on normal displays and 2.0 on "retina" displays. + Higher values are also possible. \sa QWindow::devicePixelRatio(), QGuiApplication::devicePixelRatio() */ |