qt: Fix missing qRegisterMetaType for size_t

It is required in order to use size_t in QueuedConnections.

Github-Pull: #17427
Rebased-From: 88a94f7bb8ba2b0257315d70717f9af928ca6561
Tree-SHA512: 55accd997209c559dfc8e88b0db189ba314ac31e265ba2f94fa2009f1aba6b96213e2aa8cbad492b1230078f2e6cf1cca7a233dc6f54e9bc449f4e5438330b4d
This commit is contained in:
Hennadii Stepanov 2019-11-10 12:03:53 +02:00 committed by Wladimir J. van der Laan
parent dd198064b5
commit 2aba76ce02
No known key found for this signature in database
GPG key ID: 1E4AED62986CD25D

View file

@ -447,6 +447,7 @@ int GuiMain(int argc, char* argv[])
// Need to pass name here as CAmount is a typedef (see http://qt-project.org/doc/qt-5/qmetatype.html#qRegisterMetaType)
// IMPORTANT if it is no longer a typedef use the normal variant above
qRegisterMetaType< CAmount >("CAmount");
qRegisterMetaType<size_t>("size_t");
qRegisterMetaType< std::function<void()> >("std::function<void()>");
qRegisterMetaType<QMessageBox::Icon>("QMessageBox::Icon");
/// 2. Parse command-line options. We do this after qt in order to show an error if there are problems parsing these