1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00
This commit is contained in:
krepa098 2014-07-26 10:05:32 +02:00
parent 326fd655cb
commit 234d46a480
2 changed files with 3 additions and 3 deletions

View File

@ -95,8 +95,8 @@ QString SmileyPack::replaceEmoticons(const QString &msg) const
int index = msg.indexOf(exp); int index = msg.indexOf(exp);
int offset = 0; int offset = 0;
// if a word is key of a smiley, replace it by it's corresponding image in Rich Text // if a word is key of a smiley, replace it by its corresponding image in Rich Text
while (index >= 0 || exp.matchedLength() > 0) while (index >= 0)
{ {
QString key = exp.cap(); QString key = exp.cap();
if (lookupTable.contains(key)) if (lookupTable.contains(key))

View File

@ -21,7 +21,7 @@
#include <QString> #include <QString>
#include <QObject> #include <QObject>
//maps emoticons to smilies //maps emoticons to smileys
class SmileyPack : public QObject class SmileyPack : public QObject
{ {
Q_OBJECT Q_OBJECT