KTextWidgets
krichtextwidget.h
KRichTextEdit(const QString &text, QWidget *parent=nullptr)
Constructs a KRichTextEdit object.
Definition krichtextedit.cpp:61
QFlags< RichTextSupportValues > RichTextSupport
Stores a combination of RichTextSupportValues values.
Definition krichtextwidget.h:235
void setActionsEnabled(bool enabled)
Disables or enables all of the actions created by createActions().
Definition krichtextwidget.cpp:516
void updateActionStates()
Tells KRichTextWidget to update the state of the actions created by createActions().
Definition krichtextwidget.cpp:714
void setRichTextSupport(const KRichTextWidget::RichTextSupport &support)
Sets the supported rich text subset available.
RichTextSupportValues
These flags describe what actions will be created by createActions() after passing a combination of t...
Definition krichtextwidget.h:49
@ SupportTextBackgroundColor
Action to change the background color of the currently selected text.
Definition krichtextwidget.h:121
@ SupportFontFamily
Action to change the font family of the currently selected text.
Definition krichtextwidget.h:96
@ SupportDirection
Action to change direction of text to Right-To-Left or Left-To-Right.
Definition krichtextwidget.h:214
@ SupportHeading
Action to make the current line a heading (up to six levels, corresponding to HTML h1....
Definition krichtextwidget.h:225
@ SupportDedentLists
Action to decrease the current list nesting level.
Definition krichtextwidget.h:147
@ SupportHyperlinks
Action to convert the current text to a hyperlink.
Definition krichtextwidget.h:186
@ SupportChangeListStyle
Action to make the current line a list element, change the list style or remove list formatting.
Definition krichtextwidget.h:136
@ DisableRichText
No rich text support at all, no actions will be created.
Definition krichtextwidget.h:54
@ SupportToPlainText
Action to change the text of the whole text edit to plain text.
Definition krichtextwidget.h:199
@ SupportFontSize
Action to change the font size of the currently selected text.
Definition krichtextwidget.h:105
@ SupportTextForegroundColor
Action to change the text color of the currently selected text.
Definition krichtextwidget.h:113
@ SupportFormatPainting
Action to make the mouse cursor a format painter.
Definition krichtextwidget.h:193
@ SupportAlignment
Actions to align the current paragraph left, righ, center or justify.
Definition krichtextwidget.h:172
@ SupportSuperScriptAndSubScript
Actions to format text as superscript or subscript.
Definition krichtextwidget.h:207
@ SupportIndentLists
Action to increase the current list nesting level.
Definition krichtextwidget.h:142
virtual QList< QAction * > createActions()
Creates the actions and adds them to the given action collection.
bool event(QEvent *) override
Reimplemented to catch "delete word" shortcut events.
Definition ktextedit.cpp:298
Q_FLAG(...)
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SLOTSQ_SLOTS
QObject * parent() const const
enabled
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:48:44 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:48:44 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.