summaryrefslogtreecommitdiff
path: root/src/gui/setup_interface.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-07-25 22:27:32 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-07-25 22:27:41 +0200
commit8331284990b8d998a7e323e6fcf3c25f2f7d60d8 (patch)
tree168cf7bdc4cc4e8d93c8072ded3c4a1246c12e64 /src/gui/setup_interface.cpp
parentf0d0f33c8fa4910040204ea3023cd08b4660f56f (diff)
downloadmana-client-8331284990b8d998a7e323e6fcf3c25f2f7d60d8.tar.gz
mana-client-8331284990b8d998a7e323e6fcf3c25f2f7d60d8.tar.bz2
mana-client-8331284990b8d998a7e323e6fcf3c25f2f7d60d8.tar.xz
mana-client-8331284990b8d998a7e323e6fcf3c25f2f7d60d8.zip
Reduced the height of the Setup window
Also removed all the hardcoded sizes of the various setup tabs. Instead, support for dynamically adjusting layout was added to the Container class. Various other places were also adapted to use the new layout support in Container.
Diffstat (limited to 'src/gui/setup_interface.cpp')
-rw-r--r--src/gui/setup_interface.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/gui/setup_interface.cpp b/src/gui/setup_interface.cpp
index 67d8d476..b35a30fe 100644
--- a/src/gui/setup_interface.cpp
+++ b/src/gui/setup_interface.cpp
@@ -33,7 +33,7 @@
#include "gui/widgets/checkbox.h"
#include "gui/widgets/label.h"
-#include "gui/widgets/layouthelper.h"
+#include "gui/widgets/layout.h"
#include "gui/widgets/listbox.h"
#include "gui/widgets/scrollarea.h"
#include "gui/widgets/slider.h"
@@ -164,9 +164,6 @@ Setup_Interface::Setup_Interface():
mFontSizeDropDown->adjustHeight();
// Do the layout
- LayoutHelper h(this);
- ContainerPlacer place = h.getPlacer(0, 0);
-
place(0, 0, mVisibleNamesCheckBox, 3);
place(3, 0, mNameCheckBox, 3);
@@ -193,8 +190,6 @@ Setup_Interface::Setup_Interface():
place(0, 9, mSpeechSlider, 2);
place(2, 9, speechLabel, 2);
place(4, 9, mSpeechLabel, 2).setPadding(2);
-
- setDimension(gcn::Rectangle(0, 0, 370, 300));
}
Setup_Interface::~Setup_Interface()