mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-05-13 13:20:40 +02:00
qt6: Fix type registration
In Qt 6, registration of `QDataStream` streaming operators is done automatically. Consequently, `qRegisterMetaTypeStreamOperators()` does no longer exist. Calls to this method have to be removed when porting to Qt 6. See https://doc.qt.io/qt-6/qtcore-changes-qt6.html#the-qmetatype-class
This commit is contained in:
parent
18d9189cc9
commit
3f51d0b8b2
@ -96,7 +96,11 @@ static void RegisterMetaTypes()
|
|||||||
qRegisterMetaType<QMessageBox::Icon>("QMessageBox::Icon");
|
qRegisterMetaType<QMessageBox::Icon>("QMessageBox::Icon");
|
||||||
qRegisterMetaType<interfaces::BlockAndHeaderTipInfo>("interfaces::BlockAndHeaderTipInfo");
|
qRegisterMetaType<interfaces::BlockAndHeaderTipInfo>("interfaces::BlockAndHeaderTipInfo");
|
||||||
|
|
||||||
|
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
|
||||||
qRegisterMetaTypeStreamOperators<BitcoinUnit>("BitcoinUnit");
|
qRegisterMetaTypeStreamOperators<BitcoinUnit>("BitcoinUnit");
|
||||||
|
#else
|
||||||
|
qRegisterMetaType<BitcoinUnit>("BitcoinUnit");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static QString GetLangTerritory()
|
static QString GetLangTerritory()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user