Commit 5e586e80 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

[fifteenpuzzle] Add comments for code needed to inject the imageprovider

parent 95743953
......@@ -21,6 +21,7 @@ import QtQuick.Layouts 1.1
import org.kde.plasma.plasmoid 2.0
import org.kde.plasma.core 2.0 as PlasmaCore
// nothing used, but done to trigger imageprovider addition in plugin init
import org.kde.plasma.private.fifteenpuzzle 0.1 as Private
Item {
......
......@@ -29,6 +29,7 @@ void FifteenPuzzlePlugin::registerTypes(const char* uri)
{
Q_UNUSED(uri);
Q_ASSERT(QLatin1String(uri) == QLatin1String("org.kde.plasma.private.fifteenpuzzle"));
// Do some dummy registration, otherwise the plugin will be ignored at runtime
qmlRegisterTypeNotAvailable(uri, 0, 1, "FifteenPuzzle", QStringLiteral("fifteenpuzzle"));
}
......
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