Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 21068 → Rev 21069

/trunk/Scribus/scribus/ui/resourcemanager.cpp
936,13 → 936,13
{
QString totalText;
if (bytesTotal == -1)
totalText = QString("%1 bytes").arg(bytesReceived);
totalText = QString("%1 kB").arg(bytesReceived/1000);
else
{
totalText = QString("%1 / %2 bytes").arg(bytesReceived).arg(bytesTotal);
QString totalTextWidth = QString("%1 / %2 bytes").arg(bytesTotal).arg(bytesTotal);
dataReceivedLabel->setMinimumWidth(QWidget::fontMetrics().width(totalTextWidth));
}
// {
totalText = QString("%1 / %2 kB").arg(bytesReceived/1000).arg(bytesTotal/1000);
// QString totalTextWidth = QString("%1 / %2 kB").arg(bytesTotal).arg(bytesTotal);
// dataReceivedLabel->setMinimumWidth(QWidget::fontMetrics().width(totalTextWidth));
// }
dataReceivedLabel->setText(totalText);
}