From 8421a1f16d2b2d23247d6fbcae7f4a3aacf53c2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Morten=20Johan=20S=C3=B8rvig?= Date: Tue, 26 Mar 2019 11:45:50 +0100 Subject: [PATCH] Document physicalDotsPerInch high-DPI behavior MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ø --- src/gui/kernel/qscreen.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) 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() */