|
| ELabel (QWidget *parent) |
|
virtual | ~ELabel () |
|
void | setValue (QVariant v, bool ref=true) |
|
QVariant | value () const |
|
void | setBooleanDisplay (QString, QString, QColor, QColor) |
|
void | setEnumDisplay (unsigned int value, QString label, QColor color) |
| Assigns a label and a color to a particular value. More...
|
|
void | setTrueString (QString s) |
|
QString | trueString () const |
|
void | setFalseString (QString s) |
|
QString | falseString () const |
|
void | setTrueColor (QColor c) |
|
QColor | trueColor () const |
|
void | setFalseColor (QColor c) |
|
QColor | falseColor () const |
|
bool | enumDisplayConfigured () |
|
void | clearEnumDisplay () |
|
void | display () |
|
| QuLabelBase (QWidget *parent) |
|
| QuLabelBase (const QString &text, QWidget *parent) |
|
virtual | ~QuLabelBase () |
|
void | setBackground (const QColor &background) |
| set the background color of the label More...
|
|
void | setBorderColor (const QColor &border) |
| changes the border color More...
|
|
void | setDecoration (const QColor &background, const QColor &border) |
| changes the colors for the decoration of the label More...
|
|
double | borderWidth () const |
| returns the width, in pixels, of the colored border that is drawn around the label More...
|
|
void | setEnumDisplay (int val, const QString &text, const QColor &c) |
|
int | maximumLength () const |
| returns the maximum length of the displayed string More...
|
|
QSize | minimumSizeHint () const override |
| reimplements QLabel::minimumSizeHint to ensure there is enough space to draw the decorations on the border More...
|
|
QSize | sizeHint () const override |
|
int | heightForWidth (int w) const override |
|
bool | hasHeightForWidth () const override |
|
bool | drawInternalBorder () const |
| if enabled, an external and an internal border are drawn More...
|
|
QString | format () const |
| returns the format used to represent a number, or an empty string if no format is specified More...
|
|
|
void | setBorderWidth (double w) |
| sets the width of the border(s) drawn with the chosen color More...
|
|
void | setDrawInternalBorder (bool draw) |
|
void | setValue (const CuVariant &d, bool *background_modified=NULL) |
| set the value to display on the label. Optionally check if the background color has been modified by the method More...
|
|
void | setFormat (const QString &fmt) |
|
void | setMaximumLength (int len) |
| if the data shown is a string, truncate it to the given length More...
|
|
void | paintEvent (QPaintEvent *pe) override |
| Reimplements QLabel::paintEvent. More...
|
|
A label that can be used to display numeric, boolean or enum values.