diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-10-27 20:23:48 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-10-27 20:23:48 +0000 |
commit | 97bbe57e21a28544646da087e2a522390bf2ce5c (patch) | |
tree | a1899345f3b3928b3b0747b2429a45d08f79ae59 /src/gui/serverdialog.cpp | |
parent | ee15a808a1e0d36167f80d9f96147103ba5583de (diff) | |
download | mana-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/serverdialog.cpp')
-rw-r--r-- | src/gui/serverdialog.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/gui/serverdialog.cpp b/src/gui/serverdialog.cpp index 70ed7fe8..00490d31 100644 --- a/src/gui/serverdialog.cpp +++ b/src/gui/serverdialog.cpp @@ -120,16 +120,12 @@ ServerDialog::ServerDialog(LoginData *loginData): place(0, 0, serverLabel); place(0, 1, portLabel); - place(1, 0, mServerNameField, 3).setPadding(3); - place(1, 1, mPortField, 3).setPadding(3); - place(0, 2, mMostUsedServersDropDown, 4).setPadding(3); + place(1, 0, mServerNameField, 3).setPadding(2); + place(1, 1, mPortField, 3).setPadding(2); + place(0, 2, mMostUsedServersDropDown, 4).setPadding(2); place(2, 3, mOkButton); place(3, 3, mCancelButton); - Layout &layout = getLayout(); - layout.setWidth(250); - layout.setColWidth(1, Layout::FILL); - reflowLayout(); - forgetLayout(); + reflowLayout(250, 0); setLocationRelativeTo(getParent()); setVisible(true); |