mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-18 10:02:41 -05:00
moved showAuthorInPeople to PostedListWidgetWithModel, out of share menu, and disabled edit for now
This commit is contained in:
parent
e2b9100380
commit
725c000ce7
4 changed files with 37 additions and 22 deletions
|
|
@ -147,23 +147,6 @@ void BoardPostDisplayWidgetBase::readToggled()
|
|||
|
||||
emit changeReadStatusRequested(mPost.mMeta.mMsgId,s);
|
||||
}
|
||||
void BoardPostDisplayWidgetBase::showAuthorInPeople()
|
||||
{
|
||||
if(mPost.mMeta.mAuthorId.isNull())
|
||||
{
|
||||
std::cerr << "(EE) GxsForumThreadWidget::loadMsgData_showAuthorInPeople() ERROR Missing Message Data...";
|
||||
std::cerr << std::endl;
|
||||
}
|
||||
|
||||
/* window will destroy itself! */
|
||||
IdDialog *idDialog = dynamic_cast<IdDialog*>(MainWindow::getPage(MainWindow::People));
|
||||
|
||||
if (!idDialog)
|
||||
return ;
|
||||
|
||||
MainWindow::showWindow(MainWindow::People);
|
||||
idDialog->navigate(RsGxsId(mPost.mMeta.mAuthorId));
|
||||
}
|
||||
|
||||
void BoardPostDisplayWidgetBase::setup()
|
||||
{
|
||||
|
|
@ -188,9 +171,6 @@ void BoardPostDisplayWidgetBase::setup()
|
|||
QAction *CopyLinkAction = new QAction(QIcon(""),tr("Copy RetroShare Link"), this);
|
||||
connect(CopyLinkAction, SIGNAL(triggered()), this, SLOT(handleCopyLinkClicked()));
|
||||
|
||||
QAction *showInPeopleAct = new QAction(QIcon(), tr("Show author in people tab"), this);
|
||||
connect(showInPeopleAct, SIGNAL(triggered()), this, SLOT(showAuthorInPeople()));
|
||||
|
||||
int S = QFontMetricsF(font()).height() ;
|
||||
|
||||
readButton()->setChecked(false);
|
||||
|
|
@ -198,7 +178,6 @@ void BoardPostDisplayWidgetBase::setup()
|
|||
QMenu *menu = new QMenu();
|
||||
menu->addAction(CopyLinkAction);
|
||||
menu->addSeparator();
|
||||
menu->addAction(showInPeopleAct);
|
||||
shareButton()->setMenu(menu);
|
||||
|
||||
connect(shareButton(),SIGNAL(pressed()),this,SLOT(handleShareButtonClicked()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue