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:
46
ChatClient/include/userinfowidget.h
Normal file
46
ChatClient/include/userinfowidget.h
Normal file
@ -0,0 +1,46 @@
|
||||
#pragma once
|
||||
|
||||
#include <QDialog>
|
||||
#include <QWidget>
|
||||
#include <QPushButton>
|
||||
#include <QLabel>
|
||||
#include <QGridLayout>
|
||||
#include <QMessageBox>
|
||||
|
||||
#include "mainwidget.h"
|
||||
#include "model/data.h"
|
||||
#include "model/datacenter.h"
|
||||
|
||||
//using model::Message;
|
||||
using namespace model;
|
||||
|
||||
class UserInfoWidget : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
UserInfoWidget(const UserInfo& userInfo, QWidget *parent);
|
||||
void initSingleSlot();
|
||||
|
||||
void clickDeleteFriendBtn();
|
||||
void clickApplyBtn();
|
||||
|
||||
private:
|
||||
////保存对应的Message对象,暂时先放在这里
|
||||
//Message message;
|
||||
const UserInfo& userInfo;
|
||||
|
||||
QPushButton* avatarBtn;
|
||||
QLabel* idTag;
|
||||
QLabel* idLabel;
|
||||
|
||||
QLabel* nameTag;
|
||||
QLabel* nameLabel;
|
||||
|
||||
QLabel* phoneTag;
|
||||
QLabel* phoneLabel;
|
||||
|
||||
QPushButton* applyBtn;
|
||||
QPushButton* sendMessageBtn;
|
||||
QPushButton* deleteFriendBtn;
|
||||
};
|
||||
Reference in New Issue
Block a user