From 9f6e28b741f505d5a6cc9ed2f3ab1752b132b217 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Fri, 11 Jul 2008 18:19:34 +0000 Subject: [PATCH] - Use infinity symbol for ETA when time is infinite --- src/misc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/misc.h b/src/misc.h index a8a29dc79..4e9381f73 100644 --- a/src/misc.h +++ b/src/misc.h @@ -300,7 +300,7 @@ class misc : public QObject{ // time duration like "1d 2h 10m". static QString userFriendlyDuration(qlonglong seconds) { if(seconds < 0) { - return tr("Unknown"); + return QString::fromUtf8("∞"); } if(seconds < 60) { return tr("< 1m", "< 1 minute"); @@ -319,7 +319,7 @@ class misc : public QObject{ if(days < 100) { return tr("%1d%2h%3m", "e.g: 2days 10hours 2minutes").arg(QString::fromUtf8(misc::toString(days).c_str())).arg(QString::fromUtf8(misc::toString(hours).c_str())).arg(QString::fromUtf8(misc::toString(minutes).c_str())); } - return tr("Unknown"); + return QString::fromUtf8("∞"); } };