Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

KArrowButton Class Reference

Draws a button with an arrow. More...

#include <karrowbutton.h>

List of all members.

Public Slots

void setArrowType (Qt::ArrowType a)

Public Methods

 KArrowButton (QWidget *parent=0, Qt::ArrowType arrow=Qt::UpArrow, const char *name=0)
virtual ~KArrowButton ()
virtual QSize sizeHint () const

Protected Methods

virtual void drawButton (QPainter *)


Detailed Description

Draws a button with an arrow.

Draws a button which shows an arrow pointing into a certain direction. The arrow's alignment on the button depends on the direction it's pointing to, e.g. a left arrow is aligned at the left border, a upwards arrow at the top border. This class honours the currently configured KStyle when drawing the arrow.

Author:
Frerich Raabe

Definition at line 34 of file karrowbutton.h.


Constructor & Destructor Documentation

KArrowButton::KArrowButton QWidget *    parent = 0,
Qt::ArrowType    arrow = Qt::UpArrow,
const char *    name = 0
 

Constructs an arrow button.

Parameters:
parent  This button's parent
arrow  The direction the arrrow should be pointing in
name  An internal name for this widget

virtual KArrowButton::~KArrowButton   [virtual]
 

Destructor.


Member Function Documentation

virtual void KArrowButton::drawButton QPainter *    [protected, virtual]
 

Reimplemented from QPushButton.

void KArrowButton::setArrowType Qt::ArrowType    a [slot]
 

Defines in what direction the arrow is pointing to. Will repaint the button if necessary.

Parameters:
a  The direction this arrow should be pointing in

virtual QSize KArrowButton::sizeHint   [virtual]
 

Reimplemented from QPushButton.


The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:05 2003 for kdelibs by doxygen1.2.18