OpenWalnut
1.5.0dev
|
Implements a QPushButton with a boost signal for convenience. More...
#include <WQtPushButton.h>
Public Slots | |
void | emitPressed () |
Slot getting called when the button got pressed. More... | |
Signals | |
void | pushButtonPressed (QString name) |
Signal whenever the button got pressed. More... | |
Public Member Functions | |
WQtPushButton (QIcon icon, QString name, QWidget *parent=0, QString label="") | |
standard constructor More... | |
virtual | ~WQtPushButton () |
destructor More... | |
void | setName (QString name) |
Setter for name. More... | |
QString | getName () |
Getter for this button's name. More... | |
Private Attributes | |
QString | m_name |
name of the push button More... | |
Implements a QPushButton with a boost signal for convenience.
Definition at line 36 of file WQtPushButton.h.
|
explicit |
standard constructor
icon | The icon being displayed on the button. |
name | a name for the button. This name is sometimes used to identify signals. |
parent | the widget that takes care of the current widget. |
label | The optional label that will be displayed besides the icon. |
Definition at line 29 of file WQtPushButton.cpp.
References emitPressed(), and m_name.
|
virtual |
destructor
Definition at line 42 of file WQtPushButton.cpp.
|
slot |
Slot getting called when the button got pressed.
Definition at line 56 of file WQtPushButton.cpp.
References m_name, and pushButtonPressed().
Referenced by WQtPushButton().
QString WQtPushButton::getName | ( | ) |
Getter for this button's name.
Definition at line 51 of file WQtPushButton.cpp.
References m_name.
|
signal |
Signal whenever the button got pressed.
name | the name of the button. |
Referenced by emitPressed().
void WQtPushButton::setName | ( | QString | name | ) |
Setter for name.
name | The new name of the button |
Definition at line 46 of file WQtPushButton.cpp.
References m_name.
|
private |
name of the push button
Definition at line 70 of file WQtPushButton.h.
Referenced by emitPressed(), getName(), setName(), and WQtPushButton().