Changeset 6427
- Timestamp:
- 07/05/08 12:44:11 (8 weeks ago)
- Files:
-
- 1 modified
-
trunk/qt4-gui/src/config/emoticons.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt4-gui/src/config/emoticons.cpp
r5837 r6427 490 490 } 491 491 492 QString img = QString::fromLatin1("<a href=\"#%1\"><img src=\"%2\"></a>").arg(emo.escapedSmiley).arg(emo.file); 493 TRACE(" Replacing '%s' with '%s'", message.mid(pos, emo.escapedSmiley.length()).toLatin1().data(), img.toLatin1().data()); 492 QString img = QString::fromLocal8Bit("<img src=\"file://%1#LICQ%2\">") 493 .arg(emo.file) 494 .arg(emo.escapedSmiley); 495 TRACE("Replacing '%s' with '%s'", 496 message.mid(pos, emo.escapedSmiley.length()).toLatin1().data(), 497 img.toLatin1().data()); 494 498 message.replace(pos, emo.escapedSmiley.length(), img); 495 499 pos += img.length() - 1; // Point pos at '>' … … 510 514 void Emoticons::unparseMessage(QString& message) 511 515 { 512 QRegExp deicon("< a href=\"#([^\"]*).*</a>");516 QRegExp deicon("<img src=\"file://.*#LICQ(.*)\".*>"); 513 517 deicon.setMinimal(true); 514 518 message.replace(deicon, "\\1");
