DataPushButton Class Reference

DataPushButton is a push button with some memory about its identity. More...

#include <DataWidgets.h>

List of all members.


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

Detailed Description

DataPushButton is a push button with some memory about its identity.

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.

Constructor & Destructor Documentation

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]

Member Function Documentation

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]

Member Data Documentation

int DataPushButton::m_data [private]

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