Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoin.cpp
Show First 20 Lines • Show All 544 Lines • ▼ Show 20 Lines | |||||
#ifdef Q_OS_MAC | #ifdef Q_OS_MAC | ||||
QApplication::setAttribute(Qt::AA_DontShowIconsInMenus); | QApplication::setAttribute(Qt::AA_DontShowIconsInMenus); | ||||
#endif | #endif | ||||
BitcoinApplication app(*node, argc, argv); | BitcoinApplication app(*node, argc, argv); | ||||
// Register meta types used for QMetaObject::invokeMethod | // Register meta types used for QMetaObject::invokeMethod | ||||
qRegisterMetaType<bool *>(); | qRegisterMetaType<bool *>(); | ||||
#ifdef ENABLE_WALLET | |||||
qRegisterMetaType<WalletModel *>(); | |||||
#endif | |||||
// 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"); | 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 | ||||
▲ Show 20 Lines • Show All 202 Lines • Show Last 20 Lines |