HAL
gatelibrary_label.cpp
Go to the documentation of this file.
1
#include "
gui/gatelibrary_management/gatelibrary_label.h
"
2
#include <QStyle>
3
4
namespace
hal
{
5
GateLibraryLabel::GateLibraryLabel
(
bool
isVal,
const
QString
& txt,
QWidget
*parent)
6
:
QLabel
(txt,parent)
7
{
8
mValue = isVal;
9
setWordWrap
(
true
);
10
}
11
12
void
GateLibraryLabel::setValue
(
bool
isVal)
13
{
14
if
(isVal == mValue)
return
;
15
mValue = isVal;
16
17
QStyle
* s =
style
();
18
s->
unpolish
(
this
);
19
s->
polish
(
this
);
20
}
21
22
}
hal::GateLibraryLabel::setValue
void setValue(bool isVal)
Definition:
gatelibrary_label.cpp:12
hal::GateLibraryLabel::GateLibraryLabel
GateLibraryLabel(bool isVal, const QString &txt=QString(), QWidget *parent=nullptr)
Definition:
gatelibrary_label.cpp:5
gatelibrary_label.h
hal
Definition:
parser_liberty.cpp:10
QLabel
QLabel::setWordWrap
void setWordWrap(bool on)
QString
QStyle
QStyle::polish
virtual void polish(QWidget *widget)
QStyle::unpolish
virtual void unpolish(QWidget *widget)
QWidget
QWidget::style
QStyle * style() const const
plugins
gui
src
gatelibrary_management
gatelibrary_label.cpp
Generated on Fri Feb 14 2025 14:22:42 for HAL by
1.9.1