mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-18 12:24:22 -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
@ -243,8 +243,11 @@ 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)
|
||||
{
|
||||
@ -260,12 +263,18 @@ QString RemoteDirModel::getAgeIndicatorString(const DirDetails &details) const
|
||||
switch(coln)
|
||||
{
|
||||
case 0:
|
||||
QString ext = QFileInfo(QString::fromStdString(details.name)).suffix();
|
||||
if (ext == "avi" || ext == "mpg" || ext == "movie")
|
||||
if(details.min_age > ageIndicator)
|
||||
{
|
||||
QIcon icon(":/images/folder_video.png");
|
||||
return icon;
|
||||
}
|
||||
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
|
||||
{
|
||||
return(QIcon(categoryIcon));
|
||||
|
Loading…
Reference in New Issue
Block a user