mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
476b75bb22
commit
fde317cf22
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user