From f190872a4ab94577d1d9db343c0ca7643f40eae6 Mon Sep 17 00:00:00 2001 From: me_desk Date: Thu, 19 Jul 2012 20:04:37 +0000 Subject: RegisterAccountDialog git-svn-id: svn://localhost/project_picapica/trunk@149 fb96df88-216d-11de-830c-f3023f12d8ac --- pica-client/dialogs/registeraccountdialog.cpp | 35 +++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 pica-client/dialogs/registeraccountdialog.cpp (limited to 'pica-client/dialogs/registeraccountdialog.cpp') diff --git a/pica-client/dialogs/registeraccountdialog.cpp b/pica-client/dialogs/registeraccountdialog.cpp new file mode 100644 index 0000000..b091a5f --- /dev/null +++ b/pica-client/dialogs/registeraccountdialog.cpp @@ -0,0 +1,35 @@ +#include "registeraccountdialog.h" +#include + +RegisterAccountDialog::RegisterAccountDialog(QWidget *parent) : + QDialog(parent) +{ + QVBoxLayout *layout = new QVBoxLayout(this); + + QLabel *lbNickname = new QLabel(tr("Name:")); + nickname = new QLineEdit(); + btRegister = new QPushButton(tr("Register")); + lbStatus = new QLabel(); + btOK = new QPushButton(tr("OK")); + + layout->addWidget(lbNickname); + layout->addWidget(nickname); + layout->addWidget(btRegister); + layout->addWidget(lbStatus); + layout->addWidget(btOK); + + setLayout(layout); + + connect(btOK, SIGNAL(clicked()), this, SLOT(OK())); + connect(btRegister, SIGNAL(clicked()), this, SLOT(Register())); +} + +void RegisterAccountDialog::OK() +{ + done(0); +} + +void RegisterAccountDialog::Register() +{ + +} -- cgit v1.2.1