qt5base-lts/tests/manual/lance
Morten Johan Sørvig 5e61bbe586 Basic high-dpi "retina" support for Qt 5.
Bring Qt 5 on par with Qt 4, prepare for more comprehensive
support later on.

Introduce device independent pixels (dips), device pixels,
and devicePixelRatio. Add high-dpi support to QPainter,
QGLWidget, the cocoa platform plugin, mac and fusion styles.

Dips are similar to CSS pixels, Apple points and
Android density-independent pixels. Device pixels
are pixels in the backing store/physical pixels on screen.
devicePixelRatio is the ratio between them, which is
1.0 on standard displays and 2.0 on "retina" displays.

New API:
QImage::devicePixelRatio() and setDevicePixelRatio()
QPixmap::devicePixelRatio() and setDevicePixelRatio()
QWindow::devicePixelRatio()
QScreen::devicePixelRatio()
QGuiApplicaiton::devicePixelRatio()

Change-Id: If98c3ca9bfdf0e1bdbcf7574cd5b912c9ff63856
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
2012-12-01 08:33:20 +01:00
..
enum.png Cleaning up the QPainter/arthur testing stuff 2011-06-29 15:10:14 +02:00
icons.qrc Cleaning up the QPainter/arthur testing stuff 2011-06-29 15:10:14 +02:00
interactivewidget.cpp Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
interactivewidget.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
lance.pro Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
main.cpp Basic high-dpi "retina" support for Qt 5. 2012-12-01 08:33:20 +01:00
README Cleaning up the QPainter/arthur testing stuff 2011-06-29 15:10:14 +02:00
tools.png Cleaning up the QPainter/arthur testing stuff 2011-06-29 15:10:14 +02:00
widgets.h Qt5 updates to the QPainter lancelot autotest 2012-11-09 16:07:44 +01:00

The "lance" tool can be used to edit and run QPainter script (.qps)
files. They are used in the "lancelot" qpainter regression autotest.
A collection of scripts can be found in the directory
tests/auto/lancelot/scripts

See lance -help for options.