KUtils
kemoticonsprovider.cpp
Go to the documentation of this file.
70 bool KEmoticonsProvider::addEmoticon(const QString &emo, const QString &text, AddEmoticonOption option)
145 e.picHTMLCode = QString("<img align=\"center\" title=\"%1\" alt=\"%1\" src=\"%2\" width=\"%3\" height=\"%4\" />").arg(escaped).arg(path).arg(p.width()).arg(p.height());
void addEmoticonIndex(const QString &path, const QStringList &emoList)
Add an emoticon to the index.
Definition: kemoticonsprovider.cpp:135
QHash< QChar, QList< Emoticon > > emoticonsIndex() const
Returns a QHash that contains emoticons indexed by the first char.
Definition: kemoticonsprovider.cpp:130
int width() const
< Copy the emoticon file into the theme directory
Definition: kemoticonsprovider.h:55
const T & at(int i) const
void removeAt(int i)
QString matchTextEscaped
Definition: kemoticonsprovider.h:45
int size() const
QHash< QString, QStringList > emoticonsMap() const
Returns a QHash that contains the emoticons path as keys and the text as values.
Definition: kemoticonsprovider.cpp:121
void addEmoticonsMap(QString key, QStringList value)
Insert a new item in the emoticons map.
Definition: kemoticonsprovider.cpp:109
const char * name() const
QString fileName() const
static bool dircopy(const KUrl &src, const KUrl &target, QWidget *window)
bool isEmpty() const
bool isEmpty() const
void removeEmoticonsMap(QString key)
Remove an item from the emoticons map.
Definition: kemoticonsprovider.cpp:116
void removeEmoticonIndex(const QString &path, const QStringList &emoList)
Remove an emoticon from the index.
Definition: kemoticonsprovider.cpp:158
QDir dir() const
Definition: dialog.h:29
bool load(const QString &fileName, const char *format, QFlags< Qt::ImageConversionFlag > flags)
virtual bool loadTheme(const QString &path)
Load the theme inside the directory path.
Definition: kemoticonsprovider.cpp:55
int height() const
QString dirName() const
QString escape(const QString &plain)
virtual bool removeEmoticon(const QString &emo)
Remove the emoticon emo, this will not delete the image file too.
Definition: kemoticonsprovider.cpp:64
QString absolutePath() const
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
virtual bool addEmoticon(const QString &emo, const QString &text, AddEmoticonOption option=DoNotCopy)
Add the emoticon emo with text text.
Definition: kemoticonsprovider.cpp:70
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:25:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:25:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.