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

List:       kde-commits
Subject:    k3b_0_11_branch: kdeextragear-1/k3b/src/projects/audiocd
From:       Sebastian Trueg <sebastian () trueg ! de>
Date:       2004-02-04 8:39:39
Message-ID: 20040204083939.EE8969649 () office ! kde ! org
[Download RAW message or body]

CVS commit by trueg: 

code beautifying


  M +2 -9      audiolistviewitem.cpp   1.5.2.1


--- kdeextragear-1/k3b/src/projects/audiocd/audiolistviewitem.cpp  #1.5:1.5.2.1
@@ -100,11 +100,4 @@ QString K3bAudioListViewItem::key( int, 
   // The tracks should be sorted according to their track-number :-)
   // although Red book only supports 99 tracks this goes up to 999 - it does not hurt ;-)
-
-  QString num = QString::number( m_track->index() );
-  if( num.length() == 1 )
-    return "00" + num;
-  else if( num.length() == 2 )
-    return "0" + num;
-  
-  return num;
+  return QString::number( m_track->index() ).rightJustify( 3, '0' );
 }


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

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