Changeset View
Changeset View
Standalone View
Standalone View
plasmoidviewer/main.cpp
Show All 26 Lines | |||||
27 | #include <QApplication> | 27 | #include <QApplication> | ||
28 | #include <QtQml/QQmlDebuggingEnabler> | 28 | #include <QtQml/QQmlDebuggingEnabler> | ||
29 | 29 | | |||
30 | #include <QPixmapCache> | 30 | #include <QPixmapCache> | ||
31 | #include <QDebug> | 31 | #include <QDebug> | ||
32 | #include <KAboutData> | 32 | #include <KAboutData> | ||
33 | #include <KLocalizedString> | 33 | #include <KLocalizedString> | ||
34 | #include <KDBusService> | 34 | #include <KDBusService> | ||
35 | #include <KQuickAddons/QtQuickSettings> | ||||
35 | 36 | | |||
36 | #include <qcommandlineparser.h> | 37 | #include <qcommandlineparser.h> | ||
37 | #include <qcommandlineoption.h> | 38 | #include <qcommandlineoption.h> | ||
38 | 39 | | |||
39 | #include "view.h" | 40 | #include "view.h" | ||
40 | 41 | | |||
41 | #include <Plasma/Theme> | 42 | #include <Plasma/Theme> | ||
42 | 43 | | |||
▲ Show 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | 47 | { | |||
87 | 88 | | |||
88 | parser.addPositionalArgument(QStringLiteral("externalData"), i18n("Data that should be passed to the applet as 'externalData' event")); | 89 | parser.addPositionalArgument(QStringLiteral("externalData"), i18n("Data that should be passed to the applet as 'externalData' event")); | ||
89 | 90 | | |||
90 | parser.addHelpOption(); | 91 | parser.addHelpOption(); | ||
91 | parser.addVersionOption(); | 92 | parser.addVersionOption(); | ||
92 | parser.process(app); | 93 | parser.process(app); | ||
93 | 94 | | |||
94 | KDBusService service(KDBusService::Multiple); | 95 | KDBusService service(KDBusService::Multiple); | ||
96 | KQuickAddons::QtQuickSettings::init(); | ||||
95 | 97 | | |||
96 | const QString applet = parser.value("applet"); | 98 | const QString applet = parser.value("applet"); | ||
97 | if (applet.isEmpty()) { | 99 | if (applet.isEmpty()) { | ||
98 | qWarning() << "An applet name must be specified"; | 100 | qWarning() << "An applet name must be specified"; | ||
99 | return 1; | 101 | return 1; | ||
100 | } | 102 | } | ||
101 | 103 | | |||
102 | Plasma::Theme theme; | 104 | Plasma::Theme theme; | ||
▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines |