mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-07 08:35:16 -04:00
make interactions on BoardPostWidget to mark the post as read
This commit is contained in:
parent
4fd7f455a1
commit
c30c7a4dfe
5 changed files with 35 additions and 12 deletions
|
@ -191,18 +191,14 @@ void BoardPostDisplayWidgetBase::setup()
|
|||
|
||||
readButton()->setChecked(false);
|
||||
|
||||
// voteUpButton()->setIconSize(QSize(S*1.5,S*1.5));
|
||||
// voteDownButton()->setIconSize(QSize(S*1.5,S*1.5));
|
||||
// commentButton()->setIconSize(QSize(S*1.5,S*1.5));
|
||||
// readButton()->setIconSize(QSize(S*1.5,S*1.5));
|
||||
// shareButton()->setIconSize(QSize(S*1.5,S*1.5));
|
||||
|
||||
QMenu *menu = new QMenu();
|
||||
menu->addAction(CopyLinkAction);
|
||||
menu->addSeparator();
|
||||
menu->addAction(showInPeopleAct);
|
||||
shareButton()->setMenu(menu);
|
||||
|
||||
connect(shareButton(),SIGNAL(pressed()),this,SLOT(handleShareButtonClicked()));
|
||||
|
||||
RsReputationLevel overall_reputation = rsReputations->overallReputationLevel(mPost.mMeta.mAuthorId);
|
||||
bool redacted = (overall_reputation == RsReputationLevel::LOCALLY_NEGATIVE);
|
||||
|
||||
|
@ -307,6 +303,10 @@ void BoardPostDisplayWidgetBase::setup()
|
|||
emit sizeChanged(this);
|
||||
#endif
|
||||
}
|
||||
void BoardPostDisplayWidgetBase::handleShareButtonClicked()
|
||||
{
|
||||
emit shareButtonClicked();
|
||||
}
|
||||
//===================================================================================================================================
|
||||
//== class BoardPostDisplayWidget ==
|
||||
//===================================================================================================================================
|
||||
|
@ -423,7 +423,7 @@ void BoardPostDisplayWidget_compact::viewPicture()
|
|||
|
||||
PView->show();
|
||||
|
||||
/* window will destroy itself! */
|
||||
emit thumbnailOpenned();
|
||||
}
|
||||
|
||||
QToolButton *BoardPostDisplayWidget_compact::voteUpButton() { return ui->voteUpButton; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue