kopete/kopete
#include <kopeterichtextwidget.h>
Public Slots | |
void | setFontFamily (QString family) |
void | setFontSize (int size) |
void | setRichTextEnabled (bool enable) |
void | setSendKeySequenceList (const QList< QKeySequence > &keySequenceList) |
void | setTextBold (bool bold) |
void | setTextItalic (bool italic) |
void | setTextStrikeOut (bool strikeout) |
void | setTextUnderline (bool underline) |
void | slotCheckSpellingChanged (bool b) |
void | slotDocumentSizeUpdated () |
void | slotEnableAutoResize (bool enable) |
void | slotResetFontAndColor () |
Signals | |
void | documentSizeUpdated (int difference) |
void | richTextSupportChanged () |
Public Member Functions | |
KopeteRichTextWidget (QWidget *parent, Kopete::Protocol::Capabilities protocolCaps, KActionCollection *actionCollection) | |
~KopeteRichTextWidget () | |
virtual void | createActions (KActionCollection *actionCollection) |
QTextCharFormat | currentRichFormat () const |
QTextCharFormat | defaultPlainFormat () const |
QTextCharFormat | defaultRichFormat () const |
bool | isRichTextEnabled () const |
void | setCurrentRichCharFormat (const QTextCharFormat &format) |
void | setDefaultPlainCharFormat (const QTextCharFormat &format) |
void | setDefaultRichCharFormat (const QTextCharFormat &format) |
void | setTextOrHtml (const QString &text) |
Protected Slots | |
void | slotTextModeChanged (KRichTextEdit::Mode mode) |
void | updateCharFormat (const QTextCharFormat &) |
void | updateTextFormat () |
Protected Member Functions | |
virtual bool | event (QEvent *event) |
virtual void | insertFromMimeData (const QMimeData *source) |
Detailed Description
A KopeteRichTextWidget with overridden behaviors.
This class overrides the default behavior of fonts when cleared, pasted, etc to match the expected behavior of the user.
- Note
- Make sure to use only text format setters from this class and not parent otherwise you most likely will accidentally enable richtext. KRichTextWidget changes mode to richtext automatically if you change text format.
- Since
- 4.2
Definition at line 44 of file kopeterichtextwidget.h.
Constructor & Destructor Documentation
|
explicit |
Private class that helps to provide binary compatibility between releases.
Definition at line 87 of file kopeterichtextwidget.cpp.
KopeteRichTextWidget::~KopeteRichTextWidget | ( | ) |
Definition at line 109 of file kopeterichtextwidget.cpp.
Member Function Documentation
|
virtual |
Definition at line 162 of file kopeterichtextwidget.cpp.
QTextCharFormat KopeteRichTextWidget::currentRichFormat | ( | ) | const |
Definition at line 564 of file kopeterichtextwidget.cpp.
QTextCharFormat KopeteRichTextWidget::defaultPlainFormat | ( | ) | const |
Definition at line 554 of file kopeterichtextwidget.cpp.
QTextCharFormat KopeteRichTextWidget::defaultRichFormat | ( | ) | const |
Definition at line 559 of file kopeterichtextwidget.cpp.
|
signal |
|
protectedvirtual |
Definition at line 452 of file kopeterichtextwidget.cpp.
|
protectedvirtual |
Definition at line 425 of file kopeterichtextwidget.cpp.
bool KopeteRichTextWidget::isRichTextEnabled | ( | ) | const |
Definition at line 569 of file kopeterichtextwidget.cpp.
|
signal |
void KopeteRichTextWidget::setCurrentRichCharFormat | ( | const QTextCharFormat & | format | ) |
Definition at line 529 of file kopeterichtextwidget.cpp.
void KopeteRichTextWidget::setDefaultPlainCharFormat | ( | const QTextCharFormat & | format | ) |
Definition at line 499 of file kopeterichtextwidget.cpp.
void KopeteRichTextWidget::setDefaultRichCharFormat | ( | const QTextCharFormat & | format | ) |
Definition at line 520 of file kopeterichtextwidget.cpp.
|
slot |
Definition at line 254 of file kopeterichtextwidget.cpp.
|
slot |
Definition at line 272 of file kopeterichtextwidget.cpp.
|
slot |
enable/disable rich text support
- Parameters
-
enable
Definition at line 215 of file kopeterichtextwidget.cpp.
|
slot |
Definition at line 494 of file kopeterichtextwidget.cpp.
|
slot |
Definition at line 290 of file kopeterichtextwidget.cpp.
|
slot |
Definition at line 311 of file kopeterichtextwidget.cpp.
void KopeteRichTextWidget::setTextOrHtml | ( | const QString & | text | ) |
Definition at line 118 of file kopeterichtextwidget.cpp.
|
slot |
Definition at line 347 of file kopeterichtextwidget.cpp.
|
slot |
Definition at line 329 of file kopeterichtextwidget.cpp.
|
slot |
Definition at line 137 of file kopeterichtextwidget.cpp.
|
slot |
Definition at line 142 of file kopeterichtextwidget.cpp.
|
slot |
Definition at line 149 of file kopeterichtextwidget.cpp.
|
slot |
Definition at line 249 of file kopeterichtextwidget.cpp.
|
protectedslot |
Definition at line 574 of file kopeterichtextwidget.cpp.
|
protectedslot |
Definition at line 358 of file kopeterichtextwidget.cpp.
|
protectedslot |
Definition at line 404 of file kopeterichtextwidget.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.