From 580aa665c950812a4f5c8c79b931c8a857876e8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Fri, 13 May 2011 17:37:07 +0200 Subject: [PATCH] use KLocale::positive/negativeSign in windowgeometry effect BUG: 273169 FIXED-IN: 4.7 --- effects/windowgeometry/windowgeometry.cpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/effects/windowgeometry/windowgeometry.cpp b/effects/windowgeometry/windowgeometry.cpp index 11dff77947..64232ad406 100644 --- a/effects/windowgeometry/windowgeometry.cpp +++ b/effects/windowgeometry/windowgeometry.cpp @@ -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); }