|
|
|
@ -386,6 +386,18 @@ MessageList::MessageList(DbManager* db, AudioRecorder* recorder, QWidget *parent |
|
|
|
m_talkingLabel->hide(); |
|
|
|
m_talkingLabel->hide(); |
|
|
|
hl->addWidget(m_talkingLabel); |
|
|
|
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 = new QPushButton(QStringLiteral("+"), header); |
|
|
|
m_inviteBtn->setAccessibleName(QCoreApplication::translate("ChatGui", "Invite to group")); |
|
|
|
m_inviteBtn->setAccessibleName(QCoreApplication::translate("ChatGui", "Invite to group")); |
|
|
|
m_inviteBtn->setToolTip(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(); |
|
|
|
m_avatarCache.clear(); |
|
|
|
if (m_currentChannelId != channelId) { m_feedback.clear(); m_pendingPoll.clear(); } |
|
|
|
if (m_currentChannelId != channelId) { m_feedback.clear(); m_pendingPoll.clear(); } |
|
|
|
m_currentChannelId = channelId; |
|
|
|
m_currentChannelId = channelId; |
|
|
|
|
|
|
|
m_ownFilesButton->setVisible(channelId.toULongLong() != 0); |
|
|
|
m_pollBtn->setVisible(!isDmChannel(channelId)); |
|
|
|
m_pollBtn->setVisible(!isDmChannel(channelId)); |
|
|
|
clearDmCallRoute(); |
|
|
|
clearDmCallRoute(); |
|
|
|
m_callBtn->setVisible(isDmChannel(channelId)); |
|
|
|
m_callBtn->setVisible(isDmChannel(channelId)); |
|
|
|
|