mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-03 09:56:38 -05: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
1 changed files with 4 additions and 0 deletions
|
@ -96,7 +96,11 @@ static void RegisterMetaTypes()
|
|||
qRegisterMetaType<QMessageBox::Icon>("QMessageBox::Icon");
|
||||
qRegisterMetaType<interfaces::BlockAndHeaderTipInfo>("interfaces::BlockAndHeaderTipInfo");
|
||||
|
||||
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
|
||||
qRegisterMetaTypeStreamOperators<BitcoinUnit>("BitcoinUnit");
|
||||
#else
|
||||
qRegisterMetaType<BitcoinUnit>("BitcoinUnit");
|
||||
#endif
|
||||
}
|
||||
|
||||
static QString GetLangTerritory()
|
||||
|
|
Loading…
Add table
Reference in a new issue