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
List of all members, including inherited members
Properties
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)
Public Slots
Signals
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:
intfontSize() constvoidsetFontSize(intsize)
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.