KPIMTextEdit::RichTextComposerActions Class

class KPIMTextEdit::RichTextComposerActions

The RichTextComposerActions class manages formatting actions for rich text composition. More...

Header: #include <KPIMTextEdit/RichTextComposerActions>
CMake: find_package(KPim6TextEdit REQUIRED)
target_link_libraries(mytarget PRIVATE KPim6::TextEdit)
Inherits: QObject

Public Functions

RichTextComposerActions(KPIMTextEdit::RichTextComposerControler *controller, QObject *parent = nullptr)
virtual ~RichTextComposerActions() override
void createActions(KActionCollection *ac)
int numberOfActions() const
QList<QAction *> richTextActionList() const
void textModeChanged(KPIMTextEdit::RichTextComposer::Mode mode)
void uncheckActionFormatPainter()
void updateActionStates()

Public Slots

void setActionsEnabled(bool enabled)

Detailed Description

Author: Laurent Montel <montel@kde.org>

Member Function Documentation

[explicit] RichTextComposerActions::RichTextComposerActions(KPIMTextEdit::RichTextComposerControler *controller, QObject *parent = nullptr)

Constructs a RichTextComposerActions with the given controller and parent.

[override virtual noexcept] RichTextComposerActions::~RichTextComposerActions()

Destroys the RichTextComposerActions.

void RichTextComposerActions::createActions(KActionCollection *ac)

Creates actions and adds them to the given ac action collection.

int RichTextComposerActions::numberOfActions() const

Returns the number of rich text actions.

QList<QAction *> RichTextComposerActions::richTextActionList() const

Returns the list of rich text actions.

[slot] void RichTextComposerActions::setActionsEnabled(bool enabled)

Enables or disables all actions based on the enabled parameter.

void RichTextComposerActions::textModeChanged(KPIMTextEdit::RichTextComposer::Mode mode)

Updates actions for the given text mode change.

void RichTextComposerActions::uncheckActionFormatPainter()

Unchecks the format painter action.

void RichTextComposerActions::updateActionStates()

Updates the state of all actions based on the current text format.