You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
571 B
20 lines
571 B
/* |
|
SPDX-FileCopyrightText: 2013 Marco Martin <mart@kde.org> |
|
|
|
SPDX-License-Identifier: LGPL-2.0-or-later |
|
*/ |
|
|
|
#include "imageplugin.h" |
|
#include "imagebackend.h" |
|
#include <QQmlContext> |
|
|
|
#include "sortingmode.h" |
|
|
|
void ImagePlugin::registerTypes(const char *uri) |
|
{ |
|
Q_ASSERT(uri == QLatin1String("org.kde.plasma.wallpapers.image")); |
|
|
|
qmlRegisterType<ImageBackend>(uri, 2, 0, "ImageBackend"); |
|
qmlRegisterAnonymousType<QAbstractItemModel>("QAbstractItemModel", 1); |
|
qmlRegisterUncreatableType<SortingMode>(uri, 2, 0, "SortingMode", "error: only enums"); |
|
}
|
|
|