qt5base-lts/examples/widgets/draganddrop/draggabletext
Gabriel de Dietrich 8ebe8ae35e HiDPI Drag and Drop: Properly render the default image on Mac
This is only when the attached MIME data contains text, and we
fall back to rendering that text into a pixmap. It requires
getting the device pixel ratio from the source which, for now,
may be a QWidget or a QWindow. Other cases may exist, but that
would bring more dependencies than desired.

Similarly, it fixes the draggabletext example. Other examples
would require either to get updated pixmaps or change substantially
in order to support HiDPI (e.g., the fridgemagnets example).

Change-Id: I66198214233e3e06c87505744e2aaa9691fe1bb6
Reviewed-by: Filipe Azevedo <filipe.azevedo@kdab.com>
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@theqtcompany.com>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
2016-08-09 18:22:03 +00:00
..
draggabletext.pro Polish DnD Examples. 2015-10-09 15:59:21 +00:00
draggabletext.qrc Moving .qdoc files under examples/widgets/doc 2012-08-20 12:20:55 +02:00
dragwidget.cpp HiDPI Drag and Drop: Properly render the default image on Mac 2016-08-09 18:22:03 +00:00
dragwidget.h Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
main.cpp Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
words.txt Moving .qdoc files under examples/widgets/doc 2012-08-20 12:20:55 +02:00