2015-06-04 01:04:28 +08:00
|
|
|
#include "loginscreen.h"
|
|
|
|
#include "ui_loginscreen.h"
|
|
|
|
|
|
|
|
LoginScreen::LoginScreen(QWidget *parent) :
|
|
|
|
QWidget(parent),
|
|
|
|
ui(new Ui::LoginScreen)
|
|
|
|
{
|
|
|
|
ui->setupUi(this);
|
2015-06-04 01:28:16 +08:00
|
|
|
|
|
|
|
connect(ui->newProfilePgbtn, &QPushButton::clicked, this, &LoginScreen::onNewProfilePageClicked);
|
|
|
|
connect(ui->loginPgbtn, &QPushButton::clicked, this, &LoginScreen::onLoginPageClicked);
|
|
|
|
connect(ui->createAccountButton, &QPushButton::clicked, this, &LoginScreen::onCreateNewProfile);
|
|
|
|
connect(ui->loginButton, &QPushButton::clicked, this, &LoginScreen::onLogin);
|
2015-06-04 01:04:28 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
LoginScreen::~LoginScreen()
|
|
|
|
{
|
|
|
|
delete ui;
|
|
|
|
}
|
2015-06-04 01:28:16 +08:00
|
|
|
|
|
|
|
void LoginScreen::onNewProfilePageClicked()
|
|
|
|
{
|
|
|
|
ui->stackedWidget->setCurrentIndex(0);
|
|
|
|
}
|
|
|
|
|
|
|
|
void LoginScreen::onLoginPageClicked()
|
|
|
|
{
|
|
|
|
ui->stackedWidget->setCurrentIndex(1);
|
|
|
|
}
|
|
|
|
|
|
|
|
void LoginScreen::onCreateNewProfile()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void LoginScreen::onLogin()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|