#include <DataWidgets.h>
Public Member Functions | |
ActionPushButton (QAction *action, QWidget *parent=NULL) | |
virtual | ~ActionPushButton () |
void | setDefaultAction (QAction *action) |
void | showText (bool v) |
void | setAltText (const QString &v) |
Protected Member Functions | |
virtual void | actionEvent (QActionEvent *event) |
virtual void | nextCheckState () |
Private Attributes | |
QAction * | m_defaultAction |
QString | m_altText |
bool | m_showText |
this class is needed due to a deficiency in QPushButtons. most of the functionality is copied from QToolButton. This class is needed becuase QToolButton doesn't know how to look like a regular QPushButton in a satisfactory manner.
ActionPushButton::ActionPushButton | ( | QAction * | action, | |
QWidget * | parent = NULL | |||
) | [inline] |
virtual ActionPushButton::~ActionPushButton | ( | ) | [inline, virtual] |
void ActionPushButton::setDefaultAction | ( | QAction * | action | ) |
void ActionPushButton::showText | ( | bool | v | ) | [inline] |
void ActionPushButton::setAltText | ( | const QString & | v | ) | [inline] |
void ActionPushButton::actionEvent | ( | QActionEvent * | event | ) | [protected, virtual] |
void ActionPushButton::nextCheckState | ( | ) | [protected, virtual] |
QAction* ActionPushButton::m_defaultAction [private] |
QString ActionPushButton::m_altText [private] |
bool ActionPushButton::m_showText [private] |