mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Added Icons for Edit/Remove Group Actions
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3530 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
8385984d78
commit
8d6b4a2a09
@ -84,6 +84,8 @@
|
|||||||
#define IMAGE_PASTELINK ":/images/pasterslink.png"
|
#define IMAGE_PASTELINK ":/images/pasterslink.png"
|
||||||
#define IMAGE_GROUP16 ":/images/user/group16.png"
|
#define IMAGE_GROUP16 ":/images/user/group16.png"
|
||||||
#define IMAGE_GROUP24 ":/images/user/group24.png"
|
#define IMAGE_GROUP24 ":/images/user/group24.png"
|
||||||
|
#define IMAGE_EDIT ":/images/edit_16.png"
|
||||||
|
#define IMAGE_REMOVE ":/images/delete.png"
|
||||||
|
|
||||||
#define COLUMN_COUNT 3
|
#define COLUMN_COUNT 3
|
||||||
#define COLUMN_NAME 0
|
#define COLUMN_NAME 0
|
||||||
@ -401,10 +403,10 @@ void PeersDialog::peertreeWidgetCostumPopupMenu( QPoint point )
|
|||||||
{
|
{
|
||||||
bool standard = c->data(COLUMN_DATA, ROLE_STANDARD).toBool();
|
bool standard = c->data(COLUMN_DATA, ROLE_STANDARD).toBool();
|
||||||
|
|
||||||
action = contextMnu.addAction(QIcon(), tr("Edit group"), this, SLOT(editGroup()));
|
action = contextMnu.addAction(QIcon(IMAGE_EDIT), tr("Edit group"), this, SLOT(editGroup()));
|
||||||
action->setDisabled(standard);
|
action->setDisabled(standard);
|
||||||
|
|
||||||
action = contextMnu.addAction(QIcon(), tr("Remove group"), this, SLOT(removeGroup()));
|
action = contextMnu.addAction(QIcon(IMAGE_REMOVE), tr("Remove group"), this, SLOT(removeGroup()));
|
||||||
action->setDisabled(standard);
|
action->setDisabled(standard);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user