mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-13 08:29:32 -05:00
Raise avatar size to better match the amount of text
This commit is contained in:
parent
f90692f8f2
commit
4d6aa8ab5b
@ -169,7 +169,7 @@ QVariant GxsIdRSTreeWidgetItem::data(int column, int role) const
|
|||||||
|
|
||||||
QString embeddedImage;
|
QString embeddedImage;
|
||||||
|
|
||||||
if ( RsHtml::makeEmbeddedImage( pix.scaled(QSize(4*S,4*S), Qt::KeepAspectRatio, Qt::SmoothTransformation ).toImage(), embeddedImage, 8*S * 8*S ) )
|
if ( RsHtml::makeEmbeddedImage( pix.scaled(QSize(5*S,5*S), Qt::KeepAspectRatio, Qt::SmoothTransformation ).toImage(), embeddedImage, -1 ) )
|
||||||
{
|
{
|
||||||
embeddedImage.insert(embeddedImage.indexOf("src="), "style=\"float:left\" ");
|
embeddedImage.insert(embeddedImage.indexOf("src="), "style=\"float:left\" ");
|
||||||
t = "<table><tr><td>" + embeddedImage + "</td><td>" + t + "</td></table>";
|
t = "<table><tr><td>" + embeddedImage + "</td><td>" + t + "</td></table>";
|
||||||
|
@ -563,10 +563,10 @@ QVariant RsGxsForumModel::toolTipRole(const ForumModelPostEntry& fmpe,int column
|
|||||||
return QVariant();
|
return QVariant();
|
||||||
|
|
||||||
int S = QFontMetricsF(QApplication::font()).height();
|
int S = QFontMetricsF(QApplication::font()).height();
|
||||||
QImage pix( (*icons.begin()).pixmap(QSize(4*S,4*S)).toImage());
|
QImage pix( (*icons.begin()).pixmap(QSize(5*S,5*S)).toImage());
|
||||||
|
|
||||||
QString embeddedImage;
|
QString embeddedImage;
|
||||||
if(RsHtml::makeEmbeddedImage(pix.scaled(QSize(4*S,4*S), Qt::KeepAspectRatio, Qt::SmoothTransformation), embeddedImage, 8*S * 8*S))
|
if(RsHtml::makeEmbeddedImage(pix.scaled(QSize(5*S,5*S), Qt::KeepAspectRatio, Qt::SmoothTransformation), embeddedImage, -1))
|
||||||
{
|
{
|
||||||
embeddedImage.insert(embeddedImage.indexOf("src="), "style=\"float:left\" ");
|
embeddedImage.insert(embeddedImage.indexOf("src="), "style=\"float:left\" ");
|
||||||
comment = "<table><tr><td>" + embeddedImage + "</td><td>" + comment + "</td></table>";
|
comment = "<table><tr><td>" + embeddedImage + "</td><td>" + comment + "</td></table>";
|
||||||
|
@ -399,10 +399,10 @@ QVariant RsMessageModel::toolTipRole(const Rs::Msgs::MsgInfoSummary& fmpe,int co
|
|||||||
return QVariant();
|
return QVariant();
|
||||||
|
|
||||||
int S = QFontMetricsF(QApplication::font()).height();
|
int S = QFontMetricsF(QApplication::font()).height();
|
||||||
QImage pix( (*icons.begin()).pixmap(QSize(4*S,4*S)).toImage());
|
QImage pix( (*icons.begin()).pixmap(QSize(5*S,5*S)).toImage());
|
||||||
|
|
||||||
QString embeddedImage;
|
QString embeddedImage;
|
||||||
if(RsHtml::makeEmbeddedImage(pix.scaled(QSize(4*S,4*S), Qt::KeepAspectRatio, Qt::SmoothTransformation), embeddedImage, 8*S * 8*S))
|
if(RsHtml::makeEmbeddedImage(pix.scaled(QSize(5*S,5*S), Qt::KeepAspectRatio, Qt::SmoothTransformation), embeddedImage, -1))
|
||||||
{
|
{
|
||||||
embeddedImage.insert(embeddedImage.indexOf("src="), "style=\"float:left\" ");
|
embeddedImage.insert(embeddedImage.indexOf("src="), "style=\"float:left\" ");
|
||||||
comment = "<table><tr><td>" + embeddedImage + "</td><td>" + comment + "</td></table>";
|
comment = "<table><tr><td>" + embeddedImage + "</td><td>" + comment + "</td></table>";
|
||||||
|
Loading…
Reference in New Issue
Block a user