mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -04:00
Fixed navigate to channel post when clicking a channel post link.
Fixed navigate to forum message when clicking a forum message link. Fixed copy of forum message link to clipboard git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7640 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
6c2cc75f2b
commit
cfd6a7b8b5
15 changed files with 129 additions and 45 deletions
|
@ -79,7 +79,6 @@ QString GxsChannelDialog::text(TextType type)
|
|||
case TEXT_TODO:
|
||||
return "<b>Open points:</b><ul>"
|
||||
"<li>Restore channel keys"
|
||||
"<li>Navigate channel link"
|
||||
"</ul>";
|
||||
|
||||
case TEXT_YOUR_GROUP:
|
||||
|
|
|
@ -394,6 +394,16 @@ void GxsChannelPostsWidget::clearPosts()
|
|||
ui->fileWidget->clear();
|
||||
}
|
||||
|
||||
bool GxsChannelPostsWidget::navigatePostItem(const RsGxsMessageId &msgId)
|
||||
{
|
||||
FeedItem *feedItem = ui->feedWidget->findGxsFeedItem(groupId(), msgId);
|
||||
if (!feedItem) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return ui->feedWidget->scrollTo(feedItem, true);
|
||||
}
|
||||
|
||||
void GxsChannelPostsWidget::subscribeGroup(bool subscribe)
|
||||
{
|
||||
if (groupId().isNull()) {
|
||||
|
|
|
@ -73,6 +73,7 @@ protected:
|
|||
virtual void clearPosts();
|
||||
virtual bool useThread() { return mUseThread; }
|
||||
virtual void fillThreadCreatePost(const QVariant &post, bool related, int current, int count);
|
||||
virtual bool navigatePostItem(const RsGxsMessageId& msgId);
|
||||
|
||||
private slots:
|
||||
void createMsg();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue