mirror of
https://gitee.com/Zhaoxin59/my-chat_-client.git
synced 2026-02-14 00:51:48 +08:00
add recent session message
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
|
||||
#include "debug.h"
|
||||
#include "model/data.h"
|
||||
#include "mainwidget.h"
|
||||
|
||||
SessionFriendArea::SessionFriendArea(QWidget *parent)
|
||||
: QScrollArea {parent}
|
||||
@ -269,6 +270,10 @@ void SessionItem::active()
|
||||
{
|
||||
//点击之后,要加载会话历史消息的列表
|
||||
LOG() << "click SessionItem... chatSessionId: " << chatSessionId;
|
||||
|
||||
//加载会话历史消息,会涉及到当前内存数据的操作,又会涉及到网络通信,以及UI界面的变更
|
||||
MainWidget* mainWidget = MainWidget::getInstance();
|
||||
mainWidget->loadRecentMessage(chatSessionId);
|
||||
}
|
||||
|
||||
////////////////////////////////////////
|
||||
@ -302,8 +307,10 @@ ApplyItem::ApplyItem(QWidget *owner, const QString &userId, const QIcon &avatar,
|
||||
|
||||
//创建两个按钮
|
||||
QPushButton* acceptBtn = new QPushButton();
|
||||
acceptBtn->setStyleSheet("QPushButton {color: rgb(0, 0, 0); } ");
|
||||
acceptBtn->setText("同意");
|
||||
QPushButton* rejectBtn = new QPushButton();
|
||||
rejectBtn->setStyleSheet("QPushButton {color: rgb(0, 0, 0); } ");
|
||||
rejectBtn->setText("拒绝");
|
||||
|
||||
//添加到布局管理器中
|
||||
|
||||
Reference in New Issue
Block a user