dde-control-center
Deepin Control Center
载入中...
搜索中...
未找到
detailinfoitem.h
1//SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd.
2//
3//SPDX-License-Identifier: GPL-3.0-or-later
4#pragma once
5
6#include "interface/namespace.h"
7#include "widgets/settingsitem.h"
8#include <dtkwidget_global.h>
9
10DWIDGET_BEGIN_NAMESPACE
11class DLabel;
12DWIDGET_END_NAMESPACE
13
14namespace DCC_NAMESPACE {
15
16inline const QString titleColor = QStringLiteral("#0082fa");
17inline const QString grayColor = QStringLiteral("#526a7f");
18
19inline constexpr int titleFontSize = 14;
20inline constexpr int dateFontSize = 12;
21inline constexpr int detailFontSize = 8;
22inline constexpr int linkFontSize = 10;
23
25{
26 Q_OBJECT
27public:
28 explicit DetailInfoItem(QWidget *parent = 0);
29
30 void initUi();
31
32 void setDate(QString date);
33 void setTitle(QString title);
34 void setExplaintTitle(QString title);
35 void setLinkData(QString data);
36 void setDetailData(QString data);
37
38private Q_SLOTS:
39 void onThemeChanged();
40
41private:
42 Dtk::Widget::DLabel *m_dateLabel;
43 Dtk::Widget::DLabel *m_explainTitle;
44 Dtk::Widget::DLabel *m_linkDataLabel;
45 Dtk::Widget::DLabel *m_dataLable;
46 Dtk::Widget::DLabel *m_linkLable;
47 Dtk::Widget::DLabel *m_title;
48};
49
50}
51
Definition detailinfoitem.h:25
Definition settingsitem.h:11