qt6-bb10/examples/widgets
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
..
animation Use C++ <cmath> instead of <math.h> 2015-02-16 16:21:15 +00:00
desktop Doc: removed double occurrence of systray.qdoc 2016-01-26 09:39:21 +00:00
dialogs Polish the findfiles example to be actually useful 2016-08-03 11:53:55 +00:00
doc Polish the findfiles example to be actually useful 2016-08-03 11:53:55 +00:00
draganddrop HiDPI Drag and Drop: Properly render the default image on Mac 2016-08-09 18:22:03 +00:00
effects Use C++ <cmath> instead of <math.h> 2015-02-16 16:21:15 +00:00
gestures Remove empty first lines of files. 2016-04-06 18:26:26 +00:00
graphicsview Add missing indentation 2016-04-28 22:39:46 +00:00
itemviews Dirview example: Add option for DontUseCustomDirectoryIcons. 2016-05-11 17:29:17 +00:00
layouts Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
mac Add install target to mac widget examples 2016-06-01 02:30:45 +00:00
mainwindows examples: use QSignalBlocker 2016-07-28 23:43:32 +00:00
painting PathStrokeRenderer::initializePoints(): use float division 2016-07-15 11:35:12 +00:00
richtext TextEdit example: fix build when clipboard is disabled. 2015-10-19 14:56:45 +00:00
scroller Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
statemachine Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
tools Polish the codecs example 2016-08-03 11:53:47 +00:00
tutorials Examples/Doc snippets: Fix single-character string literals. 2015-10-13 16:37:07 +00:00
widgets Polish charactermap example 2016-08-02 18:57:49 +00:00
windowcontainer Make the windowcontainer example more robust 2015-05-12 08:58:47 +00:00
widgets.pro purge vestiges of opengl es 1 support 2014-04-04 19:32:21 +02:00