File indexing completed on 2024-04-28 15:27:36
0001 /* 0002 * SPDX-FileCopyrightText: 2020 Arjen Hiemstra <ahiemstra@heimr.nl> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #include <QQmlEngine> 0008 #include <QtQuickTest> 0009 0010 #ifdef STATIC_MODULE 0011 #include "kirigamiplugin.h" 0012 Q_IMPORT_PLUGIN(KirigamiPlugin) 0013 #endif 0014 0015 class KirigamiSetup : public QObject 0016 { 0017 Q_OBJECT 0018 0019 public: 0020 KirigamiSetup() 0021 { 0022 } 0023 0024 public Q_SLOTS: 0025 void qmlEngineAvailable(QQmlEngine *engine) 0026 { 0027 #ifdef STATIC_MODULE 0028 KirigamiPlugin::getInstance().registerTypes(engine); 0029 #else 0030 Q_UNUSED(engine) 0031 #endif 0032 } 0033 }; 0034 0035 QUICK_TEST_MAIN_WITH_SETUP(Kirigami, KirigamiSetup) 0036 0037 #include "qmltest.moc"