summaryrefslogtreecommitdiffstats
path: root/accounts/maildir/maildiraccountplugin.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-03-03 22:30:07 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-03-03 22:30:07 +0100
commitfd31aa9b05ea215e8071cf76fe21ec746204f3a3 (patch)
treefd656cf389060e6a5c7ef3253d3337e0a48864c8 /accounts/maildir/maildiraccountplugin.cpp
parent54c3e5912b0d64bad5a1c66bc96f0552ac5e21f5 (diff)
downloadkube-fd31aa9b05ea215e8071cf76fe21ec746204f3a3.tar.gz
kube-fd31aa9b05ea215e8071cf76fe21ec746204f3a3.zip
Added a maildir configuration controller that can edit the config in
sink. The property binding only works when using actual QObject::property'ies. It doesn't work at all with Q_PROPERTY, even with a NOTIFY signal.
Diffstat (limited to 'accounts/maildir/maildiraccountplugin.cpp')
-rw-r--r--accounts/maildir/maildiraccountplugin.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/accounts/maildir/maildiraccountplugin.cpp b/accounts/maildir/maildiraccountplugin.cpp
new file mode 100644
index 00000000..0033613b
--- /dev/null
+++ b/accounts/maildir/maildiraccountplugin.cpp
@@ -0,0 +1,11 @@
1#include "maildiraccountplugin.h"
2
3#include "maildirsettings.h"
4
5#include <QtQml>
6
7void MaildirAccountPlugin::registerTypes (const char *uri)
8{
9 Q_ASSERT(uri == QLatin1String("org.kde.kube.accounts.maildir"));
10 qmlRegisterType<MaildirSettings>(uri, 1, 0, "MaildirSettings");
11}