From ebbde1472ba556a3db59cc54f4950c400b3bd05c Mon Sep 17 00:00:00 2001
Message-Id: <ebbde1472ba556a3db59cc54f4950c400b3bd05c.1615033379.git.bubu@ujevangelizacio.hu>
From: =?UTF-8?q?Gyuris=20Gell=C3=A9rt?= <bubu@ujevangelizacio.hu>
Date: Sat, 6 Mar 2021 13:22:34 +0100
Subject: [PATCH] Generic size test for icon buttons

---
 scribus/ui/propertiespalette_shapebase.ui | 76 +++++------------------
 1 file changed, 14 insertions(+), 62 deletions(-)

diff --git a/scribus/ui/propertiespalette_shapebase.ui b/scribus/ui/propertiespalette_shapebase.ui
index 72ba06355..fa19059aa 100644
--- a/scribus/ui/propertiespalette_shapebase.ui
+++ b/scribus/ui/propertiespalette_shapebase.ui
@@ -48,18 +48,6 @@
        </property>
        <item>
         <widget class="QToolButton" name="textFlowDisabled">
-         <property name="sizePolicy">
-          <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
-           <horstretch>0</horstretch>
-           <verstretch>0</verstretch>
-          </sizepolicy>
-         </property>
-         <property name="maximumSize">
-          <size>
-           <width>22</width>
-           <height>16777215</height>
-          </size>
-         </property>
          <property name="toolTip">
           <string>Text flow around frame disabled</string>
          </property>
@@ -82,18 +70,6 @@
        </item>
        <item>
         <widget class="QToolButton" name="textFlowUsesFrameShape">
-         <property name="sizePolicy">
-          <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
-           <horstretch>0</horstretch>
-           <verstretch>0</verstretch>
-          </sizepolicy>
-         </property>
-         <property name="maximumSize">
-          <size>
-           <width>22</width>
-           <height>16777215</height>
-          </size>
-         </property>
          <property name="toolTip">
           <string>Text flow around frame shape</string>
          </property>
@@ -116,18 +92,6 @@
        </item>
        <item>
         <widget class="QToolButton" name="textFlowUsesBoundingBox">
-         <property name="sizePolicy">
-          <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
-           <horstretch>0</horstretch>
-           <verstretch>0</verstretch>
-          </sizepolicy>
-         </property>
-         <property name="maximumSize">
-          <size>
-           <width>22</width>
-           <height>16777215</height>
-          </size>
-         </property>
          <property name="toolTip">
           <string>Text flow around bounding box</string>
          </property>
@@ -150,18 +114,6 @@
        </item>
        <item>
         <widget class="QToolButton" name="textFlowUsesContourLine">
-         <property name="sizePolicy">
-          <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
-           <horstretch>0</horstretch>
-           <verstretch>0</verstretch>
-          </sizepolicy>
-         </property>
-         <property name="maximumSize">
-          <size>
-           <width>22</width>
-           <height>16777215</height>
-          </size>
-         </property>
          <property name="toolTip">
           <string>Text flow around contour line</string>
          </property>
@@ -184,18 +136,6 @@
        </item>
        <item>
         <widget class="QToolButton" name="textFlowUsesImageClipping">
-         <property name="sizePolicy">
-          <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
-           <horstretch>0</horstretch>
-           <verstretch>0</verstretch>
-          </sizepolicy>
-         </property>
-         <property name="maximumSize">
-          <size>
-           <width>22</width>
-           <height>16777215</height>
-          </size>
-         </property>
          <property name="toolTip">
           <string>Text flow around image clip path</string>
          </property>
@@ -268,10 +208,22 @@
        </item>
        <item>
         <widget class="QLabel" name="roundRectIcon">
+         <property name="sizePolicy">
+          <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+           <horstretch>0</horstretch>
+           <verstretch>0</verstretch>
+          </sizepolicy>
+         </property>
          <property name="minimumSize">
           <size>
-           <width>10</width>
-           <height>10</height>
+           <width>22</width>
+           <height>22</height>
+          </size>
+         </property>
+         <property name="maximumSize">
+          <size>
+           <width>22</width>
+           <height>22</height>
           </size>
          </property>
          <property name="toolTip">
-- 
2.27.0

