UI improvement to math matrix dialog, suggested by magistere (#11888)

This commit is contained in:
Juergen Spitzmueller 2020-06-11 11:29:11 +02:00
parent 716e3dc1a8
commit 64edb7a196

View File

@ -17,6 +17,115 @@
<bool>true</bool>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="2" column="0" colspan="2">
<widget class="QGroupBox" name="alignmentGB">
<property name="title">
<string>Alignment</string>
</property>
<property name="flat">
<bool>true</bool>
</property>
<layout class="QGridLayout" name="grid_1">
<property name="leftMargin">
<number>11</number>
</property>
<property name="topMargin">
<number>11</number>
</property>
<property name="rightMargin">
<number>11</number>
</property>
<property name="bottomMargin">
<number>11</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<item row="1" column="1">
<widget class="QLineEdit" name="halignED">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string>Horizontal alignment per column (l,c,r)</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="valignLA">
<property name="text">
<string>&amp;Vertical:</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
<property name="buddy">
<cstring>valignCO</cstring>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QComboBox" name="valignCO">
<property name="toolTip">
<string>Vertical alignment</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLabel" name="widthLA_2">
<property name="text">
<string>Hori&amp;zontal:</string>
</property>
<property name="buddy">
<cstring>halignED</cstring>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="3" column="1" colspan="2">
<widget class="QDialogButtonBox" name="buttonBox">
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
<item row="2" column="2">
<widget class="QGroupBox" name="decorationtGB">
<property name="title">
<string>Appearance</string>
</property>
<property name="flat">
<bool>true</bool>
</property>
<layout class="QGridLayout" name="grid_2">
<item row="0" column="0">
<widget class="QLabel" name="typeLA">
<property name="text">
<string>&amp;Type:</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
<property name="buddy">
<cstring>decorationCO</cstring>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QComboBox" name="decorationCO">
<property name="toolTip">
<string>decoration type / matrix border</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="0" column="0" colspan="3">
<layout class="QHBoxLayout">
<property name="spacing">
@ -110,7 +219,7 @@
</item>
</layout>
</item>
<item row="1" column="0" colspan="2">
<item row="1" column="0" colspan="3">
<widget class="EmptyTable" name="table" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
@ -123,147 +232,6 @@
</property>
</widget>
</item>
<item row="1" column="2">
<spacer>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::MinimumExpanding</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="2" column="0">
<spacer>
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::MinimumExpanding</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="3" column="0" colspan="2">
<widget class="QGroupBox" name="alignmentGB">
<property name="title">
<string>Alignment</string>
</property>
<property name="flat">
<bool>true</bool>
</property>
<layout class="QGridLayout" name="grid_1">
<property name="leftMargin">
<number>11</number>
</property>
<property name="topMargin">
<number>11</number>
</property>
<property name="rightMargin">
<number>11</number>
</property>
<property name="bottomMargin">
<number>11</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<item row="1" column="0">
<widget class="QComboBox" name="valignCO">
<property name="toolTip">
<string>Vertical alignment</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="valignLA">
<property name="text">
<string>&amp;Vertical:</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
<property name="buddy">
<cstring>valignCO</cstring>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="halignED">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string>Horizontal alignment per column (l,c,r)</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLabel" name="widthLA_2">
<property name="text">
<string>Hori&amp;zontal:</string>
</property>
<property name="buddy">
<cstring>halignED</cstring>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="3" column="2">
<widget class="QGroupBox" name="decorationtGB">
<property name="title">
<string>Appearance</string>
</property>
<property name="flat">
<bool>true</bool>
</property>
<layout class="QGridLayout" name="grid_2">
<item row="0" column="0">
<widget class="QLabel" name="typeLA">
<property name="text">
<string>&amp;Type:</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
<property name="buddy">
<cstring>decorationCO</cstring>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QComboBox" name="decorationCO">
<property name="toolTip">
<string>decoration type / matrix border</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="4" column="1" colspan="2">
<widget class="QDialogButtonBox" name="buttonBox">
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<customwidgets>