You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1016 B
34 lines
1016 B
/* |
|
kcmformats.h |
|
SPDX-FileCopyrightText: 2014 Sebastian Kügler <sebas@kde.org> |
|
SPDX-FileCopyrightText: 2021 Han Young <hanyoung@protonmail.com> |
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later |
|
*/ |
|
|
|
#pragma once |
|
|
|
#include <KConfigGroup> |
|
#include <KQuickAddons/ManagedConfigModule> |
|
|
|
class FormatsSettings; |
|
class OptionsModel; |
|
class KCMFormats : public KQuickAddons::ManagedConfigModule |
|
{ |
|
Q_OBJECT |
|
Q_PROPERTY(FormatsSettings *settings READ settings CONSTANT) |
|
Q_PROPERTY(OptionsModel *optionsModel READ optionsModel CONSTANT) |
|
public: |
|
explicit KCMFormats(QObject *parent = nullptr, const QVariantList &list = QVariantList()); |
|
virtual ~KCMFormats() override = default; |
|
|
|
FormatsSettings *settings() const; |
|
OptionsModel *optionsModel() const; |
|
Q_INVOKABLE QQuickItem *getSubPage(int index) const; // proxy from KQuickAddons to Qml |
|
Q_INVOKABLE void unset(const QString &setting); |
|
|
|
private: |
|
QHash<QString, QString> m_cachedFlags; |
|
|
|
OptionsModel *m_optionsModel = nullptr; |
|
};
|
|
|