5#ifndef DFEATUREDISPLAYDIALOG_P_H
6#define DFEATUREDISPLAYDIALOG_P_H
11DWIDGET_BEGIN_NAMESPACE
12class DCommandLinkButton;
18 explicit DFeatureItemWidget(
const QIcon &icon = QIcon(),
const QString &name = QString(),
const QString &description = QString(), QWidget *parent =
nullptr);
21 void setDescriptionLabelWidth(
const int width);
22 int descriptionLabelWidth();
25 QLabel *m_iconLabel =
nullptr;
26 QLabel *m_featureNameLabel =
nullptr;
27 QLabel *m_featureDescriptionLabel =
nullptr;
34 const QString &name = QString(),
const QString &description = QString());
39 QString m_description;
49 void addFeatureItem(
const QIcon &icon,
const QString &name,
const QString &description);
50 int getDescriptionMaxWidth();
51 void updateItemWidth();
52 void createWidgetItems();
57 QLabel *m_title =
nullptr;
58 QVBoxLayout *m_vBoxLayout =
nullptr;
61 QList<QPointer<DFeatureItem>> m_featureItems;
66 void _q_toggleLinkBtn();