Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoin.cpp
Show First 20 Lines • Show All 549 Lines • ▼ Show 20 Lines | #endif | ||||
// Register meta types used for QMetaObject::invokeMethod | // Register meta types used for QMetaObject::invokeMethod | ||||
qRegisterMetaType<bool *>(); | qRegisterMetaType<bool *>(); | ||||
// Need to pass name here as Amount is a typedef (see | // Need to pass name here as Amount is a typedef (see | ||||
// http://qt-project.org/doc/qt-5/qmetatype.html#qRegisterMetaType) | // 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<Amount>("Amount"); | qRegisterMetaType<Amount>("Amount"); | ||||
qRegisterMetaType<std::function<void()>>("std::function<void()>"); | qRegisterMetaType<std::function<void()>>("std::function<void()>"); | ||||
qRegisterMetaType<QMessageBox::Icon>("QMessageBox::Icon"); | |||||
// Need to register any types Qt doesn't know about if you intend | // Need to register any types Qt doesn't know about if you intend | ||||
// to use them with the signal/slot mechanism Qt provides. Even pointers. | // to use them with the signal/slot mechanism Qt provides. Even pointers. | ||||
// Note that class Config is noncopyable and so we can't register a | // Note that class Config is noncopyable and so we can't register a | ||||
// non-pointer version of it with Qt, because Qt expects to be able to | // non-pointer version of it with Qt, because Qt expects to be able to | ||||
// copy-construct non-pointers to objects for invoking slots | // copy-construct non-pointers to objects for invoking slots | ||||
// behind-the-scenes in the 'Queued' connection case. | // behind-the-scenes in the 'Queued' connection case. | ||||
qRegisterMetaType<Config *>(); | qRegisterMetaType<Config *>(); | ||||
▲ Show 20 Lines • Show All 196 Lines • Show Last 20 Lines |