Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoin.cpp
Show First 20 Lines • Show All 618 Lines • ▼ Show 20 Lines | #if QT_VERSION >= 0x050500 | ||||
// (https://disablessl3.com/), so set SSL protocols to TLS1.0+. | // (https://disablessl3.com/), so set SSL protocols to TLS1.0+. | ||||
QSslConfiguration sslconf = QSslConfiguration::defaultConfiguration(); | QSslConfiguration sslconf = QSslConfiguration::defaultConfiguration(); | ||||
sslconf.setProtocol(QSsl::TlsV1_0OrLater); | sslconf.setProtocol(QSsl::TlsV1_0OrLater); | ||||
QSslConfiguration::setDefaultConfiguration(sslconf); | QSslConfiguration::setDefaultConfiguration(sslconf); | ||||
#endif | #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 CAmount 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<CAmount>("CAmount"); | qRegisterMetaType<Amount>("Amount"); | ||||
// 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 161 Lines • Show Last 20 Lines |