mirror of
https://gitee.com/Zhaoxin59/my-chat_-client.git
synced 2026-02-13 16:41:48 +08:00
69 lines
1.5 KiB
C++
69 lines
1.5 KiB
C++
#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;
|
|
};
|