summaryrefslogtreecommitdiff
path: root/src/gui/login.cpp
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-10-27 20:23:48 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-10-27 20:23:48 +0000
commit97bbe57e21a28544646da087e2a522390bf2ce5c (patch)
treea1899345f3b3928b3b0747b2429a45d08f79ae59 /src/gui/login.cpp
parentee15a808a1e0d36167f80d9f96147103ba5583de (diff)
downloadmana-97bbe57e21a28544646da087e2a522390bf2ce5c.tar.gz
mana-97bbe57e21a28544646da087e2a522390bf2ce5c.tar.bz2
mana-97bbe57e21a28544646da087e2a522390bf2ce5c.tar.xz
mana-97bbe57e21a28544646da087e2a522390bf2ce5c.zip
Improved layout handler to support trees of nested arrays. Needed for converting and fixing the trade window.
Diffstat (limited to 'src/gui/login.cpp')
-rw-r--r--src/gui/login.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/login.cpp b/src/gui/login.cpp
index f35f427a..565277a0 100644
--- a/src/gui/login.cpp
+++ b/src/gui/login.cpp
@@ -66,12 +66,10 @@ LoginDialog::LoginDialog(LoginData *loginData):
place(1, 0, mUserField, 3).setPadding(2);
place(1, 1, mPassField, 3).setPadding(2);
place(0, 2, mKeepCheck, 4);
- place(0, 3, mRegisterButton).setHAlign(Cell::LEFT);
+ place(0, 3, mRegisterButton).setHAlign(LayoutCell::LEFT);
place(2, 3, mOkButton);
place(3, 3, mCancelButton);
- getLayout().setColWidth(1, 20);
- reflowLayout();
- forgetLayout();
+ reflowLayout(250, 0);
setLocationRelativeTo(getParent());
setVisible(true);