X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;ds=sidebyside;f=Client%2Fregistration.cpp;h=e767b0168c4ff17fff27cf0ae39bdaf2b0030f4d;hb=d359e4d19b1a1cb68b8f602f243c68739e09a04c;hp=fefeed8b4c28d0455099baff70ee18465fe04a9e;hpb=2c79d9d6a47a811ca0f399b975f43fd28addaafe;p=speedfreak diff --git a/Client/registration.cpp b/Client/registration.cpp index fefeed8..e767b01 100644 --- a/Client/registration.cpp +++ b/Client/registration.cpp @@ -1,3 +1,12 @@ +/* + * Registration class to registrate username for user + * + * @author Olavi Pulkkinen + * @author + * @copyright (c) 2010 Speed Freak team + * @license http://opensource.org/licenses/gpl-license.php GNU Public License + */ + #include "registration.h" #include "ui_registration.h" #include @@ -8,6 +17,11 @@ Registration::Registration(QWidget *parent) : { ui->setupUi(this); this->setWindowTitle("Registration for Speed Freak server"); + + //Let`s not type it again + ui->newUsernameLineEdit->setText("user123"); + ui->newPasswordLineEdit->setText("salainen"); + ui->eMailLineEdit->setText("user123@emaili.fi"); } Registration::~Registration() @@ -29,13 +43,6 @@ void Registration::changeEvent(QEvent *e) void Registration::on_registratePushButton_clicked() { - //Let`s not type it again - ui->newUsernameLineEdit->setText("user123"); - ui->newPasswordLineEdit->setText("salainen"); - ui->eMailLineEdit->setText("user123@emaili.fi"); - - for(int i = 0; i < 3000; i++); - // Send username, password and email to SpeedFreak server this->username = ui->newUsernameLineEdit->text(); this->password = ui->newPasswordLineEdit->text();