summaryrefslogtreecommitdiffstats
path: root/pica-client/dialogs/registeraccountdialog.cpp
blob: b091a5fcd2c4d6090785e6b64eeaa5aa8d36f5a5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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()
{

}