diff options
author | link2xt <link2xt@testrun.org> | 2020-11-05 22:03:37 +0300 |
---|---|---|
committer | link2xt <link2xt@testrun.org> | 2020-11-05 23:08:08 +0300 |
commit | fe89c7a4ff760564f3cdbcd8e27c04eadd9f79d8 (patch) | |
tree | 39d56b00509277afca8743adcf6051bd42121e99 /main.cpp | |
parent | daa31b783ad1dead6cbed79b428792702612aa31 (diff) | |
download | kdeltachat-fe89c7a4ff760564f3cdbcd8e27c04eadd9f79d8.tar.gz kdeltachat-fe89c7a4ff760564f3cdbcd8e27c04eadd9f79d8.zip |
Move accounts model from C++ to QML
C++ models are not well documented and it is easier to manage the model
in QML.
Now all QObjects are thin wrappers around Delta Chat core structures.
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2,7 +2,7 @@ #include <QQmlApplicationEngine> #include <QMetaType> -#include "accounts_model.h" +#include "accounts.h" #include "message.h" #include "chat.h" #include "chatlist.h" @@ -21,7 +21,7 @@ int main(int argc, char *argv[]) app.setOrganizationDomain("delta.chat"); // TODO: switch to using Qt 5.15 QML_ELEMENT macro - if (qmlRegisterType<AccountsModel>("DeltaChat", 1, 0, "AccountsModel") == -1) + if (qmlRegisterType<DcAccounts>("DeltaChat", 1, 0, "DcAccounts") == -1) { QCoreApplication::exit(-1); } |