QTfrontend/ui/dialog/input_password.cpp
changeset 8434 4821897a0f10
parent 8364 fbc9bcc6c39d
child 8444 75db7bb8dce8
child 8824 fe9eacd390f2
equal deleted inserted replaced
8432:f2d57e987ba9 8434:4821897a0f10
    26 #include "input_password.h"
    26 #include "input_password.h"
    27 
    27 
    28 HWPasswordDialog::HWPasswordDialog(QWidget* parent) : QDialog(parent)
    28 HWPasswordDialog::HWPasswordDialog(QWidget* parent) : QDialog(parent)
    29 {
    29 {
    30     setWindowTitle(tr("Login"));
    30     setWindowTitle(tr("Login"));
    31     
    31 
    32     QString titleLabelText = "To connect to the server, please log in.\n\nIf you don't have an account on www.hedgewars.org,\njust enter your nickname.";
    32     QString titleLabelText = "To connect to the server, please log in.\n\nIf you don't have an account on www.hedgewars.org,\njust enter your nickname.";
    33     QString nickLabelText = "Nickname:";
    33     QString nickLabelText = "Nickname:";
    34     QString passLabelText = "Password:";
    34     QString passLabelText = "Password:";
    35 
    35 
    36     QGridLayout * layout = new QGridLayout(this);
    36     QGridLayout * layout = new QGridLayout(this);
    37 
    37 
    38     QLabel * titleLabel = new QLabel(this);
    38     QLabel * titleLabel = new QLabel(this);
    39     titleLabel->setText(titleLabelText);
    39     titleLabel->setText(titleLabelText);
    40     layout->addWidget(titleLabel, 0, 0);
    40     layout->addWidget(titleLabel, 0, 0);
    41     
    41 
    42     QLabel * nickLabel = new QLabel(this);
    42     QLabel * nickLabel = new QLabel(this);
    43     nickLabel->setText(nickLabelText);
    43     nickLabel->setText(nickLabelText);
    44     layout->addWidget(nickLabel, 1, 0);
    44     layout->addWidget(nickLabel, 1, 0);
    45     
    45 
    46     leNickname = new QLineEdit(this);
    46     leNickname = new QLineEdit(this);
    47     leNickname->setEchoMode(QLineEdit::Normal);
    47     leNickname->setEchoMode(QLineEdit::Normal);
    48     layout->addWidget(leNickname, 2, 0);
    48     layout->addWidget(leNickname, 2, 0);
    49     
    49 
    50     QLabel * passLabel = new QLabel(this);
    50     QLabel * passLabel = new QLabel(this);
    51     passLabel->setText(passLabelText);
    51     passLabel->setText(passLabelText);
    52     layout->addWidget(passLabel, 3, 0);
    52     layout->addWidget(passLabel, 3, 0);
    53 
    53 
    54     lePassword = new QLineEdit(this);
    54     lePassword = new QLineEdit(this);