mirror of
https://gitee.com/Zhaoxin59/my-chat_-client.git
synced 2026-02-14 00:51:48 +08:00
refactor: 大规模调整项目目录结构,将ChatClient和ChatServer整合为Monorepo结构,并分为两个独立文件夹:chatclient/ 和 chatserver/。更新了ChatClient的CMakeLists.txt配置以适配新结构。
This commit is contained in:
38
ChatClient/include/loginwidget.h
Normal file
38
ChatClient/include/loginwidget.h
Normal file
@ -0,0 +1,38 @@
|
||||
#pragma once
|
||||
|
||||
#include <QWidget>
|
||||
#include <QGridLayout>
|
||||
#include <QLabel>
|
||||
#include <QLineEdit>
|
||||
#include <QPushButton>
|
||||
|
||||
#include "phoneloginwidget.h"
|
||||
#include "verifycodewidget.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