qt5base-lts/tests/auto/gui
Volker Hilsheimer bde443801f QFont: add a tag type for features and other advanced properties
Instead of overloads and generic string literals with runtime checks,
use a dedicated Tag type for specifying the font feature. The Tag type
can only be instantiated with a string literal of exactly 4 characters
(plus the terminating null)l; longer or shorter literals result in a
compile time error.

Constructing a Tag from any other string type is possible through the
named fromString constructor, in which case we can only check the length
and warn at runtime.

The type's API is almost completely constexpr so that we can use it to
calculate e.g. enum values.

Task-number: QTBUG-117046
Change-Id: I31038c7c6fd2b843a105b032f021e506b0b60822
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
2023-10-20 21:36:52 +02:00
..
image tst_QMovie: extend the test coverage for property bindings 2023-09-03 18:20:48 +02:00
itemmodels QStandardItemModel: extend the test coverage for property bindings 2023-09-03 18:20:54 +02:00
kernel Include what you need: <QPointer> 2023-10-12 21:38:54 +02:00
math3d Mark all of Qt as free of Q_FOREACH, except where it isn't 2023-08-19 05:19:42 +00:00
painting tests/auto/*: port Q_FOREACH to ranged-for, make container const 2023-08-19 16:29:30 +03:00
platform CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
qopengl CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
qopenglconfig CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
qvulkan CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
rhi CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
text QFont: add a tag type for features and other advanced properties 2023-10-20 21:36:52 +02:00
util Fix digit grouping: m_grouping_top doesn't mean what I thought it did 2023-08-08 19:44:56 +02:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00