#include <DataWidgets.h>
Signals | |
void | ptoggled (int d, bool checked) |
void | pclicked (int d, bool checked) |
Public Member Functions | |
DataPushButton (int d, const QIcon &icon, const QString &text, QWidget *parent) | |
DataPushButton (int d, const QString &text, QWidget *parent) | |
virtual | ~DataPushButton () |
int | getData () |
void | setData (int d) |
Private Slots | |
void | doPtoggled (bool checked) |
void | doPclicked (bool checked) |
Private Attributes | |
int | m_data |
It is needed due to a misfeature in QT which doesn't allow PushButtons to have attached data. The big buttons with the piece drawing in the advanced piece selection window are of this class.
DataPushButton::DataPushButton | ( | int | d, | |
const QIcon & | icon, | |||
const QString & | text, | |||
QWidget * | parent | |||
) |
DataPushButton::DataPushButton | ( | int | d, | |
const QString & | text, | |||
QWidget * | parent | |||
) |
virtual DataPushButton::~DataPushButton | ( | ) | [inline, virtual] |
int DataPushButton::getData | ( | ) | [inline] |
void DataPushButton::setData | ( | int | d | ) | [inline] |
void DataPushButton::doPtoggled | ( | bool | checked | ) | [private, slot] |
void DataPushButton::doPclicked | ( | bool | checked | ) | [private, slot] |
void DataPushButton::ptoggled | ( | int | d, | |
bool | checked | |||
) | [signal] |
void DataPushButton::pclicked | ( | int | d, | |
bool | checked | |||
) | [signal] |
int DataPushButton::m_data [private] |