diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-03-09 02:02:57 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-03-09 02:02:57 +0000 |
commit | 81cf85e9ec1d37dc6e8dd9883f42bb50dace9135 (patch) | |
tree | 585415bbb85c48fc8fb83cd5f54e1cfe8e988ee7 /src/gui/char_server.cpp | |
parent | 78ab0ec914d3c5a97f162905afb3dede53f8b9ed (diff) | |
download | mana-81cf85e9ec1d37dc6e8dd9883f42bb50dace9135.tar.gz mana-81cf85e9ec1d37dc6e8dd9883f42bb50dace9135.tar.bz2 mana-81cf85e9ec1d37dc6e8dd9883f42bb50dace9135.tar.xz mana-81cf85e9ec1d37dc6e8dd9883f42bb50dace9135.zip |
Made the Button ctor accept eventId and action listener.
Diffstat (limited to 'src/gui/char_server.cpp')
-rw-r--r-- | src/gui/char_server.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/gui/char_server.cpp b/src/gui/char_server.cpp index 876bcd0e..37ef0462 100644 --- a/src/gui/char_server.cpp +++ b/src/gui/char_server.cpp @@ -54,8 +54,8 @@ ServerSelectDialog::ServerSelectDialog(LoginData *loginData): serverListModel = new ServerListModel(); serverList = new ListBox(serverListModel); scrollArea = new ScrollArea(serverList); - okButton = new Button("OK"); - cancelButton = new Button("Cancel"); + okButton = new Button("OK", "ok", this); + cancelButton = new Button("Cancel", "cancel", this); setContentSize(200, 100); @@ -72,12 +72,8 @@ ServerSelectDialog::ServerSelectDialog(LoginData *loginData): scrollArea->getBorderSize())); serverList->setEventId("ok"); - okButton->setEventId("ok"); - cancelButton->setEventId("cancel"); //serverList->addActionListener(this); - okButton->addActionListener(this); - cancelButton->addActionListener(this); add(scrollArea); add(okButton); |