6#include "interface/namespace.h"
7#include "widgets/settingsitem.h"
16namespace DCC_NAMESPACE
19class ItemTitleTipsLabel;
27 bool eventFilter(QObject *watched, QEvent *event);
37 void setTitle(
const QString& title);
38 void setValue(
const QString& value);
39 void setWordWrap(
const bool enable);
40 QString value()
const;
41 void setValueAligment(
const Qt::Alignment aligment);
42 void setValueBackground(
bool showBackground);
45 void resizeEvent(QResizeEvent *event)
override;
58 void setTitle(
const QString& title);
59 void setValue(
const QString& value);
60 void setWordWrap(
bool enable);
61 void setButtonText(
const QString &str);
62 void setValueForegroundRole(
const QColor &color);
63 void setVisable(
bool value);
71 DTK_WIDGET_NAMESPACE::DTipLabel *m_value;
72 QPushButton *m_pActivatorBtn;
80 explicit ItemTitleTipsLabel(
const QString &text = QString(), QWidget *parent =
nullptr);
83 void removeBackground();
84 bool hasBackground()
const;
87 void paintEvent(QPaintEvent *event)
override;
Definition titlevalueitem.h:76
Definition titlevalueitem.h:22
Definition settingsitem.h:11
Definition titlevalueitem.h:53
Definition titlevalueitem.h:31