r21885 by jghali - add some spaces in color list tooltips for readability and make string translatable

scribus-commit scribus-commit at lists.scribus.net
Wed Apr 12 07:02:56 UTC 2017


Author: jghali
Date: Wed Apr 12 07:02:56 2017
New Revision: 21885

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21885
Log:
add some spaces in color list tooltips for readability and make string translatable

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

Modified: trunk/Scribus/scribus/ui/colorlistmodel.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21885&path=/trunk/Scribus/scribus/ui/colorlistmodel.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/colorlistmodel.cpp	(original)
+++ trunk/Scribus/scribus/ui/colorlistmodel.cpp	Wed Apr 12 07:02:56 2017
@@ -54,19 +54,19 @@
 		{
 			int r, g, b;
 			color.getRawRGBColor(&r, &g, &b);
-			return QString("R:%1 G:%2 B:%3").arg(r).arg(g).arg(b);
+			return tr("R: %1 G: %2 B: %3").arg(r).arg(g).arg(b);
 		}
 		else if (color.getColorModel() == colorModelCMYK)
 		{
 			int c, m, y, k;
 			color.getCMYK(&c, &m, &y, &k);
-			return QString("C:%1% M:%2% Y:%3% K:%4%").arg(qRound(c / 2.55)).arg(qRound(m / 2.55)).arg(qRound(y / 2.55)).arg(qRound(k / 2.55));
+			return tr("C: %1% M: %2% Y: %3% K: %4%").arg(qRound(c / 2.55)).arg(qRound(m / 2.55)).arg(qRound(y / 2.55)).arg(qRound(k / 2.55));
 		}
 		else if (color.getColorModel() == colorModelLab)
 		{
 			double L, a, b;
 			color.getLab(&L, &a, &b);
-			return QString("L:%1% a:%2% b:%3%").arg(L, 0, 'f', 2).arg(a, 0, 'f', 2).arg(b, 0, 'f', 2);
+			return tr("L: %1% a: %2% b: %3%").arg(L, 0, 'f', 2).arg(a, 0, 'f', 2).arg(b, 0, 'f', 2);
 		}
 		return QVariant();
 	}




More information about the scribus-commit mailing list