• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDEUI

KArrowButton Class Reference

Draws a button with an arrow. More...

#include <karrowbutton.h>

Inheritance diagram for KArrowButton:

Inheritance graph
[legend]

List of all members.


Public Slots

void setArrowType (Qt::ArrowType a)

Public Member Functions

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

Protected Member Functions

virtual void paintEvent (QPaintEvent *)

Properties

int arrowType

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 37 of file karrowbutton.h.


Constructor & Destructor Documentation

KArrowButton::KArrowButton ( QWidget *  parent = 0,
Qt::ArrowType  arrow = Qt::UpArrow 
) [explicit]

Constructs an arrow button.

Parameters:
parent This button's parent
arrow The direction the arrrow should be pointing in

Definition at line 33 of file karrowbutton.cpp.

KArrowButton::~KArrowButton (  )  [virtual]

Destructor.

Definition at line 39 of file karrowbutton.cpp.


Member Function Documentation

int KArrowButton::arrowTp (  )  const [inline]

hack for moc braindamage with enums, use arrowType() instead

Definition at line 70 of file karrowbutton.h.

Qt::ArrowType KArrowButton::arrowType (  )  const

Returns the arrow type.

void KArrowButton::paintEvent ( QPaintEvent *   )  [protected, virtual]

Reimplemented from QPushButton.

Definition at line 61 of file karrowbutton.cpp.

void KArrowButton::setArrowTp ( int  tp  )  [inline]

hack for moc braindamage with enums, use setArrowType() instead

Definition at line 72 of file karrowbutton.h.

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 49 of file karrowbutton.cpp.

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

Reimplemented from QPushButton.

Definition at line 44 of file karrowbutton.cpp.


Property Documentation

Qt::ArrowType KArrowButton::arrowType [read, write]

Arrow type for this button, from Qt::ArrowType.

Definition at line 43 of file karrowbutton.h.


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

KDEUI

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
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