You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.3 KiB
C++
38 lines
1.3 KiB
C++
8 years ago
|
/*
|
||
|
* Copyright 2016 Smith AR <audoban@openmailbox.org>
|
||
|
* Michail Vourlakos <mvourlakos@gmail.com>
|
||
|
*
|
||
|
* This file is part of Latte-Dock
|
||
|
*
|
||
|
* Latte-Dock is free software; you can redistribute it and/or
|
||
|
* modify it under the terms of the GNU General Public License as
|
||
|
* published by the Free Software Foundation; either version 2 of
|
||
|
* the License, or (at your option) any later version.
|
||
|
*
|
||
|
* Latte-Dock is distributed in the hope that it will be useful,
|
||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
* GNU General Public License for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU General Public License
|
||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||
|
*/
|
||
|
|
||
6 years ago
|
#include "latteplugin.h"
|
||
6 years ago
|
|
||
|
// local
|
||
8 years ago
|
#include "iconitem.h"
|
||
6 years ago
|
#include "quickwindowsystem.h"
|
||
6 years ago
|
#include "types.h"
|
||
8 years ago
|
|
||
6 years ago
|
// Qt
|
||
8 years ago
|
#include <QtQml>
|
||
8 years ago
|
|
||
6 years ago
|
void LattePlugin::registerTypes(const char *uri)
|
||
8 years ago
|
{
|
||
8 years ago
|
Q_ASSERT(uri == QLatin1String("org.kde.latte"));
|
||
6 years ago
|
qmlRegisterUncreatableType<Latte::Types>(uri, 0, 2, "Types", "Latte Types uncreatable");
|
||
|
qmlRegisterType<Latte::IconItem>(uri, 0, 2, "IconItem");
|
||
|
qmlRegisterSingletonType<Latte::QuickWindowSystem>(uri, 0, 2, "WindowSystem", &Latte::windowsystem_qobject_singletontype_provider);
|
||
8 years ago
|
}
|