mirror of
https://gitee.com/Zhaoxin59/my-chat_-client.git
synced 2026-02-14 17:11:48 +08:00
Complete the basic UI
This commit is contained in:
40
phoneloginwidget.h
Normal file
40
phoneloginwidget.h
Normal file
@ -0,0 +1,40 @@
|
||||
#pragma once
|
||||
|
||||
#include <QWidget>
|
||||
#include <QGridLayout>
|
||||
#include <QLabel>
|
||||
#include <QLineEdit>
|
||||
#include <QPushButton>
|
||||
|
||||
#include "loginwidget.h"
|
||||
|
||||
class PhoneLoginWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
PhoneLoginWidget(QWidget *parent);
|
||||
|
||||
//void sendVerifyCode();
|
||||
//void sendVerifyCodeDone();
|
||||
|
||||
//void clickSubmitBtn();
|
||||
//void phoneLoginDone(bool ok, const QString& reason);
|
||||
//void phoneRegisterDone(bool ok, const QString& reason);
|
||||
|
||||
//void countDown();
|
||||
//void switchMode();
|
||||
|
||||
private:
|
||||
QLineEdit* phoneEdit;
|
||||
QPushButton* sendVerifyCodeBtn;
|
||||
QLineEdit* verifyCodeEdit;
|
||||
QLabel* titleLabel;
|
||||
QPushButton* submitBtn;
|
||||
QPushButton* switchModeBtn;
|
||||
|
||||
bool isLoginMode = true;
|
||||
QString currentPhone = ""; // 记录是使用哪个手机号发送的验证码
|
||||
QTimer* timer;
|
||||
int leftTime = 30;
|
||||
};
|
||||
Reference in New Issue
Block a user