SimpleIconButton< T > Class Template Reference

The SimpleIconButton class wraps around an existing Qt button to provide a button that only draws its icon (i.e. without a frame). More...

#include <simpleiconbutton.h>

List of all members.

Public Member Functions

 SimpleIconButton (QWidget *parent=0)
virtual ~SimpleIconButton ()
const QIcon & backgroundIcon () const
void setBackgroundIcon (const QIcon &icon)
virtual QSize sizeHint () const

Protected Member Functions

virtual void paintEvent (QPaintEvent *)


Detailed Description

template<class T>
class SimpleIconButton< T >

The SimpleIconButton class wraps around an existing Qt button to provide a button that only draws its icon (i.e. without a frame).

Type T must be a derivative of QAbstractButton, such as QPushButton or QToolButton.


Constructor & Destructor Documentation

template<class T>
SimpleIconButton< T >::SimpleIconButton ( QWidget *  parent = 0  )  [inline]

template<class T>
virtual SimpleIconButton< T >::~SimpleIconButton (  )  [inline, virtual]


Member Function Documentation

template<class T>
const QIcon& SimpleIconButton< T >::backgroundIcon (  )  const [inline]

template<class T>
void SimpleIconButton< T >::setBackgroundIcon ( const QIcon &  icon  )  [inline]

template<class T>
virtual QSize SimpleIconButton< T >::sizeHint (  )  const [inline, virtual]

We use the size of the icon's normal-off pixmap.

template<class T>
virtual void SimpleIconButton< T >::paintEvent ( QPaintEvent *   )  [inline, protected, virtual]


The documentation for this class was generated from the following file:
Generated on Mon Jul 30 09:46:53 2007 for Digest by  doxygen 1.5.2