About: Fix cutting of icon (#11946)

This commit is contained in:
Juergen Spitzmueller 2020-08-26 09:59:56 +02:00
parent af146f07e6
commit d436a51024
2 changed files with 6 additions and 2 deletions

View File

@ -328,6 +328,7 @@ GuiAbout::GuiAbout(GuiView & lv)
d->ui.iconLA->setPixmap(icon.scaled(iconsize, iconsize,
Qt::IgnoreAspectRatio,
Qt::SmoothTransformation));
d->ui.iconLA->setFixedWidth(iconsize);
d->ui.dirLibraryLA->setText(dirLibrary());
d->ui.dirUserLA->setText(dirUser());
d->ui.buildinfoTB->setText(buildinfo());

View File

@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>475</width>
<height>386</height>
<height>387</height>
</rect>
</property>
<property name="windowTitle">
@ -29,10 +29,13 @@
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<layout class="QVBoxLayout" name="verticalLayout">
<property name="sizeConstraint">
<enum>QLayout::SetFixedSize</enum>
</property>
<item>
<widget class="QLabel" name="iconLA">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>