mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Fixed to display GXS ID item with a better icon size
This commit is contained in:
parent
ffb8f73357
commit
1a229ef817
@ -81,7 +81,7 @@ static void fillGxsIdRSTreeWidgetItemCallback(GxsIdDetailsType type, const RsIde
|
|||||||
|
|
||||||
QPixmap combinedPixmap;
|
QPixmap combinedPixmap;
|
||||||
if (!icons.empty()) {
|
if (!icons.empty()) {
|
||||||
GxsIdDetails::GenerateCombinedPixmap(combinedPixmap, icons, QFontMetricsF(item->font(item->idColumn())).height()*1.1);
|
GxsIdDetails::GenerateCombinedPixmap(combinedPixmap, icons, QFontMetricsF(item->font(item->idColumn())).height()*1.6);
|
||||||
}
|
}
|
||||||
item->setData(column, Qt::DecorationRole, combinedPixmap);
|
item->setData(column, Qt::DecorationRole, combinedPixmap);
|
||||||
item->setAvatar(details.mAvatar);
|
item->setAvatar(details.mAvatar);
|
||||||
@ -153,7 +153,7 @@ QVariant GxsIdRSTreeWidgetItem::data(int column, int role) const
|
|||||||
int S = QFontMetricsF(font(column)).height();
|
int S = QFontMetricsF(font(column)).height();
|
||||||
|
|
||||||
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, 8*S * 8*S)) {
|
||||||
t = "<table><tr><td>" + embeddedImage + "</td><td>" + t + "</td></table>";
|
t = "<table><tr><td>" + embeddedImage + "</td><td>" + t + "</td></table>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user