Open own group files from the conversation header
This commit is contained in:
1 parent
5ed813fe06
commit
8f908c320a
3 files changed
+16
-1
No files matched your search
@@ -386,6 +386,18 @@ MessageList::MessageList(DbManager* db, AudioRecorder* recorder, QWidget *parent
|
||||
m_talkingLabel->hide();
|
||||
hl->addWidget(m_talkingLabel);
|
||||
|
||||
m_ownFilesButton = new QPushButton(header);
|
||||
m_ownFilesButton->setObjectName("ownFilesButton");
|
||||
m_ownFilesButton->setIcon(style()->standardIcon(QStyle::SP_DirOpenIcon));
|
||||
m_ownFilesButton->setIconSize(QSize(24, 24));
|
||||
m_ownFilesButton->setFixedSize(34, 30);
|
||||
m_ownFilesButton->setCursor(Qt::PointingHandCursor);
|
||||
m_ownFilesButton->setToolTip(QCoreApplication::translate("ChatGui", "My files in the selected group"));
|
||||
m_ownFilesButton->setAccessibleName(m_ownFilesButton->toolTip());
|
||||
m_ownFilesButton->hide();
|
||||
hl->addWidget(m_ownFilesButton);
|
||||
connect(m_ownFilesButton, &QPushButton::clicked, this, [this] { emit ownFilesRequested(m_currentChannelId); });
|
||||
|
||||
m_inviteBtn = new QPushButton(QStringLiteral("+"), header);
|
||||
m_inviteBtn->setAccessibleName(QCoreApplication::translate("ChatGui", "Invite to group"));
|
||||
m_inviteBtn->setToolTip(QCoreApplication::translate("ChatGui", "Invite to group"));
|
||||
@@ -703,6 +715,7 @@ void MessageList::loadChannel(const QString& channelId) {
|
||||
m_avatarCache.clear();
|
||||
if (m_currentChannelId != channelId) { m_feedback.clear(); m_pendingPoll.clear(); }
|
||||
m_currentChannelId = channelId;
|
||||
m_ownFilesButton->setVisible(channelId.toULongLong() != 0);
|
||||
m_pollBtn->setVisible(!isDmChannel(channelId));
|
||||
clearDmCallRoute();
|
||||
m_callBtn->setVisible(isDmChannel(channelId));
|
||||
|
||||
Reference in new issue
Block a user