summaryrefslogtreecommitdiff
path: root/src/gui/register.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-03-09 02:02:57 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-03-09 02:02:57 +0000
commit81cf85e9ec1d37dc6e8dd9883f42bb50dace9135 (patch)
tree585415bbb85c48fc8fb83cd5f54e1cfe8e988ee7 /src/gui/register.cpp
parent78ab0ec914d3c5a97f162905afb3dede53f8b9ed (diff)
downloadmana-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/register.cpp')
-rw-r--r--src/gui/register.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/gui/register.cpp b/src/gui/register.cpp
index a22d1f73..b86375d4 100644
--- a/src/gui/register.cpp
+++ b/src/gui/register.cpp
@@ -56,8 +56,8 @@ RegisterDialog::RegisterDialog(LoginData *loginData):
maleButton->setEnabled(false);
femaleButton = new RadioButton("Female", "sex", false);
femaleButton->setEnabled(false);
- registerButton = new Button("Register");
- cancelButton = new Button("Cancel");
+ registerButton = new Button("Register", "register", this);
+ cancelButton = new Button("Cancel", "cancel", this);
int width = 200;
int height = 150;
@@ -94,16 +94,11 @@ RegisterDialog::RegisterDialog(LoginData *loginData):
passwordField->setEventId("register");
confirmField->setEventId("register");
serverField->setEventId("register");*/
- registerButton->setEventId("register");
- cancelButton->setEventId("cancel");
-
/*userField->addActionListener(this);
passwordField->addActionListener(this);
confirmField->addActionListener(this);
serverField->addActionListener(this);*/
- registerButton->addActionListener(this);
- cancelButton->addActionListener(this);
add(userLabel);
add(passwordLabel);