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 2015-02-15 14:25:49 +01:00
parent 73e51865e7
commit 9bbd7a5c94

View File

@ -38,7 +38,9 @@ QVariant CustomTextDocument::loadResource(int type, const QUrl &name)
if (type == QTextDocument::ImageResource && name.scheme() == "key") if (type == QTextDocument::ImageResource && name.scheme() == "key")
{ {
QSize size = QSize(Settings::getInstance().getEmojiFontPointSize(),Settings::getInstance().getEmojiFontPointSize()); QSize size = QSize(Settings::getInstance().getEmojiFontPointSize(),Settings::getInstance().getEmojiFontPointSize());
return SmileyPack::getInstance().getAsIcon(name.fileName()).pixmap(size); QString fileName = name.toString().mid(4);
return SmileyPack::getInstance().getAsIcon(fileName).pixmap(size);
} }
return QTextDocument::loadResource(type, name); return QTextDocument::loadResource(type, name);