qtbase/examples/widgets
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
..
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:10 +00:00
dialogs Standard dialogs example: Fix compilation with QT_NO_CAST_FROM_ASCII 2025-01-21 11:26:05 +00:00
doc Correct childNumber() reference in editable tree model example 2025-02-18 22:58:21 +00:00
draganddrop Examples: fix a couple of nodiscard warnings from QFile::open 2025-04-24 11:11:24 +00:00
gallery Widget gallery example: set color scheme before constructing UI 2024-06-11 20:28:07 +02:00
gestures CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
graphicsview Replace qdebug.h includes in public headers with forward-declarations 2025-01-15 11:28:28 +00:00
itemviews CMake: Use a unique resource identifier in simpletreemodel example 2025-01-20 17:42:01 +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 Use QPainterStateGuard in examples 2024-12-17 21:18:54 +00:00
qnx/foreignwindows
rhi Examples: port from QCheckBox::stateChanged to checkStateChanged 2025-03-26 15:54:15 +00: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 17:36:09 +02:00
touch CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
tutorials Notepad example: Use theme icons 2025-01-28 19:35:30 +00:00
widgets Use QPainterStateGuard in examples 2024-12-17 21:18:54 +00:00
CMakeLists.txt Correct license for examples files 2024-03-07 11:06:43 +01:00
widgets.pro