Changeset View
Changeset View
Standalone View
Standalone View
applets/fifteenPuzzle/plugin/fifteenpuzzleplugin.cpp
Show All 23 Lines | |||||
24 | // Qt | 24 | // Qt | ||
25 | #include <QQmlEngine> | 25 | #include <QQmlEngine> | ||
26 | #include <QDebug> | 26 | #include <QDebug> | ||
27 | 27 | | |||
28 | void FifteenPuzzlePlugin::registerTypes(const char* uri) | 28 | void FifteenPuzzlePlugin::registerTypes(const char* uri) | ||
29 | { | 29 | { | ||
30 | Q_UNUSED(uri); | 30 | Q_UNUSED(uri); | ||
31 | Q_ASSERT(QLatin1String(uri) == QLatin1String("org.kde.plasma.private.fifteenpuzzle")); | 31 | Q_ASSERT(QLatin1String(uri) == QLatin1String("org.kde.plasma.private.fifteenpuzzle")); | ||
32 | qmlRegisterTypeNotAvailable(uri, 0, 1, "fifteenpuzzle", QStringLiteral("fifteenpuzzle")); | 32 | qmlRegisterTypeNotAvailable(uri, 0, 1, "FifteenPuzzle", QStringLiteral("fifteenpuzzle")); | ||
kossebau: Unrelated? | |||||
What is the purpose of this line in general? I do not understand the purpose, both with old qmlName and new qmlName argument. It was also not discussed in https://git.reviewboard.kde.org/r/120949/ so picture me with big ? in my eyes :) kossebau: What is the purpose of this line in general? I do not understand the purpose, both with old… | |||||
33 | } | 33 | } | ||
34 | 34 | | |||
35 | void FifteenPuzzlePlugin::initializeEngine(QQmlEngine * engine, const char * uri) | 35 | void FifteenPuzzlePlugin::initializeEngine(QQmlEngine * engine, const char * uri) | ||
36 | { | 36 | { | ||
37 | qDebug() << "initializeEngine called, uri is " << uri; | 37 | qDebug() << "initializeEngine called, uri is " << uri; | ||
38 | engine->addImageProvider(QStringLiteral("fifteenpuzzle"), new FifteenImageProvider()); | 38 | engine->addImageProvider(QStringLiteral("fifteenpuzzle"), new FifteenImageProvider()); | ||
39 | } | 39 | } |
Unrelated?