mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-10 01:55:19 -04:00
Added to sort by Age when one day, one week or one month is selected
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4215 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
a748f88686
commit
0429baf807
2 changed files with 16 additions and 3 deletions
|
@ -325,6 +325,8 @@ QVariant TreeStyle_RDM::displayRole(const DirDetails& details,int coln) const
|
|||
return QString::fromUtf8(details.name.c_str());
|
||||
case 1:
|
||||
return QString() ;
|
||||
case 2:
|
||||
return misc::userFriendlyDuration(details.min_age);
|
||||
default:
|
||||
return QString() ;
|
||||
}
|
||||
|
@ -433,6 +435,8 @@ QVariant TreeStyle_RDM::sortRole(const QModelIndex& index,const DirDetails& deta
|
|||
return QString::fromUtf8(details.name.c_str());
|
||||
case 1:
|
||||
return QString();
|
||||
case 2:
|
||||
return details.min_age;
|
||||
default:
|
||||
return QString();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue