diff options
Diffstat (limited to 'pica-client/dialogs/registeraccountdialog.cpp')
| -rw-r--r-- | pica-client/dialogs/registeraccountdialog.cpp | 35 |
1 files changed, 35 insertions, 0 deletions
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 <QVBoxLayout> + +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() +{ + +} |
