mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-17 02:21:03 -04:00
Added voteup/votedown icons to the comments tree context menu
Added icons for Top and New buttons in Posted Links git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6663 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
ff67c7eea4
commit
d91c0a1eb5
14 changed files with 31 additions and 5 deletions
|
@ -48,6 +48,8 @@
|
|||
|
||||
/* Images for context menu icons */
|
||||
#define IMAGE_MESSAGE ":/images/folder-draft.png"
|
||||
#define IMAGE_VOTEUP ":/images/vote_up.png"
|
||||
#define IMAGE_VOTEDOWN ":/images/vote_down.png"
|
||||
|
||||
GxsCommentTreeWidget::GxsCommentTreeWidget(QWidget *parent)
|
||||
:QTreeWidget(parent), mRsTokenService(NULL), mCommentService(NULL), mTokenQueue(NULL)
|
||||
|
@ -92,9 +94,9 @@ void GxsCommentTreeWidget::customPopUpMenu(const QPoint& point)
|
|||
|
||||
contextMnu.addSeparator();
|
||||
|
||||
action = contextMnu.addAction(QIcon(IMAGE_MESSAGE), tr("Vote Up"), this, SLOT(voteUp()));
|
||||
action = contextMnu.addAction(QIcon(IMAGE_VOTEUP), tr("Vote Up"), this, SLOT(voteUp()));
|
||||
action->setDisabled(mVoterId.empty());
|
||||
action = contextMnu.addAction(QIcon(IMAGE_MESSAGE), tr("Vote Down"), this, SLOT(voteDown()));
|
||||
action = contextMnu.addAction(QIcon(IMAGE_VOTEDOWN), tr("Vote Down"), this, SLOT(voteDown()));
|
||||
action->setDisabled(mVoterId.empty());
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue