• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.10.5 API Reference
  • KDE Home
  • Contact Us
 

KDEUI

Public Slots | Public Member Functions | Protected Member Functions | Properties
KArrowButton Class Reference

#include <karrowbutton.h>

Inheritance diagram for KArrowButton:
QPushButton

List of all members.

Public Slots

void setArrowType (Qt::ArrowType a)

Public Member Functions

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

Protected Member Functions

virtual void paintEvent (QPaintEvent *)

Properties

int arrowType

Detailed Description

Draws a button with an arrow.

Deprecated:
Use a QToolButton with the arrowType property set instead

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.

karrowbutton.png
KDE Arrow Buttons
Author:
Frerich Raabe

Definition at line 41 of file karrowbutton.h.


Constructor & Destructor Documentation

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

Constructs an arrow button.

Parameters:
parentThis button's parent
arrowThe 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 74 of file karrowbutton.h.

Qt::ArrowType KArrowButton::arrowType ( ) const

Returns the arrow type.

void KArrowButton::paintEvent ( QPaintEvent *  )
protectedvirtual

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 76 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:
aThe 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
readwrite

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

Definition at line 47 of file karrowbutton.h.


The documentation for this class was generated from the following files:
  • karrowbutton.h
  • karrowbutton.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Jul 16 2013 11:46:20 by doxygen 1.8.1.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

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

kdelibs-4.10.5 API Reference

Skip menu "kdelibs-4.10.5 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal