forked from qt-creator/qt-creator
QmlDesigner: Fix build with Qt6
Task-number: QTCREATORBUG-24098 Change-Id: I3d5c7d821402acc13ccd505550afc66a531b13b5 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
This commit is contained in:
@@ -50,7 +50,7 @@
|
||||
static Q_LOGGING_CATEGORY(itemlibraryPopulate, "qtc.itemlibrary.populate", QtWarningMsg)
|
||||
|
||||
static bool inline registerItemLibrarySortedModel() {
|
||||
qmlRegisterType<QmlDesigner::ItemLibrarySectionModel>();
|
||||
qmlRegisterAnonymousType<QmlDesigner::ItemLibrarySectionModel>("ItemLibrarySectionModel", 1);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -296,8 +296,8 @@ void ItemLibraryModel::clearSections()
|
||||
|
||||
void ItemLibraryModel::registerQmlTypes()
|
||||
{
|
||||
qmlRegisterType<QmlDesigner::ItemLibrarySectionModel>();
|
||||
qmlRegisterType<QmlDesigner::ItemLibraryModel>();
|
||||
qmlRegisterAnonymousType<QmlDesigner::ItemLibrarySectionModel>("ItemLibrarySectionModel", 1);
|
||||
qmlRegisterAnonymousType<QmlDesigner::ItemLibraryModel>("ItemLibraryModel", 1);
|
||||
}
|
||||
|
||||
ItemLibrarySection *ItemLibraryModel::sectionByName(const QString §ionName)
|
||||
|
||||
Reference in New Issue
Block a user