From d35405696ffeb92e370a5a9600c7a478f55cde78 Mon Sep 17 00:00:00 2001 From: Black Hat Date: Thu, 18 Oct 2018 19:53:54 +0800 Subject: [PATCH] Manually register SortFilterProxyModel. --- src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 1081040..16c1f6f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -17,6 +17,8 @@ #include "csapi/joining.h" #include "csapi/leaving.h" +#include "qqmlsortfilterproxymodel.h" + using namespace QMatrixClient; int main(int argc, char *argv[]) { @@ -32,6 +34,8 @@ int main(int argc, char *argv[]) { app.setQuitOnLastWindowClosed(false); + qmlRegisterType("SortFilterProxyModel", 0, + 2, "SortFilterProxyModel"); qmlRegisterType("Spectral", 0, 1, "ImageItem"); qmlRegisterType("Spectral", 0, 1, "Controller"); qmlRegisterType("Spectral", 0, 1, "AccountListModel");