Changeset View
Changeset View
Standalone View
Standalone View
applets/pager/plugin/pagerplugin.cpp
1 | /* | 1 | /* | ||
---|---|---|---|---|---|
2 | Copyright (C) 2011 Martin Gräßlin <mgraesslin@kde.org> | 2 | Copyright (C) 2011 Martin Gräßlin <mgraesslin@kde.org> | ||
3 | Copyright (C) 2016 Eike Hein <hein@kde.org> | ||||
3 | 4 | | |||
4 | This program is free software; you can redistribute it and/or modify | 5 | This program is free software; you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | 6 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation; either version 2 of the License, or | 7 | the Free Software Foundation; either version 2 of the License, or | ||
7 | (at your option) any later version. | 8 | (at your option) any later version. | ||
8 | 9 | | |||
9 | This program is distributed in the hope that it will be useful, | 10 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | 13 | GNU General Public License for more details. | ||
13 | 14 | | |||
14 | You should have received a copy of the GNU General Public License along | 15 | You should have received a copy of the GNU General Public License along | ||
15 | with this program; if not, write to the Free Software Foundation, Inc., | 16 | with this program; if not, write to the Free Software Foundation, Inc., | ||
16 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | 17 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||
17 | */ | 18 | */ | ||
18 | 19 | | |||
19 | 20 | | |||
20 | #include "pagerplugin.h" | 21 | #include "pagerplugin.h" | ||
21 | #include "pager.h" | 22 | #include "pagermodel.h" | ||
22 | 23 | | |||
23 | #include <QtQml> | 24 | #include <QtQml> | ||
24 | 25 | | |||
25 | void KickoffPlugin::registerTypes (const char *uri) | 26 | void KickoffPlugin::registerTypes(const char *uri) | ||
26 | { | 27 | { | ||
27 | Q_ASSERT(uri == QLatin1String("org.kde.plasma.private.pager")); | 28 | Q_ASSERT(uri == QLatin1String("org.kde.plasma.private.pager")); | ||
28 | qmlRegisterType<Pager>(uri, 2, 0, "Pager"); | 29 | | ||
30 | qmlRegisterType<PagerModel>(uri, 2, 0, "PagerModel"); | ||||
29 | } | 31 | } |