refactor: Styling w/ clang-format, comment update
Github-Pull: #17427 Rebased-From: 1828c6f05fcbed9ed432b042cc36eee0d80b113d Tree-SHA512: 140b723bd9c8d8823ecb84d7f774d213a9e9dac45fb0de82c43521cf8276d946feaa1b7c0b7d40f51dbab38c88c53b4680da1965b1e0ce7f858eb35b2c4537da
This commit is contained in:
parent
2aba76ce02
commit
a284bbbee8
1 changed files with 8 additions and 6 deletions
|
@ -439,17 +439,19 @@ int GuiMain(int argc, char* argv[])
|
||||||
|
|
||||||
BitcoinApplication app(*node);
|
BitcoinApplication app(*node);
|
||||||
|
|
||||||
// Register meta types used for QMetaObject::invokeMethod
|
// Register meta types used for QMetaObject::invokeMethod and Qt::QueuedConnection
|
||||||
qRegisterMetaType< bool* >();
|
qRegisterMetaType<bool*>();
|
||||||
#ifdef ENABLE_WALLET
|
#ifdef ENABLE_WALLET
|
||||||
qRegisterMetaType<WalletModel*>();
|
qRegisterMetaType<WalletModel*>();
|
||||||
#endif
|
#endif
|
||||||
// Need to pass name here as CAmount is a typedef (see http://qt-project.org/doc/qt-5/qmetatype.html#qRegisterMetaType)
|
// Register typedefs (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 CAmount is no longer a typedef use the normal variant above (see https://doc.qt.io/qt-5/qmetatype.html#qRegisterMetaType-1)
|
||||||
qRegisterMetaType< CAmount >("CAmount");
|
qRegisterMetaType<CAmount>("CAmount");
|
||||||
qRegisterMetaType<size_t>("size_t");
|
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
|
||||||
// Command-line options take precedence:
|
// Command-line options take precedence:
|
||||||
node->setupServerArgs();
|
node->setupServerArgs();
|
||||||
|
|
Loading…
Add table
Reference in a new issue