ActionPushButton Class Reference

ActionPushButton is a QPushButton which takes its characteristics from a QAction. More...

#include <DataWidgets.h>

List of all members.

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


Detailed Description

ActionPushButton is a QPushButton which takes its characteristics from a QAction.

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.


Constructor & Destructor Documentation

ActionPushButton::ActionPushButton ( QAction *  action,
QWidget *  parent = NULL 
) [inline]

virtual ActionPushButton::~ActionPushButton (  )  [inline, virtual]


Member Function Documentation

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]


Member Data Documentation

QString ActionPushButton::m_altText [private]


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