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

KDEUI

Public Member Functions | Properties | List of all members
KToolBarSpacerAction Class Reference

#include <ktoolbarspaceraction.h>

Inheritance diagram for KToolBarSpacerAction:
KAction QAction QWidgetAction

Public Member Functions

 KToolBarSpacerAction (QObject *parent)
 ~KToolBarSpacerAction ()
virtual QWidget * createWidget (QWidget *parent)
virtual void deleteWidget (QWidget *widget)
int maximumWidth () const
int minimumWidth () const
void setMaximumWidth (int width)
void setMinimumWidth (int width)
void setWidth (int width)
int width () const
Public Member Functions inherited from KAction
 KAction (const KIcon &icon, const QString &text, QObject *parent)
 KAction (const QString &text, QObject *parent)
 KAction (QObject *parent)
virtual ~KAction ()
KAuth::Action * authAction () const
bool event (QEvent *)
void forgetGlobalShortcut ()
const KShortcut & globalShortcut (ShortcutTypes type=ActiveShortcut) const
bool globalShortcutAllowed () const
bool isGlobalShortcutEnabled () const
bool isShortcutConfigurable () const
KRockerGesture rockerGesture (ShortcutTypes type=ActiveShortcut) const
void setAuthAction (const QString &actionName)
void setAuthAction (KAuth::Action *action)
void setGlobalShortcut (const KShortcut &shortcut, ShortcutTypes type=ShortcutTypes(ActiveShortcut|DefaultShortcut), GlobalShortcutLoading loading=Autoloading)
void setGlobalShortcutAllowed (bool allowed, GlobalShortcutLoading loading=Autoloading)
void setHelpText (const QString &text)
void setRockerGesture (const KRockerGesture &gest, ShortcutTypes type=ShortcutTypes(ActiveShortcut|DefaultShortcut))
void setShapeGesture (const KShapeGesture &gest, ShortcutTypes type=ShortcutTypes(ActiveShortcut|DefaultShortcut))
void setShortcut (const KShortcut &shortcut, ShortcutTypes type=ShortcutTypes(ActiveShortcut|DefaultShortcut))
void setShortcut (const QKeySequence &shortcut, ShortcutTypes type=ShortcutTypes(ActiveShortcut|DefaultShortcut))
void setShortcutConfigurable (bool configurable)
void setShortcuts (const QList< QKeySequence > &shortcuts, ShortcutTypes type=ShortcutTypes(ActiveShortcut|DefaultShortcut))
KShapeGesture shapeGesture (ShortcutTypes type=ActiveShortcut) const
KShortcut shortcut (ShortcutTypes types=ActiveShortcut) const

Properties

int maximumWidth
int minimumWidth
int width
Properties inherited from KAction
KShortcut globalShortcut
bool globalShortcutAllowed
bool globalShortcutEnabled
KShortcut shortcut
bool shortcutConfigurable

Additional Inherited Members

Public Types inherited from KAction
enum  GlobalShortcutLoading { Autoloading = 0x0 , NoAutoloading = 0x4 }
enum  ShortcutType { ActiveShortcut = 0x1 , DefaultShortcut = 0x2 }
Signals inherited from KAction
void authorized (KAuth::Action *action)
void globalShortcutChanged (const QKeySequence &)
void triggered (Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers)

Detailed Description

An extension to KAction which allows for adding a spacer item into a QToolBar / KToolBar.

Use this as the replacement for the old KToolBar::alignItemRight().

Author
Hamish Rodda rodda.nosp@m.@kde.nosp@m..org

Definition at line 32 of file ktoolbarspaceraction.h.

Constructor & Destructor Documentation

◆ KToolBarSpacerAction()

KToolBarSpacerAction::KToolBarSpacerAction ( QObject * parent)
explicit

Creates a new toolbar spacer action.

Parameters
parentThe action's parent object.

Definition at line 42 of file ktoolbarspaceraction.cpp.

◆ ~KToolBarSpacerAction()

KToolBarSpacerAction::~KToolBarSpacerAction ( )

Definition at line 48 of file ktoolbarspaceraction.cpp.

Member Function Documentation

◆ createWidget()

QWidget * KToolBarSpacerAction::createWidget ( QWidget * parent)
virtual

Reimplemented from.

See also
QActionWidgetFactory.

Definition at line 101 of file ktoolbarspaceraction.cpp.

◆ deleteWidget()

void KToolBarSpacerAction::deleteWidget ( QWidget * widget)
virtual

Reimplemented from.

See also
QWidgetAction.

Definition at line 116 of file ktoolbarspaceraction.cpp.

◆ maximumWidth()

int KToolBarSpacerAction::maximumWidth ( ) const

Returns the maximum width of the spacer item.

Definition at line 85 of file ktoolbarspaceraction.cpp.

◆ minimumWidth()

int KToolBarSpacerAction::minimumWidth ( ) const

Returns the minimum width of the spacer item.

Definition at line 69 of file ktoolbarspaceraction.cpp.

◆ setMaximumWidth()

void KToolBarSpacerAction::setMaximumWidth ( int width)

Sets the maximum.

Parameters
widthof the spacer item.

Definition at line 90 of file ktoolbarspaceraction.cpp.

◆ setMinimumWidth()

void KToolBarSpacerAction::setMinimumWidth ( int width)

Sets the minimum.

Parameters
widthof the spacer item.

Definition at line 74 of file ktoolbarspaceraction.cpp.

◆ setWidth()

void KToolBarSpacerAction::setWidth ( int width)

Sets the.

Parameters
widthof the spacer item.

Definition at line 58 of file ktoolbarspaceraction.cpp.

◆ width()

int KToolBarSpacerAction::width ( ) const

Returns the width of the spacer item.

Definition at line 53 of file ktoolbarspaceraction.cpp.

Property Documentation

◆ maximumWidth

int KToolBarSpacerAction::maximumWidth
readwrite

Definition at line 37 of file ktoolbarspaceraction.h.

◆ minimumWidth

int KToolBarSpacerAction::minimumWidth
readwrite

Definition at line 36 of file ktoolbarspaceraction.h.

◆ width

int KToolBarSpacerAction::width
readwrite

Definition at line 35 of file ktoolbarspaceraction.h.


The documentation for this class was generated from the following files:
  • ktoolbarspaceraction.h
  • ktoolbarspaceraction.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 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
  • 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