Ported from https://github.com/bitcoin/bitcoin/pull/19108.
For typedef
s, which is CAmount
, qRegisterMetaType(const char*)
only is required.
No behavior change.
Ported from https://github.com/bitcoin/bitcoin/pull/19108.
For typedef
s, which is CAmount
, qRegisterMetaType(const char*)
only is required.
No behavior change.
60@@ -60,9 +61,10 @@ Q_IMPORT_PLUGIN(QCocoaIntegrationPlugin);
61 #endif
62 #endif
63
64-// Declare meta types used for QMetaObject::invokeMethod
65+// Make types (not aliases) available to QVariant and other template-based Qt functions.
66+// Additionally qRegisterMetaType() calls are required to make them available to
67+// non-template based Qt functions, including those that use Qt::QueuedConnection.
QT_FATAL_WARNINGS=1
as a way to identify missing registrations.
For typedefs, which is CAmount, qRegisterMetaType(const char*) only is
required.
CAmount
were to ever be changed. Kinda the point of the typedef anyway is that you don’t need to care so much what the underlying type is…
If there’s no behaviour change, I’d figure just leave it alone so things don’t subtly break if the type of
CAmount
were to ever be changed. Kinda the point of the typedef anyway is that you don’t need to care so much what the underlying type is…
Closing.
if the type of
CAmount
were to ever be changed
Ok 😅
Labels
Refactoring