diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-03-03 22:30:07 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-03-03 22:30:07 +0100 |
commit | fd31aa9b05ea215e8071cf76fe21ec746204f3a3 (patch) | |
tree | fd656cf389060e6a5c7ef3253d3337e0a48864c8 /accounts/maildir/maildiraccountplugin.cpp | |
parent | 54c3e5912b0d64bad5a1c66bc96f0552ac5e21f5 (diff) | |
download | kube-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.cpp | 11 |
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 | |||
7 | void MaildirAccountPlugin::registerTypes (const char *uri) | ||
8 | { | ||
9 | Q_ASSERT(uri == QLatin1String("org.kde.kube.accounts.maildir")); | ||
10 | qmlRegisterType<MaildirSettings>(uri, 1, 0, "MaildirSettings"); | ||
11 | } | ||