[LyX/master] About: Fix cutting of icon (#11946)

Juergen Spitzmueller spitz at lyx.org
Wed Aug 26 07:36:06 UTC 2020


commit d436a51024b9820b5a0f7f22d5f4c38ec977dfbf
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Wed Aug 26 09:59:56 2020 +0200

    About: Fix cutting of icon (#11946)
---
 src/frontends/qt/GuiAbout.cpp  |    1 +
 src/frontends/qt/ui/AboutUi.ui |    7 +++++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/frontends/qt/GuiAbout.cpp b/src/frontends/qt/GuiAbout.cpp
index f72f97d..f3e58e2 100644
--- a/src/frontends/qt/GuiAbout.cpp
+++ b/src/frontends/qt/GuiAbout.cpp
@@ -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());
diff --git a/src/frontends/qt/ui/AboutUi.ui b/src/frontends/qt/ui/AboutUi.ui
index 9f658a2..89b7e41 100644
--- a/src/frontends/qt/ui/AboutUi.ui
+++ b/src/frontends/qt/ui/AboutUi.ui
@@ -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>


More information about the lyx-cvs mailing list