KFontSizeAction
KFontSizeAction Class Reference
#include <KFontSizeAction>
Inheritance diagram for KFontSizeAction:
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 QAction | |
autoRepeat | |
checkable | |
checked | |
enabled | |
font | |
icon | |
iconText | |
iconVisibleInMenu | |
menuRole | |
priority | |
shortcut | |
shortcutContext | |
shortcutVisibleInContextMenu | |
statusTip | |
text | |
toolTip | |
visible | |
whatsThis | |
Properties inherited from QObject | |
objectName | |
Signals | |
void | fontSizeChanged (int) |
Signals inherited from KSelectAction | |
void | actionTriggered (QAction *action) |
void | indexTriggered (int index) |
void | textTriggered (const QString &text) |
Protected Slots | |
void | slotActionTriggered (QAction *action) override |
Protected Slots inherited from KSelectAction | |
virtual void | slotActionTriggered (QAction *action) |
void | slotToggled (bool) |
Additional Inherited Members | |
Public Types inherited from KSelectAction | |
enum | ToolBarMode { MenuMode , ComboBoxMode } |
Public Types inherited from QAction | |
enum | ActionEvent |
enum | MenuRole |
enum | Priority |
Public Types inherited from QObject | |
typedef | QObjectList |
Static Public Member Functions inherited from QObject | |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, Functor functor) |
bool | disconnect (const QMetaObject::Connection &connection) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
bool | disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
Public Attributes inherited from QAction | |
AboutQtRole | |
AboutRole | |
ApplicationSpecificRole | |
HighPriority | |
Hover | |
LowPriority | |
NormalPriority | |
NoRole | |
PreferencesRole | |
QuitRole | |
TextHeuristicRole | |
Trigger | |
Protected Member Functions inherited from KSelectAction | |
KWIDGETSADDONS_NO_EXPORT | KSelectAction (KSelectActionPrivate &dd, QObject *parent) |
QWidget * | createWidget (QWidget *parent) override |
void | deleteWidget (QWidget *widget) override |
bool | event (QEvent *event) override |
bool | eventFilter (QObject *watched, QEvent *event) override |
Protected Member Functions inherited from QWidgetAction | |
QList< QWidget * > | createdWidgets () const const |
Protected Member Functions inherited from QAction | |
Protected Member Functions inherited from QObject | |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const QMetaMethod &signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const QMetaMethod &signal) |
bool | isSignalConnected (const QMetaMethod &signal) const const |
int | receivers (const char *signal) const const |
QObject * | sender () const const |
int | senderSignalIndex () const const |
virtual void | timerEvent (QTimerEvent *event) |
Protected Attributes inherited from KSelectAction | |
std::unique_ptr< class KSelectActionPrivate > const | 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 29 of file kfontsizeaction.h.
Property Documentation
◆ fontSize
|
readwrite |
Definition at line 32 of file kfontsizeaction.h.
Constructor & Destructor Documentation
◆ KFontSizeAction() [1/3]
|
explicit |
Definition at line 39 of file kfontsizeaction.cpp.
◆ KFontSizeAction() [2/3]
Definition at line 47 of file kfontsizeaction.cpp.
◆ KFontSizeAction() [3/3]
Definition at line 56 of file kfontsizeaction.cpp.
Member Function Documentation
◆ fontSize()
int KFontSizeAction::fontSize | ( | ) | const |
Definition at line 127 of file kfontsizeaction.cpp.
◆ setFontSize()
void KFontSizeAction::setFontSize | ( | int | size | ) |
Definition at line 83 of file kfontsizeaction.cpp.
◆ slotActionTriggered
|
overrideprotectedslot |
This function is called whenever an action from the selections is triggered.
Definition at line 132 of file kfontsizeaction.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:52 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:52 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.