Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

QwtArrowButton Class Reference

List of all members.

Detailed Description

Arrow Button.

A push button with one or more filled triangles on its front. An Arrow button can have 1 to 3 arrows in a row, pointing up, down, left or right.


Public Member Functions

 QwtArrowButton (int num, Qt::ArrowType, QWidget *parent, const char *name=0)
Qt::ArrowType arrowType () const
int num () const
virtual QSize sizeHint () const
virtual QSize minimumSizeHint () const
virtual QSizePolicy sizePolicy () const

Protected Member Functions

virtual void drawButtonLabel (QPainter *p)
virtual void drawArrow (QPainter *, const QRect &, Qt::ArrowType) const
virtual QRect labelRect () const
virtual QSize arrowSize (Qt::ArrowType, const QSize &boundingSize) const
virtual void keyPressEvent (QKeyEvent *)


Constructor & Destructor Documentation

QwtArrowButton::QwtArrowButton int  num,
Qt::ArrowType  arrowType,
QWidget *  parent,
const char *  name = 0
 

Parameters:
num Number of arrows
arrowType see Qt::ArowType in the Qt docs.
parent Parent widget
name Object name


Member Function Documentation

Qt::ArrowType QwtArrowButton::arrowType  )  const
 

The direction of the arrows.

void QwtArrowButton::drawButtonLabel QPainter *  p  )  [protected, virtual]
 

Draw the button label.

See also:
The Qt Manual on QPushButton

void QwtArrowButton::keyPressEvent QKeyEvent *  e  )  [protected, virtual]
 

autoRepeat for the space keys

QSize QwtArrowButton::minimumSizeHint  )  const [virtual]
 

Return a minimum size hint.

int QwtArrowButton::num  )  const
 

The number of arrows.

QSize QwtArrowButton::sizeHint  )  const [virtual]
 

Returns:
a size hint

QSizePolicy QwtArrowButton::sizePolicy  )  const [virtual]
 

Returns:
Fixed/Expanding for Left/Right, Expanding/Fixed for Up/Down


Generated on Tue Nov 25 21:15:07 2003 for Qwt User's Guide by doxygen 1.3.4