From fde317cf22a4b30c9b89dcfbc7b15e1cef78e9d5 Mon Sep 17 00:00:00 2001 From: defnax Date: Sat, 13 Feb 2010 12:21:41 +0000 Subject: [PATCH] change peericon when indicator changed git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2296 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/RemoteDirModel.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/retroshare-gui/src/gui/RemoteDirModel.cpp b/retroshare-gui/src/gui/RemoteDirModel.cpp index e2adbc280..581c07b12 100644 --- a/retroshare-gui/src/gui/RemoteDirModel.cpp +++ b/retroshare-gui/src/gui/RemoteDirModel.cpp @@ -254,7 +254,26 @@ QString RemoteDirModel::getAgeIndicatorString(const DirDetails &details) const switch(coln) { case 0: + if(details.min_age > ageIndicator) + { + return QIcon(":/images/folder_grey.png"); + } + else if (ageIndicator == IND_LAST_DAY ) + { + return QIcon(":/images/folder_green.png"); + } + else if (ageIndicator == IND_LAST_WEEK ) + { + return QIcon(":/images/folder_yellow.png"); + } + else if (ageIndicator == IND_LAST_MONTH ) + { + return QIcon(":/images/folder_red.png"); + } + else + { return (QIcon(peerIcon)); + } break; } }