mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-18 03:19:30 -04:00
FeedReader:
- Fixed enabled state of read all button - Fixed copy links from context menu git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6091 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
97d0348f23
commit
b433d15536
2 changed files with 5 additions and 3 deletions
|
@ -224,8 +224,10 @@ void FeedReaderMessageWidget::setFeedId(const std::string &feedId)
|
||||||
ui->msgTreeWidget->setPlaceholderText("");
|
ui->msgTreeWidget->setPlaceholderText("");
|
||||||
} else {
|
} else {
|
||||||
if (mFeedInfo.flag.forum) {
|
if (mFeedInfo.flag.forum) {
|
||||||
|
ui->msgReadAllButton->setEnabled(false);
|
||||||
ui->msgTreeWidget->setPlaceholderText(tr("The messages will be added to the forum"));
|
ui->msgTreeWidget->setPlaceholderText(tr("The messages will be added to the forum"));
|
||||||
} else {
|
} else {
|
||||||
|
ui->msgReadAllButton->setEnabled(true);
|
||||||
ui->msgTreeWidget->setPlaceholderText("");
|
ui->msgTreeWidget->setPlaceholderText("");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -310,7 +312,7 @@ void FeedReaderMessageWidget::msgTreeCustomPopupMenu(QPoint /*point*/)
|
||||||
|
|
||||||
contextMnu.addSeparator();
|
contextMnu.addSeparator();
|
||||||
|
|
||||||
action = contextMnu.addAction(QIcon(""), tr("Copy link"), this, SLOT(copyLinskMsg()));
|
action = contextMnu.addAction(QIcon(""), tr("Copy link"), this, SLOT(copySelectedLinksMsg()));
|
||||||
action->setEnabled(!selectedItems.empty());
|
action->setEnabled(!selectedItems.empty());
|
||||||
|
|
||||||
action = contextMnu.addAction(QIcon(""), tr("Remove"), this, SLOT(removeMsg()));
|
action = contextMnu.addAction(QIcon(""), tr("Remove"), this, SLOT(removeMsg()));
|
||||||
|
@ -727,7 +729,7 @@ void FeedReaderMessageWidget::markAllAsReadMsg()
|
||||||
setMsgAsReadUnread(items, true);
|
setMsgAsReadUnread(items, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void FeedReaderMessageWidget::copyLinksMsg()
|
void FeedReaderMessageWidget::copySelectedLinksMsg()
|
||||||
{
|
{
|
||||||
QString links;
|
QString links;
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@ private slots:
|
||||||
void markAsReadMsg();
|
void markAsReadMsg();
|
||||||
void markAsUnreadMsg();
|
void markAsUnreadMsg();
|
||||||
void markAllAsReadMsg();
|
void markAllAsReadMsg();
|
||||||
void copyLinksMsg();
|
void copySelectedLinksMsg();
|
||||||
void removeMsg();
|
void removeMsg();
|
||||||
void processFeed();
|
void processFeed();
|
||||||
void openLinkMsg();
|
void openLinkMsg();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue