aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick
diff options
context:
space:
mode:
authorAlan Alpert <416365416c@gmail.com>2013-11-12 02:12:04 -0800
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-15 16:33:30 +0100
commit5eb2a916a4765564a61975833c2c154ed0431930 (patch)
treeaf4e16d947ebc9c71f2cf0172719e40e8de50281 /src/quick
parent69cf1147230db72554f3778c560d6f33109e0c00 (diff)
Deprecate logicalPixelDensity
It's just not working out in practice, and we don't want to confuse users with having to pick their flavor of pixel density. Task-number: QTBUG-34798 Change-Id: I552e479515a6f5249685844143601cb7449ccccc Reviewed-by: Jerome Pasion <jerome.pasion@digia.com> Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com> Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
Diffstat (limited to 'src/quick')
-rw-r--r--src/quick/items/qquickscreen.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/quick/items/qquickscreen.cpp b/src/quick/items/qquickscreen.cpp
index 6957eeaea7..48c0f8e084 100644
--- a/src/quick/items/qquickscreen.cpp
+++ b/src/quick/items/qquickscreen.cpp
@@ -130,10 +130,17 @@ QT_BEGIN_NAMESPACE
\qmlattachedproperty real Screen::logicalPixelDensity
\readonly
\since 5.1
+ \deprecated
- The number of logical pixels per millimeter. Logical pixels are the
- usual units in QML; on some systems they may be different than physical
- pixels.
+ The number of logical pixels per millimeter. This is the effective pixel
+ density provided by the platform to use in image scaling calculations.
+
+ Due to inconsistencies in how logical pixel density is handled across
+ the various platforms Qt supports, it is recommended to
+ use physical pixels instead (via the \c pixelDensity property) for
+ portability.
+
+ \sa pixelDensity
*/
/*!
\qmlattachedproperty real Screen::pixelDensity