diff options
author | Ira Rice <irarice@gmail.com> | 2009-01-20 23:10:53 -0700 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-01-20 23:10:53 -0700 |
commit | 518b19cbdc4037de948dd4b456885d8c6c2b9f41 (patch) | |
tree | 0450947e0e603864dcf64946b684abfd34874156 /src/gui/help.cpp | |
parent | 8b88dffb8222bb4c59d09e11c00b1046f93d51fe (diff) | |
download | mana-518b19cbdc4037de948dd4b456885d8c6c2b9f41.tar.gz mana-518b19cbdc4037de948dd4b456885d8c6c2b9f41.tar.bz2 mana-518b19cbdc4037de948dd4b456885d8c6c2b9f41.tar.xz mana-518b19cbdc4037de948dd4b456885d8c6c2b9f41.zip |
Reflowed help dialog to use layout code.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/help.cpp')
-rw-r--r-- | src/gui/help.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
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()); } |