mirror of
https://gitee.com/Zhaoxin59/my-chat_-client.git
synced 2026-02-14 00:51:48 +08:00
update winodws
This commit is contained in:
44
sessiondetailwidget.h
Normal file
44
sessiondetailwidget.h
Normal file
@ -0,0 +1,44 @@
|
||||
#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"
|
||||
|
||||
using namespace model;
|
||||
|
||||
///////////////////////////////////////
|
||||
///表示 一个头像 + 一个名字的组合控件
|
||||
///////////////////////////////////////
|
||||
class AvatarItem : public QWidget {
|
||||
public:
|
||||
AvatarItem(const QIcon& avatar, const QString& name);
|
||||
|
||||
private:
|
||||
QPushButton* avatarBtn;
|
||||
QLabel* nameLabel;
|
||||
};
|
||||
|
||||
///////////////////////////////////////
|
||||
///表示“单聊会话详情”窗口
|
||||
///////////////////////////////////////
|
||||
class SessionDetailWidget : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
SessionDetailWidget(QWidget *parent);
|
||||
|
||||
private:
|
||||
/*UserInfo userInfo;*/
|
||||
|
||||
QPushButton* deleteFriendBtn;
|
||||
};
|
||||
Reference in New Issue
Block a user