From 518b19cbdc4037de948dd4b456885d8c6c2b9f41 Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Tue, 20 Jan 2009 23:10:53 -0700 Subject: Reflowed help dialog to use layout code. Signed-off-by: Ira Rice --- src/gui/help.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/gui/help.cpp') diff --git a/src/gui/help.cpp b/src/gui/help.cpp index 3594b9a6..2cda898a 100644 --- a/src/gui/help.cpp +++ b/src/gui/help.cpp @@ -24,6 +24,8 @@ #include "help.h" #include "scrollarea.h" +#include "widgets/layout.h" + #include "../resources/resourcemanager.h" #include "../utils/gettext.h" @@ -32,7 +34,8 @@ HelpWindow::HelpWindow(): Window(_("Help")) { setContentSize(455, 350); - setWindowName("Help"); + setWindowName(_("Help")); + setResizable(true); mBrowserBox = new BrowserBox(); mBrowserBox->setOpaque(false); @@ -50,6 +53,12 @@ HelpWindow::HelpWindow(): add(mScrollArea); add(okButton); + place(0, 0, mScrollArea, 5, 3).setPadding(3); + place(4, 3, okButton); + + Layout &layout = getLayout(); + layout.setRowHeight(0, Layout::AUTO_SET); + setLocationRelativeTo(getParent()); } -- cgit v1.2.3-70-g09d2