Changeset View
Changeset View
Standalone View
Standalone View
applets/kicker/plugin/kickerplugin.cpp
Show All 17 Lines | |||||
18 | ***************************************************************************/ | 18 | ***************************************************************************/ | ||
19 | 19 | | |||
20 | #include "kickerplugin.h" | 20 | #include "kickerplugin.h" | ||
21 | #include "abstractmodel.h" | 21 | #include "abstractmodel.h" | ||
22 | #include "appsmodel.h" | 22 | #include "appsmodel.h" | ||
23 | #include "computermodel.h" | 23 | #include "computermodel.h" | ||
24 | #include "containmentinterface.h" | 24 | #include "containmentinterface.h" | ||
25 | #include "draghelper.h" | 25 | #include "draghelper.h" | ||
26 | #include "favoritesmodel.h" | 26 | #include "simplefavoritesmodel.h" | ||
27 | #include "kastatsfavoritesmodel.h" | ||||
27 | #include "dashboardwindow.h" | 28 | #include "dashboardwindow.h" | ||
28 | #include "funnelmodel.h" | 29 | #include "funnelmodel.h" | ||
29 | #include "processrunner.h" | 30 | #include "processrunner.h" | ||
30 | #include "recentusagemodel.h" | 31 | #include "recentusagemodel.h" | ||
31 | #include "rootmodel.h" | 32 | #include "rootmodel.h" | ||
32 | #include "runnermodel.h" | 33 | #include "runnermodel.h" | ||
33 | #include "submenu.h" | 34 | #include "submenu.h" | ||
34 | #include "systemmodel.h" | 35 | #include "systemmodel.h" | ||
35 | #include "systemsettings.h" | 36 | #include "systemsettings.h" | ||
36 | #include "wheelinterceptor.h" | 37 | #include "wheelinterceptor.h" | ||
37 | #include "windowsystem.h" | 38 | #include "windowsystem.h" | ||
38 | 39 | | |||
39 | #include <QtQml> | 40 | #include <QtQml> | ||
40 | 41 | | |||
41 | void KickerPlugin::registerTypes(const char *uri) | 42 | void KickerPlugin::registerTypes(const char *uri) | ||
42 | { | 43 | { | ||
43 | Q_ASSERT(uri == QLatin1String("org.kde.plasma.private.kicker")); | 44 | Q_ASSERT(uri == QLatin1String("org.kde.plasma.private.kicker")); | ||
44 | 45 | | |||
45 | qmlRegisterType<AbstractModel>(); | 46 | qmlRegisterType<AbstractModel>(); | ||
46 | 47 | | |||
47 | qmlRegisterType<AppsModel>(uri, 0, 1, "AppsModel"); | 48 | qmlRegisterType<AppsModel>(uri, 0, 1, "AppsModel"); | ||
48 | qmlRegisterType<ComputerModel>(uri, 0, 1, "ComputerModel"); | 49 | qmlRegisterType<ComputerModel>(uri, 0, 1, "ComputerModel"); | ||
49 | qmlRegisterType<ContainmentInterface>(uri, 0, 1, "ContainmentInterface"); | 50 | qmlRegisterType<ContainmentInterface>(uri, 0, 1, "ContainmentInterface"); | ||
50 | qmlRegisterType<DragHelper>(uri, 0, 1, "DragHelper"); | 51 | qmlRegisterType<DragHelper>(uri, 0, 1, "DragHelper"); | ||
51 | qmlRegisterType<FavoritesModel>(uri, 0, 1, "FavoritesModel"); | 52 | qmlRegisterType<SimpleFavoritesModel>(uri, 0, 1, "FavoritesModel"); | ||
53 | qmlRegisterType<KAStatsFavoritesModel>(uri, 0, 1, "KAStatsFavoritesModel"); | ||||
52 | qmlRegisterType<DashboardWindow>(uri, 0, 1, "DashboardWindow"); | 54 | qmlRegisterType<DashboardWindow>(uri, 0, 1, "DashboardWindow"); | ||
53 | qmlRegisterType<FunnelModel>(uri, 0, 1, "FunnelModel"); | 55 | qmlRegisterType<FunnelModel>(uri, 0, 1, "FunnelModel"); | ||
54 | qmlRegisterType<ProcessRunner>(uri, 0, 1, "ProcessRunner"); | 56 | qmlRegisterType<ProcessRunner>(uri, 0, 1, "ProcessRunner"); | ||
55 | qmlRegisterType<RecentUsageModel>(uri, 0, 1, "RecentUsageModel"); | 57 | qmlRegisterType<RecentUsageModel>(uri, 0, 1, "RecentUsageModel"); | ||
56 | qmlRegisterType<RootModel>(uri, 0, 1, "RootModel"); | 58 | qmlRegisterType<RootModel>(uri, 0, 1, "RootModel"); | ||
57 | qmlRegisterType<RunnerModel>(uri, 0, 1, "RunnerModel"); | 59 | qmlRegisterType<RunnerModel>(uri, 0, 1, "RunnerModel"); | ||
58 | qmlRegisterType<SubMenu>(uri, 0, 1, "SubMenu"); | 60 | qmlRegisterType<SubMenu>(uri, 0, 1, "SubMenu"); | ||
59 | qmlRegisterType<SystemModel>(uri, 0, 1, "SystemModel"); | 61 | qmlRegisterType<SystemModel>(uri, 0, 1, "SystemModel"); | ||
60 | qmlRegisterType<SystemSettings>(uri, 0, 1, "SystemSettings"); | 62 | qmlRegisterType<SystemSettings>(uri, 0, 1, "SystemSettings"); | ||
61 | qmlRegisterType<WheelInterceptor>(uri, 0, 1, "WheelInterceptor"); | 63 | qmlRegisterType<WheelInterceptor>(uri, 0, 1, "WheelInterceptor"); | ||
62 | qmlRegisterType<WindowSystem>(uri, 0, 1, "WindowSystem"); | 64 | qmlRegisterType<WindowSystem>(uri, 0, 1, "WindowSystem"); | ||
63 | } | 65 | } |