DtkWidget
DTK Widget module
载入中...
搜索中...
未找到
dapplicationsettings.h
1// SPDX-FileCopyrightText: 2019 - 2023 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4
5#ifndef DAPPLICATIONSETTINGS_H
6#define DAPPLICATIONSETTINGS_H
7
8#include <dtkwidget_global.h>
9#include <DObject>
10
11#if DTK_VERSION < DTK_VERSION_CHECK(6, 0, 0, 0)
12
13DWIDGET_BEGIN_NAMESPACE
14
15class DApplicationSettingsPrivate;
16class DApplicationSettings : public QObject, public DCORE_NAMESPACE::DObject
17{
18 Q_OBJECT
19 D_DECLARE_PRIVATE(DApplicationSettings)
20
21public:
22 Q_DECL_DEPRECATED_X("The feature has been moved to DGuiApplicationHelper, We can disable it by setting DGuiApplicationHelper::DontSaveApplicationTheme enum with setAttribute.")
23 explicit DApplicationSettings(QObject *parent = nullptr);
24
25private:
26 D_PRIVATE_SLOT(void _q_onChanged(const QString &))
27 D_PRIVATE_SLOT(void _q_onPaletteTypeChanged())
28};
29
30DWIDGET_END_NAMESPACE
31
32#endif // DAPPLICATIONSETTINGS_H
33
34#endif