KDEUI
krichtextedit.cpp
Go to the documentation of this file.
110 if (!cursor.hasSelection() && cursor.position() != wordStart.position() && cursor.position() != wordEnd.position())
446 format.setUnderlineColor(KColorScheme(QPalette::Active, KColorScheme::View).foreground(KColorScheme::LinkText).color());
447 format.setForeground(KColorScheme(QPalette::Active, KColorScheme::View).foreground(KColorScheme::LinkText).color());
static void setAutoHideCursor(QWidget *w, bool enable, bool customEventFilter=false)
Sets auto-hiding the cursor for widget w.
Definition kcursor.cpp:202
The KRichTextEdit class provides a widget to edit and display rich text.
Definition krichtextedit.h:66
void insertPlainTextImplementation()
Definition krichtextedit.cpp:317
void setTextStrikeOut(bool strikeOut)
Toggles the strikeout formatting of the current word or selection at the current cursor position.
Definition krichtextedit.cpp:252
void setTextSubScript(bool subscript)
Toggles the subscript formatting of the current word or selection at the current cursor position.
Definition krichtextedit.cpp:331
void alignRight()
Sets the alignment of the current block to Right Aligned.
Definition krichtextedit.cpp:189
void setTextForegroundColor(const QColor &color)
Sets the foreground color of the current word or selection to color.
Definition krichtextedit.cpp:261
void setTextBackgroundColor(const QColor &color)
Sets the background color of the current word or selection to color.
Definition krichtextedit.cpp:270
void insertHorizontalRule()
Inserts a horizontal rule below the current block.
Definition krichtextedit.cpp:161
bool canDedentList() const
Returns true if the list item at the current position can be dedented.
Definition krichtextedit.cpp:523
QString currentLinkText() const
Returns the text of the link at the current position or an empty string if the cursor is not on a lin...
Definition krichtextedit.cpp:371
void setFont(const QFont &font)
Sets the current word or selection to the font font.
Definition krichtextedit.cpp:297
void selectLinkText(QTextCursor *cursor) const
If the cursor is on a link, sets the cursor to a selection of the text of the link.
Definition krichtextedit.cpp:385
void alignJustify()
Sets the alignment of the current block to Justified.
Definition krichtextedit.cpp:196
void switchToPlainText()
This will switch the editor to plain text mode.
Definition krichtextedit.cpp:306
void setTextOrHtml(const QString &text)
Replaces all the content of the text edit with the given string.
Definition krichtextedit.cpp:358
void setTextUnderline(bool underline)
Toggles the underline formatting of the current word or selection at the current cursor position.
Definition krichtextedit.cpp:243
void textModeChanged(KRichTextEdit::Mode mode)
Emitted whenever the text mode is changed.
QString toCleanHtml() const
This will clean some of the bad html produced by the underlying QTextEdit It walks over all lines and...
Definition krichtextedit.cpp:528
KRichTextEdit(const QString &text, QWidget *parent=0)
Constructs a KRichTextEdit object.
Definition krichtextedit.cpp:118
void selectLinkText() const
Convenience function to select the link text using the active cursor.
Definition krichtextedit.cpp:378
void setFontSize(int size)
Sets the current word or selection to the font size size.
Definition krichtextedit.cpp:288
void indentListLess()
Decreases the nesting level of the current block or selected blocks.
Definition krichtextedit.cpp:156
void setFontFamily(const QString &fontFamily)
Sets the current word or selection to the font family fontFamily.
Definition krichtextedit.cpp:279
void makeLeftToRight()
Sets the direction of the current block to Left-To-Right.
Definition krichtextedit.cpp:214
QString currentLinkUrl() const
Returns the URL target (href) of the link at the current position or an empty string if the cursor is...
Definition krichtextedit.cpp:418
void setListStyle(int _styleIndex)
Sets the list style of the current list, or creates a new list using the current block.
Definition krichtextedit.cpp:143
void indentListMore()
Increases the nesting level of the current block or selected blocks.
Definition krichtextedit.cpp:150
void alignLeft()
Sets the alignment of the current block to Left Aligned.
Definition krichtextedit.cpp:175
void setTextSuperScript(bool superscript)
Toggles the superscript formatting of the current word or selection at the current cursor position.
Definition krichtextedit.cpp:322
void setTextBold(bool bold)
Toggles the bold formatting of the current word or selection at the current cursor position.
Definition krichtextedit.cpp:225
void setTextItalic(bool italic)
Toggles the italic formatting of the current word or selection at the current cursor position.
Definition krichtextedit.cpp:234
void makeRightToLeft()
Sets the direction of the current block to Right-To-Left.
Definition krichtextedit.cpp:203
bool canIndentList() const
Returns true if the list item at the current position can be indented.
Definition krichtextedit.cpp:518
void alignCenter()
Sets the alignment of the current block to Centered.
Definition krichtextedit.cpp:182
void updateLink(const QString &linkUrl, const QString &linkText)
Replaces the current selection with a hyperlink with the link URL linkUrl and the link text linkText.
Definition krichtextedit.cpp:423
virtual void keyPressEvent(QKeyEvent *)
Reimplemented for internal reasons.
Definition ktextedit.cpp:1121
Plain
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Thu Jul 18 2024 00:00:00 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Thu Jul 18 2024 00:00:00 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.