qt5base-lts/examples
Edward Welbourne 0b1670134b Replace confusing member variable with a predicate
The Converter class, in the eponymous example, had a null member
variable that wasn't a nullptr - it pointed to an instance of
NullConverter - so that other converters could test whether a
Converter * they'd been passed was null (in the sense of pointing to a
NullConverter). This, however, was susceptible to misreading - I
misread one such comparison as a nullptr check and thus thought it
redundant with an earlier actual nullptr check. To spare future
readers similar confusion, replace the public static member variable
with a protected (since only other derived classes need it) static
predicate, to at least give the reader a clue that this is using the
word null in a class-specific sense.

Pick-to: 6.6 6.5
Task-number: QTBUG-111228
Change-Id: I1e4f494b303d1bf90107f8c6fa3a4a22f6d81b90
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2023-11-01 21:28:55 +01:00
..
aggregate install a sane top-level examples.pro file 2012-12-11 13:37:57 +01:00
corelib Replace confusing member variable with a predicate 2023-11-01 21:28:55 +01:00
dbus Exclude some examples from Android build 2023-08-28 16:00:45 +03:00
embedded Examples: Remove unnecessary Q_INIT_RESOURCE calls 2023-06-08 16:15:02 +00:00
gui Doc: Add \examplecategory to qtgui 2023-08-28 13:49:36 +02:00
network Preparations to deprecate QItemDelegate 2023-10-05 21:08:45 +02:00
opengl hellogl2 example: Decouple mainwindow from window 2023-09-18 22:45:36 +02:00
qmake examples: port qmake examples to new connection style 2022-12-21 22:52:17 +02:00
qtconcurrent Doc: Add \examplecategory for qtconcurrent 2023-09-07 15:05:04 +02:00
qtestlib Examples: Use PRIVATE CMake linkage 2022-11-30 14:48:50 +01:00
sql Preparations to deprecate QItemDelegate 2023-10-05 21:08:45 +02:00
vulkan examples/: compile with QT_NO_CONTEXTLESS_CONNECT 2023-09-08 19:17:36 +03:00
widgets Examples: remove OpenGL code paths from painting examples 2023-10-27 16:22:59 +02:00
xml Add missing \l to DOM bookmarks example 2023-07-25 12:31:04 +02:00
CMakeLists.txt examples/: compile with QT_NO_CONTEXTLESS_CONNECT 2023-09-08 19:17:36 +03:00
examples.pro Move qpa examples to manual tests 2023-06-26 20:47:45 +02:00
README Remove more references to demos. 2011-07-08 15:36:26 +02:00

Qt is supplied with a number of example applications that have been
written to provide developers with examples of the Qt API in use,
highlight good programming practice, and showcase features found in each of
Qt's core technologies.


Documentation for examples can be found in the Examples section
of the Qt documentation.