From d44bea76ea9acdbe87e01d66635ff51d904d40ce Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sun, 6 Oct 2024 15:49:24 +0200 Subject: [PATCH] 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 @@ - + Alignment of Contents @@ -88,6 +88,16 @@ 6 + + + + Right-align float contents + + + &Right + + + @@ -98,13 +108,13 @@ - - + + - Left-align float contents + Use the class' default alignment for floats, whatever it is. - &Left + Class &Default @@ -118,25 +128,28 @@ - - + + - Right-align float contents + Left-align float contents - &Right + &Left - - - - Use the class' default alignment for floats, whatever it is. + + + + Qt::Horizontal - - Class &Default + + + 40 + 20 + - +