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

KDEUI

Public Slots | Public Member Functions | Protected Member Functions | Properties | List of all members
KArrowButton Class Reference

#include <karrowbutton.h>

Inheritance diagram for KArrowButton:
QPushButton

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.

KDE Arrow Buttons
Author
Frerich Raabe

Definition at line 41 of file karrowbutton.h.

Constructor & Destructor Documentation

◆ KArrowButton()

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::~KArrowButton ( )
virtual

Destructor.

Definition at line 39 of file karrowbutton.cpp.

Member Function Documentation

◆ arrowTp()

int KArrowButton::arrowTp ( ) const
inline

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

Definition at line 74 of file karrowbutton.h.

◆ arrowType()

Qt::ArrowType KArrowButton::arrowType ( ) const

Returns the arrow type.

Definition at line 56 of file karrowbutton.cpp.

◆ paintEvent()

void KArrowButton::paintEvent ( QPaintEvent *  )
protectedvirtual

Reimplemented from QPushButton.

Definition at line 61 of file karrowbutton.cpp.

◆ setArrowTp()

void KArrowButton::setArrowTp ( int  tp)
inline

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

Definition at line 76 of file karrowbutton.h.

◆ setArrowType

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.

◆ sizeHint()

QSize KArrowButton::sizeHint ( ) const
virtual

Reimplemented from QPushButton.

Definition at line 44 of file karrowbutton.cpp.

Property Documentation

◆ arrowType

int KArrowButton::arrowType
readwrite

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

Definition at line 1 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-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 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.14.38 API Reference

Skip menu "kdelibs-4.14.38 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