mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix issue #1161
This commit is contained in:
parent
73e51865e7
commit
9bbd7a5c94
|
@ -38,7 +38,9 @@ QVariant CustomTextDocument::loadResource(int type, const QUrl &name)
|
|||
if (type == QTextDocument::ImageResource && name.scheme() == "key")
|
||||
{
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user