diff options
| author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2025-04-01 12:52:58 +0200 |
|---|---|---|
| committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2025-04-11 21:19:51 +0000 |
| commit | 7af5912e61160681be736ff07a1cd0a0f6b28944 (patch) | |
| tree | 50e75871db6a797dfc29643eef85d73f1078c1e6 /tests/auto/sql/kernel/qsqldatabase/tst_qsqldatabase.cpp | |
| parent | b8de5ad1edd7e693251e5993774e78734f304100 (diff) | |
qgraphicsitem_cast: replace runtime with compile-time check
Specialize the cast template for QGraphicsItem, where we can skip the
runtime comparisons of the type.
In addition, replace the runtime check for QGraphicsItem::Type with a
compile time check in the main template.
We need to do both so that we correctly cast up to QGraphicsItem for
custom item types that don't provide their own Type alias.
Pick-to: 6.9 6.8
Change-Id: Ic1bff3404fe890747865ce1349cddbcfebb3b77b
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Diffstat (limited to 'tests/auto/sql/kernel/qsqldatabase/tst_qsqldatabase.cpp')
0 files changed, 0 insertions, 0 deletions
