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:
@ -3,7 +3,7 @@
|
||||
#include <QHBoxLayout>
|
||||
#include <QVBoxLayout>
|
||||
|
||||
#include "sessionfriendarea.h"
|
||||
#include "sessiondetailwidget.h"
|
||||
|
||||
MainWidget *MainWidget::instance = nullptr;
|
||||
|
||||
@ -197,7 +197,7 @@ void MainWidget::initRightWindow()
|
||||
|
||||
hlayout->addWidget(sessionTitleLabel);
|
||||
|
||||
QPushButton* extraBtn = new QPushButton();
|
||||
extraBtn = new QPushButton();
|
||||
extraBtn->setFixedSize(30, 30);
|
||||
extraBtn->setIconSize(QSize(30, 30));
|
||||
extraBtn->setIcon(QIcon(":/resource/image/more.png"));
|
||||
@ -232,10 +232,19 @@ void MainWidget::initSignalSlot()
|
||||
/////////////////////////////////////
|
||||
connect(userAvatar, &QPushButton::clicked, this, [=]()->void {
|
||||
SelfInfoWidget* selfInfoWidget = new SelfInfoWidget(this);
|
||||
selfInfoWidget->setStyleSheet("QDialog { background-color: rgb(255, 255, 255); }");
|
||||
selfInfoWidget->setStyleSheet("QDialog { background-color: rgb(245, 245, 245); }");
|
||||
selfInfoWidget->exec(); //弹出模态对话框
|
||||
//selfInfoWidget->show(); //弹出非模态对加框
|
||||
});
|
||||
|
||||
|
||||
/////////////////////////////////////
|
||||
// 点击右上角的更多按钮,扩展会话的详细信息
|
||||
/////////////////////////////////////
|
||||
connect(extraBtn, &QPushButton::clicked, this, [=]() {
|
||||
SessionDetailWidget* sessionDetailWidget = new SessionDetailWidget(this);
|
||||
sessionDetailWidget->exec();
|
||||
});
|
||||
}
|
||||
|
||||
void MainWidget::switchTabToSession()
|
||||
|
||||
Reference in New Issue
Block a user