mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
parent
fa44956010
commit
80e648a5a2
|
@ -19,6 +19,8 @@
|
|||
|
||||
#include <QFileInfo>
|
||||
#include <QFile>
|
||||
#include <QFont>
|
||||
#include <QFontInfo>
|
||||
#include <QIcon>
|
||||
#include <QPixmap>
|
||||
#include <QDir>
|
||||
|
@ -178,7 +180,7 @@ QList<QStringList> SmileyPack::getEmoticons() const
|
|||
|
||||
QString SmileyPack::getAsRichText(const QString &key)
|
||||
{
|
||||
return "<img src=\"data:image/png;base64," % QString(getCachedSmiley(key).toBase64()) % "\">";
|
||||
return "<img height=\""%QString().setNum(QFontInfo(QFont()).pixelSize())%"\" src=\"data:image/png;base64," % QString(getCachedSmiley(key).toBase64()) % "\">";
|
||||
}
|
||||
|
||||
QIcon SmileyPack::getAsIcon(const QString &key)
|
||||
|
|
Loading…
Reference in New Issue
Block a user