qtbase/examples/widgets
Shawn Rutledge 4d47bc2a77 DropSite example: handle application/x-color
Show the color that is dragged in, both graphically and textually.
Revert to default palette for other data types. Prioritize colors
over text: if an application (such as kolourpaint) offers both x-color
and text, the color is probably the intention, and the text may be
just a hex string for placing into a color text field.

Fixes: QTBUG-134313
Change-Id: I6c19f1220712881d2057bc9758bbc8cbd9247c81
Reviewed-by: Liang Qi <liang.qi@qt.io>
(cherry picked from commit 1750acc392)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit bbceab7932)
2025-03-21 22:56:07 +00:00
..
animation Add copyright and licensing to build system files missing it 2024-05-21 17:23:21 +02:00
desktop systray example: if there is no system tray, allow waiting for one 2024-06-05 01:40:21 +00:00
dialogs Standard dialogs example: Fix compilation with QT_NO_CAST_FROM_ASCII 2025-01-21 16:57:48 +00:00
doc Correct childNumber() reference in editable tree model example 2025-02-19 04:10:30 +00:00
draganddrop DropSite example: handle application/x-color 2025-03-21 22:56:07 +00:00
gallery Widget gallery example: set color scheme before constructing UI 2024-06-11 19:35:30 +00:00
gestures CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
graphicsview Docs: Update the screenshots for the Qt Widgets examples 2024-10-15 07:29:48 +00:00
itemviews CMake: Use a unique resource identifier in simpletreemodel example 2025-01-21 10:45:05 +00:00
layouts CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
mainwindows CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
painting Examples: Disable QtC junction points for examples using 'shared' directory 2024-12-20 07:21:19 +00:00
qnx/foreignwindows Doc: Fix license of foreignwindows example 2023-06-30 18:46:54 +02:00
rhi CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
richtext CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
tools Show Custom Completer example as part of UI Components category 2024-10-31 15:36:20 +00:00
touch CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
tutorials Doc: Update \externalpage entries for Qt Creator documentation 2025-02-08 13:53:15 +00:00
widgets Add copyright and licensing to build system files missing it 2024-05-21 17:23:21 +02:00
CMakeLists.txt Correct license for examples files 2024-03-07 11:06:43 +01:00
widgets.pro Add QRhiWidget 2023-08-14 17:05:36 +02:00