summaryrefslogtreecommitdiffstats
path: root/src/app/Dialogs
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/Dialogs')
-rw-r--r--src/app/Dialogs/krprogress.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/app/Dialogs/krprogress.cpp b/src/app/Dialogs/krprogress.cpp
index fa97ec4..0f4ef13 100644
--- a/src/app/Dialogs/krprogress.cpp
+++ b/src/app/Dialogs/krprogress.cpp
@@ -222,12 +222,8 @@ void KrProgress::slotSpeed( TDEIO::Job*, unsigned long bytes_per_second )
if ( bytes_per_second == 0 ) {
speedLabel->setText( i18n( "Working") );
} else {
-#if KDE_IS_VERSION(3,4,0)
unsigned int seconds = TDEIO::calculateRemainingSeconds( m_iTotalSize, m_iProcessedSize, bytes_per_second );
- TQString remaining = TDEIO::convertSeconds(seconds);
-#else
- TQString remaining = TDEIO::calculateRemaining( m_iTotalSize, m_iProcessedSize, bytes_per_second ).toString();
-#endif
+ TQString remaining = TDEIO::convertSeconds(seconds);
speedLabel->setText( i18n( "%1/s ( %2 remaining )").arg( TDEIO::convertSize( bytes_per_second )).arg( remaining ) );
}
}