mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-13 08:29:32 -05:00
attempt to fix icon sizes in identity dialog
This commit is contained in:
parent
d2c8ba1a86
commit
acbcba8a64
@ -221,7 +221,9 @@ IdDialog::IdDialog(QWidget *parent) :
|
|||||||
connect(ui->inviteButton, SIGNAL(clicked()), this, SLOT(sendInvite()));
|
connect(ui->inviteButton, SIGNAL(clicked()), this, SLOT(sendInvite()));
|
||||||
|
|
||||||
|
|
||||||
ui->avLabel_Person->setPixmap(QPixmap(":/icons/png/people.png"));
|
QFontMetricsF f(ui->avLabel_Person->font()) ;
|
||||||
|
|
||||||
|
ui->avLabel_Person->setPixmap(QPixmap(":/icons/png/people.png").scaled(f.height()*4,f.height()*4,Qt::IgnoreAspectRatio,Qt::SmoothTransformation));
|
||||||
ui->avlabel_Circles->setPixmap(QPixmap(":/icons/png/circles.png"));
|
ui->avlabel_Circles->setPixmap(QPixmap(":/icons/png/circles.png"));
|
||||||
|
|
||||||
ui->headerTextLabel_Person->setText(tr("People"));
|
ui->headerTextLabel_Person->setText(tr("People"));
|
||||||
@ -1768,8 +1770,14 @@ void IdDialog::insertIdDetails(uint32_t token)
|
|||||||
std::cerr << "Setting header frame image : " << pixmap.width() << " x " << pixmap.height() << std::endl;
|
std::cerr << "Setting header frame image : " << pixmap.width() << " x " << pixmap.height() << std::endl;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ui->avLabel_Person->setPixmap(pixmap);
|
//ui->avLabel_Person->setPixmap(pixmap);
|
||||||
ui->avatarLabel->setPixmap(pixmap);
|
//ui->avatarLabel->setPixmap(pixmap);
|
||||||
|
QFontMetricsF f(ui->avLabel_Person->font()) ;
|
||||||
|
ui->avLabel_Person->setPixmap(pixmap.scaled(f.height()*4,f.height()*4,Qt::KeepAspectRatio,Qt::SmoothTransformation));
|
||||||
|
|
||||||
|
QFontMetricsF g(ui->inviteButton->font()) ;
|
||||||
|
ui->avatarLabel->setPixmap(pixmap.scaled(ui->inviteButton->width(),ui->inviteButton->width(),Qt::IgnoreAspectRatio,Qt::SmoothTransformation));
|
||||||
|
ui->avatarLabel->setScaledContents(true);
|
||||||
|
|
||||||
if (data.mPgpKnown)
|
if (data.mPgpKnown)
|
||||||
{
|
{
|
||||||
|
@ -290,6 +290,12 @@
|
|||||||
<layout class="QVBoxLayout" name="scrollAreaWidgetContentsVLayout">
|
<layout class="QVBoxLayout" name="scrollAreaWidgetContentsVLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QFrame" name="headerFramePerson">
|
<widget class="QFrame" name="headerFramePerson">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
<property name="frameShape">
|
<property name="frameShape">
|
||||||
<enum>QFrame::StyledPanel</enum>
|
<enum>QFrame::StyledPanel</enum>
|
||||||
</property>
|
</property>
|
||||||
@ -477,6 +483,12 @@ border-image: url(:/images/closepressed.png)
|
|||||||
</item>
|
</item>
|
||||||
<item row="0" column="0" rowspan="2">
|
<item row="0" column="0" rowspan="2">
|
||||||
<widget class="QLabel" name="avLabel_Person">
|
<widget class="QLabel" name="avLabel_Person">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Maximum" vsizetype="Maximum">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>64</width>
|
<width>64</width>
|
||||||
@ -485,8 +497,8 @@ border-image: url(:/images/closepressed.png)
|
|||||||
</property>
|
</property>
|
||||||
<property name="maximumSize">
|
<property name="maximumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>64</width>
|
<width>1000</width>
|
||||||
<height>64</height>
|
<height>1000</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="styleSheet">
|
<property name="styleSheet">
|
||||||
|
Loading…
Reference in New Issue
Block a user