r21069 by craig -

scribus-commit scribus-commit at lists.scribus.net
Sun Mar 6 17:16:12 UTC 2016


Author: craig
Date: Sun Mar  6 17:16:12 2016
New Revision: 21069

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21069
Log:
Switch to kB for download counter

Modified:
    trunk/Scribus/scribus/ui/resourcemanager.cpp

Modified: trunk/Scribus/scribus/ui/resourcemanager.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21069&path=/trunk/Scribus/scribus/ui/resourcemanager.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/resourcemanager.cpp	(original)
+++ trunk/Scribus/scribus/ui/resourcemanager.cpp	Sun Mar  6 17:16:12 2016
@@ -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);
 }
 




More information about the scribus-commit mailing list