mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
parent
e454671ebd
commit
c631fff602
|
@ -38,7 +38,7 @@ QVariant CustomTextDocument::loadResource(int type, const QUrl &name)
|
|||
if (type == QTextDocument::ImageResource && name.scheme() == "key")
|
||||
{
|
||||
QSize size = QSize(Settings::getInstance().getEmojiFontPointSize(),Settings::getInstance().getEmojiFontPointSize());
|
||||
QString fileName = name.toString().mid(4);
|
||||
QString fileName = QUrl::fromPercentEncoding(name.toEncoded()).mid(4).toHtmlEscaped();
|
||||
|
||||
return SmileyPack::getInstance().getAsIcon(fileName).pixmap(size);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user