• Skip to content
  • Skip to link menu
KDE 4.5 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

KPIMTextedit Library

  • KPIMTextEdit
  • TextUtils
Functions

KPIMTextEdit::TextUtils Namespace Reference

Utility class for methods working with rich text. More...

Functions

KPIMTEXTEDIT_EXPORT bool containsFormatting (const QTextDocument *document)
KPIMTEXTEDIT_EXPORT QString flowText (QString &text, const QString &indent, int maxLength)

Detailed Description

Utility class for methods working with rich text.

Since:
4.5

Function Documentation

bool KPIMTextEdit::TextUtils::containsFormatting ( const QTextDocument *  document  ) 

Returns whether the QTextDocument document contains rich text formatting.

Definition at line 67 of file textutils.cpp.

QString KPIMTextEdit::TextUtils::flowText ( QString &  text,
const QString &  indent,
int  maxLength 
)

Changes the given text so that each line of it fits into the given maximal length.

At each line, the "indent" string is prepended, which is usually the quote prefix. The text parameter will be empty afterwards. Example: text = "Hello World, this is a test." indent = "> " maxLength = 16 Result: "> Hello World,\n" "> this is a test."

Definition at line 112 of file textutils.cpp.

KPIMTextedit Library

Skip menu "KPIMTextedit Library"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kblog
  • kcal
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.7.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal