1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

DownloadManager: Disable speed label on Windows

Closes #1906
This commit is contained in:
David Rosca 2017-01-20 09:42:38 +01:00
parent f15643b454
commit c540f4f768
2 changed files with 13 additions and 6 deletions

View File

@ -176,9 +176,11 @@ void DownloadManager::timerEvent(QTimerEvent* e)
speed += spee;
}
#ifndef Q_OS_WIN
ui->speedLabel->setText(tr("%1% of %2 files (%3) %4 remaining").arg(QString::number(progress), QString::number(progresses.count()),
DownloadItem::currentSpeedToString(speed),
DownloadItem::remaingTimeToString(remaining)));
#endif
setWindowTitle(tr("%1% - Download Manager").arg(progress));
#ifdef W7TASKBAR
if (QtWin::isRunningWindows7()) {

View File

@ -23,7 +23,16 @@
<property name="spacing">
<number>0</number>
</property>
<property name="margin">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
@ -91,11 +100,7 @@
</spacer>
</item>
<item>
<widget class="QLabel" name="speedLabel">
<property name="text">
<string/>
</property>
</widget>
<widget class="QLabel" name="speedLabel"/>
</item>
<item>
<spacer name="horizontalSpacer_3">