Fix group box width in Document > Settings > Float Settings

Also fix typo in widget name
This commit is contained in:
Juergen Spitzmueller 2024-10-06 15:49:24 +02:00
parent 4d89b2903b
commit f048b2eeed
2 changed files with 30 additions and 17 deletions

View File

@ -346,7 +346,7 @@ bool FloatPlacement::checkWidgets(bool readonly) const
if (readonly) {
floatTypeCO->setEnabled(false);
placementCO->setEnabled(false);
aligmentGB->setEnabled(false);
alignmentGB->setEnabled(false);
spanCB->setEnabled(false);
sidewaysCB->setEnabled(false);
} else

View File

@ -65,7 +65,7 @@
</spacer>
</item>
<item row="1" column="3">
<widget class="QGroupBox" name="aligmentGB">
<widget class="QGroupBox" name="alignmentGB">
<property name="title">
<string>Alignment of Contents</string>
</property>
@ -88,6 +88,16 @@
<property name="spacing">
<number>6</number>
</property>
<item row="4" column="0">
<widget class="QRadioButton" name="alignRightRB">
<property name="toolTip">
<string>Right-align float contents</string>
</property>
<property name="text">
<string>&amp;Right</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QRadioButton" name="alignDocDefaultRB">
<property name="toolTip">
@ -98,13 +108,13 @@
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QRadioButton" name="alignLeftRB">
<item row="0" column="0">
<widget class="QRadioButton" name="alignClassDefaultRB">
<property name="toolTip">
<string>Left-align float contents</string>
<string>Use the class' default alignment for floats, whatever it is.</string>
</property>
<property name="text">
<string>&amp;Left</string>
<string>Class &amp;Default</string>
</property>
</widget>
</item>
@ -118,25 +128,28 @@
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QRadioButton" name="alignRightRB">
<item row="2" column="0">
<widget class="QRadioButton" name="alignLeftRB">
<property name="toolTip">
<string>Right-align float contents</string>
<string>Left-align float contents</string>
</property>
<property name="text">
<string>&amp;Right</string>
<string>&amp;Left</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QRadioButton" name="alignClassDefaultRB">
<property name="toolTip">
<string>Use the class' default alignment for floats, whatever it is.</string>
<item row="2" column="1">
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="text">
<string>Class &amp;Default</string>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</widget>
</spacer>
</item>
</layout>
</widget>