DtkWidget
DTK Widget module
载入中...
搜索中...
未找到
content.h
1// SPDX-FileCopyrightText: 2016 - 2022 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4
5#pragma once
6
7#include <QScopedPointer>
8#include <QPointer>
9#include <QFrame>
10
11#include <dtkwidget_global.h>
12
13DCORE_BEGIN_NAMESPACE
14class DSettings;
15DCORE_END_NAMESPACE
16
17DWIDGET_BEGIN_NAMESPACE
18
19class DSettingsWidgetFactory;
20class ContentPrivate;
21class LIBDTKWIDGETSHARED_EXPORT Content : public QWidget
22{
23 Q_OBJECT
24public:
25 explicit Content(QWidget *parent = 0);
26 ~Content();
27
28 DSettingsWidgetFactory* widgetFactory() const;
29 bool groupIsVisible(const QString &key) const;
30 void setGroupVisible(const QString &key, bool visible);
31
32Q_SIGNALS:
33 void scrollToGroup(const QString &key);
34
35public Q_SLOTS:
36 void onScrollToGroup(const QString &key);
37 void updateSettings(const QByteArray &translateContext, QPointer<DTK_CORE_NAMESPACE::DSettings> settings);
38
39private:
40 void mouseMoveEvent(QMouseEvent *event) override;
41 void resizeEvent(QResizeEvent *event) override;
42
43 QScopedPointer<ContentPrivate> d_ptr;
44 Q_DECLARE_PRIVATE_D(qGetPtrHelper(d_ptr), Content)
45};
46
47DWIDGET_END_NAMESPACE
Definition content.h:22
DSettingsWidgetFactory是一个用于构造Deepin风格的设置对话框的控件.
Definition dsettingswidgetfactory.h:22