The LabelButton class provides a label with a button on the right side. More...
#include <Widgets.h>
Public Slots | |
void | setValue (const QVariant &) |
Signals | |
void | valueChanged (const QVariant &) |
Public Member Functions | |
QPushButton * | getButton () const |
QLabel * | getLabel () const |
LabelButton (QWidget *parent=0) | |
Constructs a file chooser called name with the parent parent. | |
QVariant | value () const |
virtual | ~LabelButton () |
Protected Slots | |
virtual void | browse ()=0 |
Protected Member Functions | |
void | resizeEvent (QResizeEvent *) |
virtual void | showValue (const QVariant &)=0 |
Properties | |
QVariant | value |
The LabelButton class provides a label with a button on the right side.
Definition at line 197 of file Widgets.h.
LabelButton::LabelButton | ( | QWidget * | parent = 0 |
) |
Constructs a file chooser called name with the parent parent.
Definition at line 485 of file Widgets.cpp.
References browse(), and draftlibs::fcgeo::connect().
LabelButton::~LabelButton | ( | ) | [virtual] |
Definition at line 502 of file Widgets.cpp.
virtual void Gui::LabelButton::browse | ( | ) | [protected, pure virtual, slot] |
Referenced by LabelButton().
QPushButton * LabelButton::getButton | ( | ) | const |
Definition at line 516 of file Widgets.cpp.
QLabel * LabelButton::getLabel | ( | ) | const |
Definition at line 511 of file Widgets.cpp.
void LabelButton::resizeEvent | ( | QResizeEvent * | e | ) | [protected] |
Definition at line 506 of file Widgets.cpp.
void LabelButton::setValue | ( | const QVariant & | val | ) | [slot] |
Definition at line 526 of file Widgets.cpp.
References showValue(), and valueChanged().
virtual void Gui::LabelButton::showValue | ( | const QVariant & | ) | [protected, pure virtual] |
Referenced by setValue().
QVariant Gui::LabelButton::value | ( | ) | const |
void Gui::LabelButton::valueChanged | ( | const QVariant & | ) | [signal] |
Referenced by setValue().