Files
MyChat_Client/userinfowidget.h
2025-07-30 11:38:07 +08:00

44 lines
757 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#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();
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;
};