qt5base-lts/tests/auto/tools
Thiago Macieira 56bd5d60c9 Fix registration of QtDBus types' metatypes
By actually registering them.

Commit 850d850c5a changed from
qMetaTypeId<QDBusArgument>() to QMetaType::fromType<QDBusArgument>() and
in Qt 6, fromType() does not register the type with the database. That
means the lines became runtime no-ops at that time or during the
QMetaType updates since 6.0. All they did was instantiate the C++ inline
variable.

The testing also detected we didn't register QList<QDBusVariant> as an
alias for the "av" signature. I'm not entirely sure you're allowed to
use this because QtDBus does not like re-registration of the built-in
types, and "av" is already assigned to QVariantList. This is no trouble
for the parser, anyway.

Minor change to qdbuscpp2xml to allow reading from stdin, so we don't
have to create temporary files.

Pick-to: 6.5 6.6
Fixes: QTBUG-115964
Change-Id: I80612a7d275c41f1baf0fffd177a14925e7d23ac
Reviewed-by: Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io>
2023-08-14 20:19:36 -07:00
..
macdeployqt tests: port assorted trivial uses of Q_FOREACH to ranged for loops 2023-08-14 23:11:54 +03:00
moc QObject: replace _q_reregisterTimers with a lambda 2023-07-31 01:52:25 +03:00
qdbuscpp2xml Fix registration of QtDBus types' metatypes 2023-08-14 20:19:36 -07:00
qdbusxml2cpp qdbusxml2cpp: Improve error reporting 2023-07-06 21:51:25 +02:00
qmake CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
qmakelib CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
qt_cmake_create CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
rcc tst_rcc: port away from Q_FOREACH 2023-08-08 22:03:05 +02:00
uic CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
windeployqt CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
CMakeLists.txt tests/tools: only run qdbus{cpp2xml,xml2cpp} tests if D-Bus is available 2023-08-14 20:19:36 -07:00