mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-19 12:54:24 -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)
|
if (details.type == DIR_TYPE_PERSON)
|
||||||
{
|
{
|
||||||
@ -260,12 +263,18 @@ 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
|
||||||
{
|
{
|
||||||
return(QIcon(categoryIcon));
|
return(QIcon(categoryIcon));
|
||||||
|
Loading…
Reference in New Issue
Block a user