Brush up the qgraphicsproxywidget test

- Reduce clang-tidy warning from 789->591
  (Use auto, nullptr, member initialization, etc).
- Introduce string literals, replacing deprecated QLatin1String
- Streamline/rearrange layout code
- Fix QCOMPARE(.., bool)
- User per-class includes following Qt conventions

Task-number: QTBUG-128913
Change-Id: I787f39b5ddfe34ba18e33f469b68ccbcfc2709a3
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
(cherry picked from commit 25e16e20cc434f484380dfa59c1b8a3d6f772920)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Friedemann Kleint 2024-10-31 09:43:56 +01:00 committed by Qt Cherry-pick Bot
parent 5d612a72ad
commit 607ac728ed
2 changed files with 343 additions and 346 deletions

View File

@ -16,6 +16,7 @@ qt_internal_add_test(tst_qgraphicsproxywidget
tst_qgraphicsproxywidget.cpp
DEFINES
QTEST_QPA_MOUSE_HANDLING
QT_NO_CAST_FROM_ASCII
LIBRARIES
Qt::CorePrivate
Qt::Gui