#include <KisTagLabel.h>
Definition at line 14 of file KisTagLabel.h.
◆ KisTagLabel()
| KisTagLabel::KisTagLabel |
( |
QString | string, |
|
|
QWidget * | parent = nullptr ) |
|
explicit |
Definition at line 15 of file KisTagLabel.cpp.
15 :
16 QWidget(parent)
17{
19
20 QHBoxLayout *
layout =
new QHBoxLayout(
this);
21 layout->setContentsMargins(8, 0, 8, 0);
23
24 QLabel *label = new QLabel(parent);
26 label->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed);
28
29 setLayout(layout);
30}
References m_string.
◆ ~KisTagLabel()
| KisTagLabel::~KisTagLabel |
( |
| ) |
|
◆ getText()
| QString KisTagLabel::getText |
( |
| ) |
|
◆ paintEvent()
| void KisTagLabel::paintEvent |
( |
QPaintEvent * | event | ) |
|
|
overrideprotected |
Definition at line 36 of file KisTagLabel.cpp.
37{
38 QPainter painter(this);
39
40 QColor backGroundColor = qApp->palette().light().color();
41 QColor foregroundColor = qApp->palette().windowText().color();
42
43 QWidget::paintEvent(event);
44 painter.setRenderHint(QPainter::Antialiasing);
45 QPainterPath path;
46 path.addRoundedRect(this->
rect(), 6, 6);
47
48
49 painter.fillPath(path, qApp->palette().light());
50}
◆ m_string
| QString KisTagLabel::m_string |
|
private |
The documentation for this class was generated from the following files: