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:
51
ChatClient/include/sessiondetailwidget.h
Normal file
51
ChatClient/include/sessiondetailwidget.h
Normal file
@ -0,0 +1,51 @@
|
||||
#pragma once
|
||||
|
||||
#include <QDialog>
|
||||
#include <QApplication>
|
||||
#include <QMainWindow>
|
||||
#include <QPushButton>
|
||||
#include <QWidget>
|
||||
#include <QLabel>
|
||||
#include <QVBoxLayout>
|
||||
#include <QFontMetrics>
|
||||
#include <QMessageBox>
|
||||
|
||||
#include "debug.h"
|
||||
#include "model/data.h"
|
||||
#include "choosefrienddialog.h"
|
||||
|
||||
using namespace model;
|
||||
|
||||
///////////////////////////////////////
|
||||
///表示 一个头像 + 一个名字的组合控件
|
||||
///////////////////////////////////////
|
||||
class AvatarItem : public QWidget {
|
||||
public:
|
||||
AvatarItem(const QIcon& avatar, const QString& name);
|
||||
|
||||
QPushButton* getAvatar() {
|
||||
return avatarBtn;
|
||||
}
|
||||
|
||||
private:
|
||||
QPushButton* avatarBtn;
|
||||
QLabel* nameLabel;
|
||||
};
|
||||
|
||||
///////////////////////////////////////
|
||||
///表示“单聊会话详情”窗口
|
||||
///////////////////////////////////////
|
||||
class SessionDetailWidget : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
SessionDetailWidget(QWidget *parent, const UserInfo& userInfo);
|
||||
|
||||
void clickDeleteFriendBtn();
|
||||
|
||||
private:
|
||||
UserInfo userInfo;
|
||||
|
||||
QPushButton* deleteFriendBtn;
|
||||
};
|
||||
Reference in New Issue
Block a user