• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • @topname@
  • Sitemap
  • Contact Us
 

kdeui

KArrowButton Class Reference

#include <karrowbutton.h>

Inheritance diagram for KArrowButton:

QPushButton

List of all members.


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 honors the currently configured KStyle when drawing the arrow.

Author:
Frerich Raabe

Definition at line 38 of file karrowbutton.h.


Public Slots

void setArrowType (Qt::ArrowType a)

Public Member Functions

 KArrowButton (QWidget *parent=0, Qt::ArrowType arrow=Qt::UpArrow, const char *name=0)
virtual ~KArrowButton ()
virtual QSize sizeHint () const
Qt::ArrowType arrowType () const
int arrowTp () const
void setArrowTp (int tp)

Protected Member Functions

virtual void drawButton (QPainter *)
virtual void virtual_hook (int id, void *data)

Properties

int arrowType

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

Definition at line 30 of file karrowbutton.cpp.

KArrowButton::~KArrowButton (  )  [virtual]

Destructor.

Definition at line 38 of file karrowbutton.cpp.


Member Function Documentation

QSize KArrowButton::sizeHint ( void   )  const [virtual]

Reimplemented from QPushButton.

Definition at line 43 of file karrowbutton.cpp.

Qt::ArrowType KArrowButton::arrowType (  )  const

Returns the arrow type.

Since:
3.4

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

Definition at line 48 of file karrowbutton.cpp.

void KArrowButton::drawButton ( QPainter *  p  )  [protected, virtual]

Reimplemented from QPushButton.

Definition at line 60 of file karrowbutton.cpp.


The documentation for this class was generated from the following files:
  • karrowbutton.h
  • karrowbutton.cpp

kdeui

Skip menu "kdeui"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

@topname@

Skip menu "@topname@"
  •     kdnssd-avahi
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for @topname@ by doxygen 1.5.5
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal