Manually register SortFilterProxyModel.

This commit is contained in:
Black Hat 2018-10-18 19:53:54 +08:00
parent 4c0accada9
commit d35405696f
1 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,8 @@
#include "csapi/joining.h" #include "csapi/joining.h"
#include "csapi/leaving.h" #include "csapi/leaving.h"
#include "qqmlsortfilterproxymodel.h"
using namespace QMatrixClient; using namespace QMatrixClient;
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
@ -32,6 +34,8 @@ int main(int argc, char *argv[]) {
app.setQuitOnLastWindowClosed(false); app.setQuitOnLastWindowClosed(false);
qmlRegisterType<qqsfpm::QQmlSortFilterProxyModel>("SortFilterProxyModel", 0,
2, "SortFilterProxyModel");
qmlRegisterType<ImageItem>("Spectral", 0, 1, "ImageItem"); qmlRegisterType<ImageItem>("Spectral", 0, 1, "ImageItem");
qmlRegisterType<Controller>("Spectral", 0, 1, "Controller"); qmlRegisterType<Controller>("Spectral", 0, 1, "Controller");
qmlRegisterType<AccountListModel>("Spectral", 0, 1, "AccountListModel"); qmlRegisterType<AccountListModel>("Spectral", 0, 1, "AccountListModel");