summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@qt.io>2019-03-26 11:45:50 +0100
committerMorten Johan Sørvig <morten.sorvig@qt.io>2020-11-12 16:25:07 +0200
commit8421a1f16d2b2d23247d6fbcae7f4a3aacf53c2c (patch)
tree6bcc64831a84af31b9bb9dd3a8bcae890d08f7d4
parent24239aef35f856c4c06428077e3428cbfdc51775 (diff)
Document physicalDotsPerInch high-DPI behavior
Add note to the member function documentation, in addition to the class documentation. Task-number: QTBUG-62649 Change-Id: I5cce6c06b58e70ef6c051d63c2901b219fa6d6b9 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
-rw-r--r--src/gui/kernel/qscreen.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/kernel/qscreen.cpp b/src/gui/kernel/qscreen.cpp
index cb09c10905..bfdcb37185 100644
--- a/src/gui/kernel/qscreen.cpp
+++ b/src/gui/kernel/qscreen.cpp
@@ -254,6 +254,9 @@ QSize QScreen::size() const
Depending on what information the underlying system provides the value might not be
entirely accurate.
+ \note Physical DPI is expressed in device-independent dots. Multiply by QScreen::devicePixelRatio()
+ to get device-dependent density.
+
\sa physicalDotsPerInchY()
*/
qreal QScreen::physicalDotsPerInchX() const
@@ -269,6 +272,9 @@ qreal QScreen::physicalDotsPerInchX() const
Depending on what information the underlying system provides the value might not be
entirely accurate.
+ \note Physical DPI is expressed in device-independent dots. Multiply by QScreen::devicePixelRatio()
+ to get device-dependent density.
+
\sa physicalDotsPerInchX()
*/
qreal QScreen::physicalDotsPerInchY() const
@@ -287,6 +293,9 @@ qreal QScreen::physicalDotsPerInchY() const
This is a convenience property that's simply the average of the physicalDotsPerInchX
and physicalDotsPerInchY properties.
+ \note Physical DPI is expressed in device-independent dots. Multiply by QScreen::devicePixelRatio()
+ to get device-dependent density.
+
\sa physicalDotsPerInchX()
\sa physicalDotsPerInchY()
*/