qtbase/examples/widgets/draganddrop/draggabletext
Giuseppe D'Angelo 72e6a5fec0 Examples: fix a couple of nodiscard warnings from QFile::open
In one case, the code simply checked for isOpen afterwards; refactor
it to use QFile::open's result. In another case, a file was opened
from the resource system, so add a check.

Pick-to: 6.8
Change-Id: I5f4c22dd5ce678f15c9c1609c4228d50a2b32a1d
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit eeead68995)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-04-24 11:11:24 +00:00
..
CMakeLists.txt CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
draggabletext.pro wasm: fix drag examples for webassembly 2024-01-11 00:52:01 +10:00
draggabletext.qrc
dragwidget.cpp Examples: fix a couple of nodiscard warnings from QFile::open 2025-04-24 11:11:24 +00:00
dragwidget.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
main.cpp Examples: Remove unnecessary Q_INIT_RESOURCE calls 2023-06-08 16:15:02 +00:00
words.txt examples: Update content of "draggabletext" 2023-12-13 16:21:55 +00:00