From 00c81cb95975e9816754b6588ae95aed9a119000 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Mon, 23 Aug 2010 14:24:58 +0000 Subject: [PATCH] Remove an useless box and move the radio buttons near the setting they alter. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38319 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/preferences/locale/FormatSettingsView.cpp | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/src/preferences/locale/FormatSettingsView.cpp b/src/preferences/locale/FormatSettingsView.cpp index c59ddde343..e0e7a9d922 100644 --- a/src/preferences/locale/FormatSettingsView.cpp +++ b/src/preferences/locale/FormatSettingsView.cpp @@ -231,21 +231,12 @@ FormatView::FormatView(const BLocale& locale) BCheckBox* currencyLeadingZero = new BCheckBox("", B_TRANSLATE("Leading 0"), new BMessage(kSettingsContentsModified)); - BBox* formatBox = new BBox("Symbol position"); - formatBox->SetLabel(B_TRANSLATE("Symbol position")); - BRadioButton* beforeRadioButton = new BRadioButton("", B_TRANSLATE("Before"), new BMessage(kSettingsContentsModified)); BRadioButton* afterRadioButton = new BRadioButton("", B_TRANSLATE("After"), new BMessage(kSettingsContentsModified)); - formatBox->AddChild(BGroupLayoutBuilder(B_VERTICAL) - .Add(beforeRadioButton) - .Add(afterRadioButton) - .SetInsets(spacing, 0, spacing, 0) - .TopView()); - _UpdateExamples(); _ParseDateFormat(); @@ -327,13 +318,14 @@ FormatView::FormatView(const BLocale& locale) fCurrencyBox->AddChild(BLayoutBuilder::Group<>(B_VERTICAL, spacing / 2) .SetInsets(spacing, spacing, spacing, spacing) .Add(currencySymbol) + .AddGroup(B_HORIZONTAL, spacing) + .AddGlue() + .Add(beforeRadioButton) + .Add(afterRadioButton) + .End() .Add(currencyNegative) .Add(currencyDecimal) .Add(currencyLeadingZero) - .AddGroup(B_HORIZONTAL, spacing) - .Add(formatBox) - .AddGlue() - .End() .View());