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

KDEUI

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

#include <kfontsizeaction.h>

Inheritance diagram for KFontSizeAction:
KSelectAction KAction QAction QWidgetAction

Signals

void fontSizeChanged (int)
Signals inherited from KSelectAction
void triggered (const QString &text)
void triggered (int index)
void triggered (QAction *action)
Signals inherited from KAction
void authorized (KAuth::Action *action)
void globalShortcutChanged (const QKeySequence &)
void triggered (Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers)

Public Member Functions

 KFontSizeAction (const KIcon &icon, const QString &text, QObject *parent)
 KFontSizeAction (const QString &text, QObject *parent)
 KFontSizeAction (QObject *parent)
virtual ~KFontSizeAction ()
int fontSize () const
void setFontSize (int size)
Public Member Functions inherited from KSelectAction
 KSelectAction (const KIcon &icon, const QString &text, QObject *parent)
 KSelectAction (const QString &text, QObject *parent)
 KSelectAction (QObject *parent)
virtual ~KSelectAction ()
QAction * action (const QString &text, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
QAction * action (int index) const
QList< QAction * > actions () const
KAction * addAction (const KIcon &icon, const QString &text)
KAction * addAction (const QString &text)
virtual void addAction (QAction *action)
void changeItem (int index, const QString &text)
void clear ()
int comboWidth () const
QAction * currentAction () const
int currentItem () const
QString currentText () const
bool isEditable () const
QStringList items () const
bool menuAccelsEnabled () const
virtual QAction * removeAction (QAction *action)
void removeAllActions ()
QActionGroup * selectableActionGroup () const
void setComboWidth (int width)
bool setCurrentAction (const QString &text, Qt::CaseSensitivity cs=Qt::CaseSensitive)
bool setCurrentAction (QAction *action)
bool setCurrentItem (int index)
void setEditable (bool)
void setItems (const QStringList &lst)
void setMaxComboViewCount (int n)
void setMenuAccelsEnabled (bool b)
void setToolBarMode (ToolBarMode mode)
void setToolButtonPopupMode (QToolButton::ToolButtonPopupMode mode)
ToolBarMode toolBarMode () const
QToolButton::ToolButtonPopupMode toolButtonPopupMode () 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

Protected Slots

virtual void actionTriggered (QAction *action)
Protected Slots inherited from KSelectAction
virtual void actionTriggered (QAction *action)
void slotToggled (bool)

Properties

int fontSize
Properties inherited from KSelectAction
int comboWidth
QAction * currentAction
int currentItem
QString currentText
bool editable
QStringList items
ToolBarMode toolBarMode
QToolButton::ToolButtonPopupMode toolButtonPopupMode
Properties inherited from KAction
KShortcut globalShortcut
bool globalShortcutAllowed
bool globalShortcutEnabled
KShortcut shortcut
bool shortcutConfigurable

Additional Inherited Members

Public Types inherited from KSelectAction
enum  ToolBarMode { MenuMode , ComboBoxMode }
Public Types inherited from KAction
enum  GlobalShortcutLoading { Autoloading = 0x0 , NoAutoloading = 0x4 }
enum  ShortcutType { ActiveShortcut = 0x1 , DefaultShortcut = 0x2 }
Protected Member Functions inherited from KSelectAction
 KSelectAction (KSelectActionPrivate &dd, QObject *parent)
virtual QWidget * createWidget (QWidget *parent)
virtual void deleteWidget (QWidget *widget)
virtual bool event (QEvent *event)
virtual bool eventFilter (QObject *watched, QEvent *event)
Protected Attributes inherited from KSelectAction
KSelectActionPrivate * d_ptr

Detailed Description

An action to allow changing of the font size.

This action will be shown as a combobox on a toolbar with a proper set of font sizes.

Definition at line 36 of file kfontsizeaction.h.

Constructor & Destructor Documentation

◆ KFontSizeAction() [1/3]

KFontSizeAction::KFontSizeAction ( QObject * parent)
explicit

Definition at line 54 of file kfontsizeaction.cpp.

◆ KFontSizeAction() [2/3]

KFontSizeAction::KFontSizeAction ( const QString & text,
QObject * parent )

Definition at line 61 of file kfontsizeaction.cpp.

◆ KFontSizeAction() [3/3]

KFontSizeAction::KFontSizeAction ( const KIcon & icon,
const QString & text,
QObject * parent )

Definition at line 68 of file kfontsizeaction.cpp.

◆ ~KFontSizeAction()

KFontSizeAction::~KFontSizeAction ( )
virtual

Definition at line 75 of file kfontsizeaction.cpp.

Member Function Documentation

◆ actionTriggered

void KFontSizeAction::actionTriggered ( QAction * action)
protectedvirtualslot

This function is called whenever an action from the selections is triggered.

Definition at line 139 of file kfontsizeaction.cpp.

◆ fontSize()

int KFontSizeAction::fontSize ( ) const

Definition at line 134 of file kfontsizeaction.cpp.

◆ fontSizeChanged

void KFontSizeAction::fontSizeChanged ( int )
signal

◆ setFontSize()

void KFontSizeAction::setFontSize ( int size)

Definition at line 92 of file kfontsizeaction.cpp.

Property Documentation

◆ fontSize

int KFontSizeAction::fontSize
readwrite

Definition at line 39 of file kfontsizeaction.h.


The documentation for this class was generated from the following files:
  • kfontsizeaction.h
  • kfontsizeaction.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