HAL
gatelibrary_label.cpp
Go to the documentation of this file.
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 }
void setValue(bool isVal)
GateLibraryLabel(bool isVal, const QString &txt=QString(), QWidget *parent=nullptr)
void setWordWrap(bool on)
virtual void polish(QWidget *widget)
virtual void unpolish(QWidget *widget)
QStyle * style() const const