summaryrefslogtreecommitdiffstats
path: root/framework/src/frameworkplugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'framework/src/frameworkplugin.cpp')
-rw-r--r--framework/src/frameworkplugin.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/framework/src/frameworkplugin.cpp b/framework/src/frameworkplugin.cpp
index b8cad45d..1e1a169e 100644
--- a/framework/src/frameworkplugin.cpp
+++ b/framework/src/frameworkplugin.cpp
@@ -38,6 +38,7 @@
38#include "clipboardproxy.h" 38#include "clipboardproxy.h"
39#include "webengineprofile.h" 39#include "webengineprofile.h"
40#include "startupcheck.h" 40#include "startupcheck.h"
41#include "keyring.h"
41 42
42#include <QtQml> 43#include <QtQml>
43 44
@@ -55,6 +56,13 @@ static QObject *webengineprofile_singletontype_provider(QQmlEngine *engine, QJSE
55 return new WebEngineProfile; 56 return new WebEngineProfile;
56} 57}
57 58
59static QObject *keyring_singletontype_provider(QQmlEngine *engine, QJSEngine *scriptEngine)
60{
61 Q_UNUSED(engine)
62 Q_UNUSED(scriptEngine)
63 return new Kube::Keyring;
64}
65
58void FrameworkPlugin::registerTypes (const char *uri) 66void FrameworkPlugin::registerTypes (const char *uri)
59{ 67{
60 qmlRegisterType<FolderListModel>(uri, 1, 0, "FolderListModel"); 68 qmlRegisterType<FolderListModel>(uri, 1, 0, "FolderListModel");
@@ -80,4 +88,5 @@ void FrameworkPlugin::registerTypes (const char *uri)
80 qmlRegisterType<ClipboardProxy>(uri, 1, 0, "Clipboard"); 88 qmlRegisterType<ClipboardProxy>(uri, 1, 0, "Clipboard");
81 qmlRegisterType<StartupCheck>(uri, 1, 0, "StartupCheck"); 89 qmlRegisterType<StartupCheck>(uri, 1, 0, "StartupCheck");
82 qmlRegisterSingletonType<WebEngineProfile>(uri, 1, 0, "WebEngineProfile", webengineprofile_singletontype_provider); 90 qmlRegisterSingletonType<WebEngineProfile>(uri, 1, 0, "WebEngineProfile", webengineprofile_singletontype_provider);
91 qmlRegisterSingletonType<Kube::Keyring>(uri, 1, 0, "Keyring", keyring_singletontype_provider);
83} 92}