mirror of
https://github.com/status-im/SortFilterProxyModel.git
synced 2025-02-23 08:08:15 +00:00
parent
9ad7a0a53c
commit
45d16933c3
@ -247,11 +247,9 @@ QVariantMap QQmlSortFilterProxyModel::modelDataMap(const QModelIndex& modelIndex
|
||||
return map;
|
||||
}
|
||||
|
||||
struct QQmlSortFilterProxyModelRegisterHelper {
|
||||
QQmlSortFilterProxyModelRegisterHelper() {
|
||||
qmlRegisterType<QAbstractItemModel>();
|
||||
qmlRegisterType<QQmlSortFilterProxyModel>("SortFilterProxyModel", 0, 1, "SortFilterProxyModel");
|
||||
}
|
||||
};
|
||||
void registerQQmlSortFilterProxyModelTypes() {
|
||||
qmlRegisterType<QAbstractItemModel>();
|
||||
qmlRegisterType<QQmlSortFilterProxyModel>("SortFilterProxyModel", 0, 1, "SortFilterProxyModel");
|
||||
}
|
||||
|
||||
static QQmlSortFilterProxyModelRegisterHelper registerHelper;
|
||||
Q_COREAPP_STARTUP_FUNCTION(registerQQmlSortFilterProxyModelTypes)
|
||||
|
Loading…
x
Reference in New Issue
Block a user