mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
added to display text for Dir counts
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2630 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
a3e8bea22e
commit
df61d8d018
@ -465,11 +465,15 @@ QString RemoteDirModel::getAgeIndicatorString(const DirDetails &details) const
|
||||
return QString::fromUtf8(details.name.c_str());
|
||||
break;
|
||||
case 1:
|
||||
//return QString("");
|
||||
{
|
||||
std::ostringstream out;
|
||||
out << details.count;
|
||||
return QString::fromStdString(out.str());
|
||||
if (details.count > 1)
|
||||
{
|
||||
return QString::fromStdString(out.str()) + " " + tr("Files");
|
||||
}
|
||||
else
|
||||
return QString::fromStdString(out.str()) + " " + tr("File");
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
@ -506,7 +510,7 @@ QString RemoteDirModel::getAgeIndicatorString(const DirDetails &details) const
|
||||
{
|
||||
if(coln == 1)
|
||||
{
|
||||
return int( Qt::AlignLeft | Qt::AlignVCenter);
|
||||
return int( Qt::AlignRight | Qt::AlignVCenter);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user