commit f048b2eeed98376f10e1ba68ce5ae2ad19d578ea Author: Juergen Spitzmueller <sp...@lyx.org> Date: Sun Oct 6 15:49:24 2024 +0200
Fix group box width in Document > Settings > Float Settings Also fix typo in widget name --- src/frontends/qt/FloatPlacement.cpp | 2 +- src/frontends/qt/ui/FloatPlacementUi.ui | 45 +++++++++++++++++++++------------ 2 files changed, 30 insertions(+), 17 deletions(-) diff --git a/src/frontends/qt/FloatPlacement.cpp b/src/frontends/qt/FloatPlacement.cpp index c11d457827..aa0548170f 100644 --- a/src/frontends/qt/FloatPlacement.cpp +++ b/src/frontends/qt/FloatPlacement.cpp @@ -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 diff --git a/src/frontends/qt/ui/FloatPlacementUi.ui b/src/frontends/qt/ui/FloatPlacementUi.ui index e1790da2d6..30bce337ec 100644 --- a/src/frontends/qt/ui/FloatPlacementUi.ui +++ b/src/frontends/qt/ui/FloatPlacementUi.ui @@ -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>&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>&Left</string> + <string>Class &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>&Right</string> + <string>&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 &Default</string> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> </property> - </widget> + </spacer> </item> </layout> </widget> -- lyx-cvs mailing list lyx-cvs@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-cvs