Verified Commit f921af3e authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

wallpapers/image: Register KFileItem in registerTypes()

parent b23fa2d9
......@@ -7,6 +7,8 @@
#include "imageplugin.h"
#include <QQmlContext>
#include <KFileItem>
#include "imagebackend.h"
#include "provider/packageimageprovider.h"
#include "sortingmode.h"
......@@ -24,6 +26,8 @@ void ImagePlugin::registerTypes(const char *uri)
{
Q_ASSERT(uri == pluginName);
qRegisterMetaType<KFileItem>(); // For image preview
qmlRegisterType<ImageBackend>(uri, 2, 0, "ImageBackend");
qmlRegisterAnonymousType<QAbstractItemModel>("QAbstractItemModel", 1);
qmlRegisterUncreatableType<SortingMode>(uri, 2, 0, "SortingMode", "error: only enums");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment