mirror of
https://gitee.com/Zhaoxin59/my-chat_-client.git
synced 2026-02-14 09:01:50 +08:00
Complete the basic UI
This commit is contained in:
37
loginwidget.h
Normal file
37
loginwidget.h
Normal file
@ -0,0 +1,37 @@
|
||||
#pragma once
|
||||
|
||||
#include <QWidget>
|
||||
#include <QGridLayout>
|
||||
#include <QLabel>
|
||||
#include <QLineEdit>
|
||||
#include <QPushButton>
|
||||
|
||||
#include "phoneloginwidget.h"
|
||||
#include "toast.h"
|
||||
|
||||
class LoginWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit LoginWidget(QWidget *parent);
|
||||
|
||||
/*void switchMode();
|
||||
|
||||
void clickSubmitBtn();
|
||||
void userLoginDone(bool ok, const QString& reason);
|
||||
void userRegisterDone(bool ok, const QString& reason);*/
|
||||
|
||||
private:
|
||||
bool isLoginMode = true;
|
||||
QLabel* titleLabel;
|
||||
|
||||
QLineEdit* usernameEdit;
|
||||
QLineEdit* passwordEdit;
|
||||
QLineEdit* verifyCodeEdit;
|
||||
//VerifyCodeWidget* verifyCodeWidget;
|
||||
|
||||
QPushButton* submitBtn;
|
||||
QPushButton* phoneModeBtn;
|
||||
QPushButton* switchModeBtn;
|
||||
};
|
||||
Reference in New Issue
Block a user