[libcalamaresui] Improve icon+heading layout

- Icon was too wide, heading and message placed off to the side
This commit is contained in:
Adriaan de Groot 2021-12-07 14:15:43 +01:00
parent 3030a710cc
commit 8b804c4ae0

View File

@ -11,25 +11,25 @@
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>Dialog</string> <string notr="true">Dialog</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout">
<item row="2" column="1"> <item row="5" column="0" colspan="2">
<widget class="QLabel" name="headingLabel">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string notr="true"/>
</property>
</widget>
</item>
<item row="4" column="0" colspan="2">
<widget class="QWidget" name="detailsWidget" native="true"> <widget class="QWidget" name="detailsWidget" native="true">
<layout class="QVBoxLayout" name="verticalLayout_3"> <layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<widget class="QLabel" name="informativeTextLabel">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string notr="true"/>
</property>
</widget>
</item>
<item> <item>
<widget class="QLabel" name="label"> <widget class="QLabel" name="label">
<property name="text"> <property name="text">
@ -43,27 +43,17 @@
</layout> </layout>
</widget> </widget>
</item> </item>
<item row="2" column="0" rowspan="2"> <item row="7" column="0">
<widget class="QLabel" name="iconLabel"> <widget class="QLabel" name="offerWebPasteLabel">
<property name="sizePolicy"> <property name="toolTip">
<sizepolicy hsizetype="Minimum" vsizetype="Preferred"> <string/>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property> </property>
<property name="text"> <property name="text">
<string notr="true"/> <string>Would you like to paste the install log to the web?</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="1"> <item row="8" column="0" colspan="2">
<widget class="QLabel" name="informativeTextLabel">
<property name="text">
<string notr="true"/>
</property>
</widget>
</item>
<item row="7" column="0" colspan="2">
<widget class="QDialogButtonBox" name="buttonBox"> <widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
@ -73,12 +63,35 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="6" column="0"> <item row="2" column="0">
<widget class="QLabel" name="offerWebPasteLabel"> <layout class="QHBoxLayout" name="horizontalLayout">
<property name="text"> <item>
<string>Would you like to paste the install log to the web?</string> <widget class="QLabel" name="iconLabel">
</property> <property name="sizePolicy">
</widget> <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string notr="true"/>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="headingLabel">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string notr="true"/>
</property>
</widget>
</item>
</layout>
</item> </item>
</layout> </layout>
</widget> </widget>