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 | |
14 | class QQuickItem; |
15 | class QQmlEngine; |
16 | class KCModuleQmlPrivate; |
17 | class KQuickConfigModule; |
18 | |
19 | class KCModuleQml : public KCModule |
20 | { |
21 | Q_OBJECT |
22 | |
23 | public: |
24 | KCModuleQml(KQuickConfigModule *configModule, QWidget *parent); |
25 | ~KCModuleQml() override; |
26 | |
27 | public Q_SLOTS: |
28 | void load() override; |
29 | void save() override; |
30 | void defaults() override; |
31 | QWidget *widget() override; |
32 | |
33 | private: |
34 | friend class QmlConfigModuleWidget; |
35 | const std::unique_ptr<KCModuleQmlPrivate> d; |
36 | |
37 | Q_PRIVATE_SLOT(d, void syncCurrentIndex()) |
38 | }; |
39 | |
40 | #endif |
41 |