From df61d8d0188f54417cf520e6b1034fa5155356de Mon Sep 17 00:00:00 2001 From: defnax Date: Thu, 25 Mar 2010 16:18:22 +0000 Subject: [PATCH] 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 --- retroshare-gui/src/gui/RemoteDirModel.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/retroshare-gui/src/gui/RemoteDirModel.cpp b/retroshare-gui/src/gui/RemoteDirModel.cpp index 90e89a6c2..7439dba4d 100644 --- a/retroshare-gui/src/gui/RemoteDirModel.cpp +++ b/retroshare-gui/src/gui/RemoteDirModel.cpp @@ -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); }