OpenWalnut  1.5.0dev
Public Slots | Signals | Public Member Functions | Private Attributes | List of all members
WQtPushButton Class Reference

Implements a QPushButton with a boost signal for convenience. More...

#include <WQtPushButton.h>

+ Inheritance diagram for WQtPushButton:
+ Collaboration diagram for WQtPushButton:

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...
 

Detailed Description

Implements a QPushButton with a boost signal for convenience.

Definition at line 36 of file WQtPushButton.h.

Constructor & Destructor Documentation

◆ WQtPushButton()

WQtPushButton::WQtPushButton ( QIcon  icon,
QString  name,
QWidget *  parent = 0,
QString  label = "" 
)
explicit

standard constructor

Parameters
iconThe icon being displayed on the button.
namea name for the button. This name is sometimes used to identify signals.
parentthe widget that takes care of the current widget.
labelThe optional label that will be displayed besides the icon.

Definition at line 29 of file WQtPushButton.cpp.

References emitPressed(), and m_name.

+ Here is the call graph for this function:

◆ ~WQtPushButton()

WQtPushButton::~WQtPushButton ( )
virtual

destructor

Definition at line 42 of file WQtPushButton.cpp.

Member Function Documentation

◆ emitPressed

void WQtPushButton::emitPressed ( )
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().

+ Here is the caller graph for this function:

◆ getName()

QString WQtPushButton::getName ( )

Getter for this button's name.

Returns
the name

Definition at line 51 of file WQtPushButton.cpp.

References m_name.

◆ pushButtonPressed

void WQtPushButton::pushButtonPressed ( QString  name)
signal

Signal whenever the button got pressed.

Parameters
namethe name of the button.

Referenced by emitPressed().

+ Here is the caller graph for this function:

◆ setName()

void WQtPushButton::setName ( QString  name)

Setter for name.

Parameters
nameThe new name of the button

Definition at line 46 of file WQtPushButton.cpp.

References m_name.

Member Data Documentation

◆ m_name

QString WQtPushButton::m_name
private

name of the push button

Definition at line 70 of file WQtPushButton.h.

Referenced by emitPressed(), getName(), setName(), and WQtPushButton().


The documentation for this class was generated from the following files: