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:
68
ChatClient/include/selfinfowidget.h
Normal file
68
ChatClient/include/selfinfowidget.h
Normal file
@ -0,0 +1,68 @@
|
||||
#pragma once
|
||||
|
||||
#include <QDialog>
|
||||
#include <QWidget>
|
||||
#include <QLabel>
|
||||
#include <qlineedit.h>
|
||||
#include <QPushButton>
|
||||
#include <QCursor>
|
||||
#include <QGridLayout>
|
||||
#include <QTimer>
|
||||
#include <QFileDialog>
|
||||
#include "debug.h"
|
||||
#include "toast.h"
|
||||
|
||||
class SelfInfoWidget : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
SelfInfoWidget(QWidget *parent);
|
||||
//~SelfInfoWidget();
|
||||
|
||||
void initSingnalSlots();
|
||||
|
||||
void clickNameSubmitBtn();
|
||||
void clickNameSubmitBtnDone();
|
||||
|
||||
void clickDescSubmitBtn();
|
||||
void clickDescSubmitBtnDone();
|
||||
void clickGetVerifyCodeBtn();
|
||||
void clickPhoneSubmitBtn();
|
||||
void clickPhoneSubmitBtnDone();
|
||||
void clickAvatarBtn();
|
||||
void clickAvatarBtnDone();
|
||||
|
||||
private:
|
||||
QGridLayout* layout;
|
||||
|
||||
QPushButton* avatarBtn;
|
||||
QLabel* idTag; //序号标签
|
||||
QLabel* idLabel; //序号
|
||||
|
||||
QLabel* nameTag;//昵称标签
|
||||
QLabel* nameLabel;//名字
|
||||
QLineEdit* nameEdit;//编辑昵称
|
||||
QPushButton* nameModifyBtn;//修改昵称
|
||||
QPushButton* nameSubmitBtn;//提交修改
|
||||
|
||||
QLabel* descTag;//签名标签
|
||||
QLabel* descLabel;//签名
|
||||
QLineEdit* descEdit;//编辑签名
|
||||
QPushButton* descModifyBtn;//修改签名
|
||||
QPushButton* descSubmitBtn;//提交修改
|
||||
|
||||
QLabel* phoneTag;//电话标签
|
||||
QLabel* phoneLabel;//电话号码
|
||||
QLineEdit* phoneEdit;//编辑电话
|
||||
QPushButton* phoneModifyBtn;//修改电话
|
||||
QPushButton* phoneSubmitBtn;//提交修改
|
||||
|
||||
QLabel* verifyCodeTag;//显示验证码
|
||||
QLineEdit* verifyCodeEdit;//输入验证码
|
||||
QPushButton* getVerifyCodeBtn;//获取验证码按钮
|
||||
|
||||
//要修改新的手机号码
|
||||
QString emailToChange;
|
||||
int leftTime = 30;
|
||||
};
|
||||
Reference in New Issue
Block a user