kpimutils
linklocator.h
Go to the documentation of this file.
QString mText
The plaintext string being scanned for URLs and email addresses.
Definition linklocator.h:163
int maxAddressLen() const
Returns the current limit on the maximum length of an email address.
Definition linklocator.cpp:91
void setMaxUrlLen(int length)
Sets the maximum length of URLs that will be matched by getUrl().
Definition linklocator.cpp:76
QString getUrl()
Attempts to grab a URL starting at the current scan position.
Definition linklocator.cpp:96
void setMaxAddressLen(int length)
Sets the maximum length of email addresses that will be matched by getEmailAddress().
Definition linklocator.cpp:86
QString highlightedText()
Highlight text according to bold, /italic/ and underlined markup.
Definition linklocator.cpp:473
int maxUrlLen() const
Returns the current limit on the maximum length of a URL.
Definition linklocator.cpp:81
static QString convertToHtml(const QString &plainText, int flags=0, int maxUrlLen=4096, int maxAddressLen=255)
Converts plaintext into html.
Definition linklocator.cpp:310
LinkLocator(const QString &text, int pos=0)
Constructs a LinkLocator that will search a plaintext string from a given starting point.
Definition linklocator.cpp:58
static QString pngToDataUrl(const QString &iconPath)
Embeds the given PNG image into a data URL.
Definition linklocator.cpp:457
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.