1/*
2 SPDX-FileCopyrightText: 2014 Marco Martin <mart@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-only
5*/
6
7#ifndef KCMODULEQML_H
8#define KCMODULEQML_H
9
10#include "kcmodule.h"
11
12#include <memory>
13
14class QQuickItem;
15class QQmlEngine;
16class KCModuleQmlPrivate;
17class KQuickConfigModule;
18
19class KCModuleQml : public KCModule
20{
21 Q_OBJECT
22
23public:
24 KCModuleQml(KQuickConfigModule *configModule, QWidget *parent);
25 ~KCModuleQml() override;
26
27public Q_SLOTS:
28 void load() override;
29 void save() override;
30 void defaults() override;
31 QWidget *widget() override;
32
33private:
34 friend class QmlConfigModuleWidget;
35 const std::unique_ptr<KCModuleQmlPrivate> d;
36
37 Q_PRIVATE_SLOT(d, void syncCurrentIndex())
38};
39
40#endif
41

source code of kcmutils/src/kcmoduleqml_p.h