mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-06 13:48:59 -04:00
Added expand/collapse icons for the actions
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3532 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
2672a83309
commit
a4c7da0e13
1 changed files with 4 additions and 2 deletions
|
@ -87,6 +87,8 @@
|
||||||
#define IMAGE_GROUP24 ":/images/user/group24.png"
|
#define IMAGE_GROUP24 ":/images/user/group24.png"
|
||||||
#define IMAGE_EDIT ":/images/edit_16.png"
|
#define IMAGE_EDIT ":/images/edit_16.png"
|
||||||
#define IMAGE_REMOVE ":/images/delete.png"
|
#define IMAGE_REMOVE ":/images/delete.png"
|
||||||
|
#define IMAGE_EXPAND ":/images/edit_add24.png"
|
||||||
|
#define IMAGE_COLLAPSE ":/images/edit_remove24.png"
|
||||||
|
|
||||||
#define COLUMN_COUNT 3
|
#define COLUMN_COUNT 3
|
||||||
#define COLUMN_NAME 0
|
#define COLUMN_NAME 0
|
||||||
|
@ -514,8 +516,8 @@ void PeersDialog::peertreeWidgetCostumPopupMenu( QPoint point )
|
||||||
|
|
||||||
contextMnu.addSeparator();
|
contextMnu.addSeparator();
|
||||||
|
|
||||||
contextMnu.addAction(QIcon(), tr("Expand all"), ui.peertreeWidget, SLOT(expandAll()));
|
contextMnu.addAction(QIcon(IMAGE_EXPAND), tr("Expand all"), ui.peertreeWidget, SLOT(expandAll()));
|
||||||
contextMnu.addAction(QIcon(), tr("Collapse all"), ui.peertreeWidget, SLOT(collapseAll()));
|
contextMnu.addAction(QIcon(IMAGE_COLLAPSE), tr("Collapse all"), ui.peertreeWidget, SLOT(collapseAll()));
|
||||||
|
|
||||||
contextMnu.exec(QCursor::pos());
|
contextMnu.exec(QCursor::pos());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue