File indexing completed on 2024-05-12 17:08:30

0001 /*
0002  * SPDX-FileCopyrightText: 2020 Arjen Hiemstra <ahiemstra@heimr.nl>
0003  *
0004  * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005  */
0006 
0007 #include "TablePlugin.h"
0008 
0009 #include <QQmlEngine>
0010 
0011 #include "ColumnDisplayModel.h"
0012 #include "ColumnSortModel.h"
0013 #include "ComponentCacheProxyModel.h"
0014 #include "ProcessSortFilterModel.h"
0015 #include "ReverseColumnsProxyModel.h"
0016 
0017 void TablePlugin::registerTypes(const char *uri)
0018 {
0019     Q_ASSERT(QLatin1String(uri) == QLatin1String("org.kde.ksysguard.table"));
0020 
0021     qmlRegisterType<ColumnSortModel>(uri, 1, 0, "ColumnSortModel");
0022     qmlRegisterType<ColumnDisplayModel>(uri, 1, 0, "ColumnDisplayModel");
0023     qmlRegisterType<ComponentCacheProxyModel>(uri, 1, 0, "ComponentCacheProxyModel");
0024     qmlRegisterType<ProcessSortFilterModel>(uri, 1, 0, "ProcessSortFilterModel");
0025     qmlRegisterType<ReverseColumnsProxyModel>(uri, 1, 0, "ReverseColumnsProxyModel");
0026 }