From a4c7da0e139c393d6cb8f24de5a32e802dbc7e22 Mon Sep 17 00:00:00 2001 From: defnax Date: Thu, 23 Sep 2010 22:46:36 +0000 Subject: [PATCH] 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 --- retroshare-gui/src/gui/PeersDialog.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/retroshare-gui/src/gui/PeersDialog.cpp b/retroshare-gui/src/gui/PeersDialog.cpp index 5e5276f6f..f1d2a204f 100644 --- a/retroshare-gui/src/gui/PeersDialog.cpp +++ b/retroshare-gui/src/gui/PeersDialog.cpp @@ -87,6 +87,8 @@ #define IMAGE_GROUP24 ":/images/user/group24.png" #define IMAGE_EDIT ":/images/edit_16.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_NAME 0 @@ -514,8 +516,8 @@ void PeersDialog::peertreeWidgetCostumPopupMenu( QPoint point ) contextMnu.addSeparator(); - contextMnu.addAction(QIcon(), tr("Expand all"), ui.peertreeWidget, SLOT(expandAll())); - contextMnu.addAction(QIcon(), tr("Collapse all"), ui.peertreeWidget, SLOT(collapseAll())); + contextMnu.addAction(QIcon(IMAGE_EXPAND), tr("Expand all"), ui.peertreeWidget, SLOT(expandAll())); + contextMnu.addAction(QIcon(IMAGE_COLLAPSE), tr("Collapse all"), ui.peertreeWidget, SLOT(collapseAll())); contextMnu.exec(QCursor::pos()); }