mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-19 12:54:24 -05: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
@ -122,6 +122,9 @@ void BlogsDialog::blogListCustomPopupMenu( QPoint point )
|
||||
QMenu contextMnu( this );
|
||||
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 );
|
||||
connect( subscribeblogAct , SIGNAL( triggered() ), this, SLOT( subscribeBlog() ) );
|
||||
|
||||
@ -141,6 +144,8 @@ void BlogsDialog::blogListCustomPopupMenu( QPoint point )
|
||||
|
||||
if (bi.blogFlags & RS_DISTRIB_PUBLISH)
|
||||
{
|
||||
contextMnu.addAction( createblogpostAct );
|
||||
contextMnu.addSeparator();
|
||||
contextMnu.addAction( blogdetailsAct );
|
||||
}
|
||||
else if (bi.blogFlags & RS_DISTRIB_SUBSCRIBED)
|
||||
|
Loading…
Reference in New Issue
Block a user