[Konversation-devel] [Bug 116429] [Patch] Display Transfer remaining time xx:xx:xx
owner@bugs.kde.org
owner at bugs.kde.org
Tue Nov 15 16:23:26 CET 2005
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=116429
------- Additional Comments From smileaf smileaf org 2005-11-15 16:23 -------
(From update of attachment 13469)
>--- konversation-0.18/konversation/src/dcctransfer.cpp.old 2005-11-15 08:41:12.760682384 -0600
>+++ konversation-0.18/konversation/src/dcctransfer.cpp 2005-11-15 08:43:25.387520040 -0600
> @ -475,14 +475,15 @
> int remHour = remTime / 3600; remTime -= remHour * 3600;
> int remMin = remTime / 60; remTime -= remMin * 60;
> QString text;
>- if ( remHour )
>- text += QString::number( remHour ) + ":";
>- if ( remMin )
>- text += QString::number( remMin ) + ":";
>- if ( text.isEmpty() )
>- text = i18n("%1 sec").arg( QString::number( remTime ) );
>- else
>- text += QString::number( remTime );
>+ if ( remHour < 10 )
>+ text += "0";
>+ text += QString::number( remHour ) + ":";
>+ if ( remMin < 10 )
>+ text += "0";
>+ text += QString::number( remMin ) + ":";
>+ if ( remTime < 10 )
>+ text += "0";
>+ text += QString::number( remTime );
> return text;
> }
> }
More information about the Konversation-devel
mailing list