[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdegraphics/ksnapshot
From:       Helio Chissini de Castro <helio () conectiva ! com ! br>
Date:       2006-07-03 9:49:41
Message-ID: 1151920181.102856.22402.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 557443 by helio:

- Forward port of 3.5 branch fix, auto increase of numbering

 M  +3 -1      ksnapshot.cpp  


--- trunk/KDE/kdegraphics/ksnapshot/ksnapshot.cpp #557442:557443
@@ -416,7 +416,9 @@
         // It has a number, increment it
         int len = numSearch.matchedLength();
 	QString numAsStr= name.mid(start, len);
-	name.replace(start, len, QString::number(numAsStr.toInt() + 1));
+	QString number = QString::number(numAsStr.toInt() + 1);
+	number = number.rightJustify( len, '0');
+	name.replace(start, len, number );
     }
     else {
         // no number
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic