Warning, file /plasma/kdeplasma-addons/applets/fifteenPuzzle/plugin/fifteenpuzzleplugin.cpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 * SPDX-FileCopyrightText: 2014 Jeremy Whiting <jpwhiting@kde.org> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0005 */ 0006 0007 #include "fifteenpuzzleplugin.h" 0008 #include "fifteenimageprovider.h" 0009 0010 // Qt 0011 #include <QDebug> 0012 0013 void FifteenPuzzlePlugin::registerTypes(const char *uri) 0014 { 0015 Q_UNUSED(uri); 0016 Q_ASSERT(QLatin1String(uri) == QLatin1String("org.kde.plasma.private.fifteenpuzzle")); 0017 // Do some dummy registration, otherwise the plugin will be ignored at runtime 0018 qmlRegisterTypeNotAvailable(uri, 0, 1, "FifteenPuzzle", QStringLiteral("fifteenpuzzle")); 0019 } 0020 0021 void FifteenPuzzlePlugin::initializeEngine(QQmlEngine *engine, const char *uri) 0022 { 0023 qDebug() << "initializeEngine called, uri is " << uri; 0024 engine->addImageProvider(QStringLiteral("fifteenpuzzle"), new FifteenImageProvider()); 0025 }