use KLocale::positive/negativeSign in windowgeometry effect
BUG: 273169 FIXED-IN: 4.7
This commit is contained in:
parent
234ec644d2
commit
580aa665c9
1 changed files with 11 additions and 3 deletions
|
@ -119,9 +119,17 @@ void WindowGeometry::slotWindowFinishUserMovedResized(EffectWindow *w)
|
|||
|
||||
static inline QString number(int n)
|
||||
{
|
||||
if (n >= 0)
|
||||
return '+' + QString::number(n);
|
||||
return QString::number(n); // "-" is auto-applied
|
||||
QString sign;
|
||||
if (n >= 0) {
|
||||
sign = KGlobal::locale()->positiveSign();
|
||||
if (sign.isEmpty()) sign = "+";
|
||||
}
|
||||
else {
|
||||
n = -n;
|
||||
sign = KGlobal::locale()->negativeSign();
|
||||
if (sign.isEmpty()) sign = "-";
|
||||
}
|
||||
return sign + QString::number(n);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue