5 Star 23 Fork 6

Acreate / gamePlanTool

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
CommShowMsgItem.h 874 Bytes
一键复制 编辑 原始数据 按行查看 历史
箜栢 提交于 2020-03-02 09:14 . 第一次提交
#pragma once
#include <QWidget>
#include <qicon.h>
#include <QLabel>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <qtextbrowser.h>
#include "CommunicationPage.h"
#include "CommShowMsgItemObjName.h"
class CommShowMsgItem : public QWidget {
Q_OBJECT;
public:
enum msgType {
SENDER
,ACCEPT
};
friend class widgetUI::CommunicationPage;
void setBorwseStatus(QTextBrowser* pTextBrowser);
void setLabelStatus(QLabel* label);
explicit CommShowMsgItem(enum msgType msgBodyType, QString& userName, QString& msg, QString& imagePath, QWidget* parent = Q_NULLPTR);
~CommShowMsgItem( );
void initMenu(QMenu& msg_meun, QMenu& user_name_menu, QMenu& user_image_menu);
private:
QLabel* luserMsg;
QVBoxLayout* mainLayout;
QLabel* userImage;
QLabel* luserName;
QSpacerItem* hSpacar;
QString imagePath;
QString msg;
QString userName;
msgType msgBodyType;
};
C++
1
https://gitee.com/ChenYLhuman/gamePlanTool.git
git@gitee.com:ChenYLhuman/gamePlanTool.git
ChenYLhuman
gamePlanTool
gamePlanTool
master

搜索帮助