KFontSizeAction Class
An action to allow changing of the font size. More...
| Header: | #include <KFontSizeAction> | 
| CMake: | find_package(KF6 REQUIRED COMPONENTS WidgetsAddons)target_link_libraries(mytarget PRIVATE KF6::WidgetsAddons) | 
| Inherits: | KSelectAction | 
Properties
- fontSize : int
Public Functions
| KFontSizeAction(QObject *parent) | |
| KFontSizeAction(const QString &text, QObject *parent) | |
| KFontSizeAction(const QIcon &icon, const QString &text, QObject *parent) | |
| int | fontSize() const | 
| void | setFontSize(int size) | 
Signals
| void | fontSizeChanged(int) | 
Protected Slots
| virtual void | slotActionTriggered(QAction *action) override | 
Detailed Description
This action will be shown as a combobox on a toolbar with a proper set of font sizes.
Property Documentation
fontSize : int
Access functions:
| int | fontSize() const | 
| void | setFontSize(int size) | 
Member Function Documentation
[explicit] KFontSizeAction::KFontSizeAction(QObject *parent)
KFontSizeAction::KFontSizeAction(const QString &text, QObject *parent)
KFontSizeAction::KFontSizeAction(const QIcon &icon, const QString &text, QObject *parent)
int KFontSizeAction::fontSize() const
Note: Getter function for property fontSize.
See also setFontSize().
[signal] void KFontSizeAction::fontSizeChanged(int)
void KFontSizeAction::setFontSize(int size)
Note: Setter function for property fontSize.
See also fontSize().
[override virtual protected slot] void KFontSizeAction::slotActionTriggered(QAction *action)
Reimplements: KSelectAction::slotActionTriggered(QAction *action).
This function is called whenever an action from the selections is triggered.