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:
defnax 2010-03-25 16:18:22 +00:00
parent a3e8bea22e
commit df61d8d018

View File

@ -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);
}