mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-21 14:22:38 +02:00
qt: Fix missing qRegisterMetaType for size_t
It is required in order to use size_t in QueuedConnections.
This commit is contained in:
parent
a7aec7ad97
commit
88a94f7bb8
@ -438,6 +438,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)
|
// 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
|
// IMPORTANT if it is no longer a typedef use the normal variant above
|
||||||
qRegisterMetaType< CAmount >("CAmount");
|
qRegisterMetaType< CAmount >("CAmount");
|
||||||
|
qRegisterMetaType<size_t>("size_t");
|
||||||
qRegisterMetaType< std::function<void()> >("std::function<void()>");
|
qRegisterMetaType< std::function<void()> >("std::function<void()>");
|
||||||
qRegisterMetaType<QMessageBox::Icon>("QMessageBox::Icon");
|
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
|
/// 2. Parse command-line options. We do this after qt in order to show an error if there are problems parsing these
|
||||||
|
Loading…
x
Reference in New Issue
Block a user