/* * SPDX-FileCopyrightText: 2020 Arjen Hiemstra * * SPDX-License-Identifier: LGPL-2.0-or-later */ #include #include #include #include #include #include "example_albummodel.h" class KirigamiAddonsSetup : public QObject { Q_OBJECT public: KirigamiAddonsSetup() { } public Q_SLOTS: void qmlEngineAvailable(QQmlEngine *engine) { KLocalizedString::setApplicationDomain("kirigami-addons"); engine->rootContext()->setContextObject(new KLocalizedContext(engine)); qmlRegisterType("test.artefacts", 1, 0, "ExampleAlbumModel"); engine->rootContext()->setContextProperty(QLatin1String("dataDir"), QVariant(QLatin1String(DATA_DIR))); } }; QUICK_TEST_MAIN_WITH_SETUP(KirigamiAddons, KirigamiAddonsSetup) #include "qmltests.moc"