change peericon when indicator changed

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2296 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2010-02-13 12:21:41 +00:00
parent 476b75bb22
commit fde317cf22

View File

@ -254,7 +254,26 @@ QString RemoteDirModel::getAgeIndicatorString(const DirDetails &details) const
switch(coln) switch(coln)
{ {
case 0: 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)); return (QIcon(peerIcon));
}
break; break;
} }
} }