mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-23 22:49:37 -05:00
added for indicator change Folder icons
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2257 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
cd09858390
commit
ab852e0fe0
@ -245,6 +245,9 @@ QString RemoteDirModel::getAgeIndicatorString(const DirDetails &details) const
|
|||||||
|
|
||||||
if (role == Qt::DecorationRole)
|
if (role == Qt::DecorationRole)
|
||||||
{
|
{
|
||||||
|
FileInfo finfo;
|
||||||
|
rsFiles->FileDetails(details.hash, 0, finfo);
|
||||||
|
|
||||||
|
|
||||||
if (details.type == DIR_TYPE_PERSON)
|
if (details.type == DIR_TYPE_PERSON)
|
||||||
{
|
{
|
||||||
@ -260,11 +263,17 @@ QString RemoteDirModel::getAgeIndicatorString(const DirDetails &details) const
|
|||||||
switch(coln)
|
switch(coln)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
QString ext = QFileInfo(QString::fromStdString(details.name)).suffix();
|
if(details.min_age > ageIndicator)
|
||||||
if (ext == "avi" || ext == "mpg" || ext == "movie")
|
|
||||||
{
|
{
|
||||||
QIcon icon(":/images/folder_video.png");
|
return QIcon(":/images/folder_grey.png");
|
||||||
return icon;
|
}
|
||||||
|
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
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user