mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-07 08:35:16 -04:00
added context menu action "Post to Blog"
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2465 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
887f9bc446
commit
ce4141648a
1 changed files with 5 additions and 0 deletions
|
@ -122,6 +122,9 @@ void BlogsDialog::blogListCustomPopupMenu( QPoint point )
|
||||||
QMenu contextMnu( this );
|
QMenu contextMnu( this );
|
||||||
QMouseEvent *mevent = new QMouseEvent( QEvent::MouseButtonPress, point, Qt::RightButton, Qt::RightButton, Qt::NoModifier );
|
QMouseEvent *mevent = new QMouseEvent( QEvent::MouseButtonPress, point, Qt::RightButton, Qt::RightButton, Qt::NoModifier );
|
||||||
|
|
||||||
|
QAction *createblogpostAct = new QAction(QIcon(":/images/mail_reply.png"), tr( "Post to Blog" ), this );
|
||||||
|
connect( createblogpostAct , SIGNAL( triggered() ), this, SLOT( createMsg() ) );
|
||||||
|
|
||||||
QAction *subscribeblogAct = new QAction(QIcon(":/images/edit_add24.png"), tr( "Subscribe to Blog" ), this );
|
QAction *subscribeblogAct = new QAction(QIcon(":/images/edit_add24.png"), tr( "Subscribe to Blog" ), this );
|
||||||
connect( subscribeblogAct , SIGNAL( triggered() ), this, SLOT( subscribeBlog() ) );
|
connect( subscribeblogAct , SIGNAL( triggered() ), this, SLOT( subscribeBlog() ) );
|
||||||
|
|
||||||
|
@ -141,6 +144,8 @@ void BlogsDialog::blogListCustomPopupMenu( QPoint point )
|
||||||
|
|
||||||
if (bi.blogFlags & RS_DISTRIB_PUBLISH)
|
if (bi.blogFlags & RS_DISTRIB_PUBLISH)
|
||||||
{
|
{
|
||||||
|
contextMnu.addAction( createblogpostAct );
|
||||||
|
contextMnu.addSeparator();
|
||||||
contextMnu.addAction( blogdetailsAct );
|
contextMnu.addAction( blogdetailsAct );
|
||||||
}
|
}
|
||||||
else if (bi.blogFlags & RS_DISTRIB_SUBSCRIBED)
|
else if (bi.blogFlags & RS_DISTRIB_SUBSCRIBED)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue