File indexing completed on 2024-04-14 03:52:22

0001 /*
0002     SPDX-FileCopyrightText: 2022 Alexander Lohnau <alexander.lohnau@gmx.de>
0003     SPDX-License-Identifier: LGPL-2.0-or-later
0004 */
0005 
0006 #include <KQuickIconProvider>
0007 #include <QObject>
0008 #include <QQmlApplicationEngine>
0009 #include <QTest>
0010 
0011 class KQuickIconProviderTest : public QObject
0012 {
0013     Q_OBJECT
0014 private Q_SLOTS:
0015     void testRegisteringEngine()
0016     {
0017         QQmlApplicationEngine engine;
0018         engine.addImageProvider(QStringLiteral("icon"), new KQuickIconProvider);
0019     }
0020 };
0021 
0022 QTEST_MAIN(KQuickIconProviderTest)
0023 
0024 #include "kquickiconprovidertest.moc"