[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Mon Apr 4 06:28:39 CEST 2005


CVS commit by staikos: 

no need to use QString::arg in here


  M +10 -10    kst2dplot.cpp   1.387


--- kdeextragear-2/kst/kst/kst2dplot.cpp  #1.386:1.387
@@ -1501,7 +1501,7 @@ void Kst2DPlot::convertJDToDateString(Ks
       break;
     case AXIS_DISPLAY_KDE_SHORTDATE:
-      label = QString("%1").arg(KGlobal::locale()->formatDateTime(
+      label = KGlobal::locale()->formatDateTime(
                                                QDateTime(QDate(year, month, day), 
-                                               QTime(hour, minute, (int)second)), true, true));
+                                               QTime(hour, minute, (int)second)), true, true);
       // handle the fractional seconds
       if (accuracy > 0) {
@@ -1513,7 +1513,7 @@ void Kst2DPlot::convertJDToDateString(Ks
       break;
     case AXIS_DISPLAY_KDE_LONGDATE:
-      label = QString("%1").arg(KGlobal::locale()->formatDateTime(
+      label = KGlobal::locale()->formatDateTime(
                                                QDateTime(QDate(year, month, day), 
-                                               QTime(hour, minute, (int)second)), false, true));
+                                               QTime(hour, minute, (int)second)), false, true);
       // handle the fractional seconds
       if (accuracy > 0) {
@@ -3227,5 +3227,5 @@ void Kst2DPlot::updateMousePos(QPoint po
       iXPrecision = 1;
     }
-    xlabel = QString("%1").arg(xpos,0,'G',iXPrecision);    
+    xlabel = QString::number(xpos,'G',iXPrecision);    
   }
 
@@ -3248,5 +3248,5 @@ void Kst2DPlot::updateMousePos(QPoint po
       iYPrecision = 1;
     }    
-    ylabel = QString("%1").arg(ypos,0,'G',iYPrecision);
+    ylabel = QString::number(ypos,'G',iYPrecision);
   }
   
@@ -3325,5 +3325,5 @@ void Kst2DPlot::highlightNearestDataPoin
                                         xlabel, length, newxpos, isXLog(), true);
         } else {
-          xlabel = QString("%1").arg(newxpos,0,'G');
+          xlabel = QString::number(newxpos,'G');
         }
         
@@ -3333,5 +3333,5 @@ void Kst2DPlot::highlightNearestDataPoin
                                         ylabel, length, newypos, isYLog(), true);
         } else {
-          ylabel = QString("%1").arg(newypos,0,'G');
+          ylabel = QString::number(newypos,'G');
         }
           
@@ -3361,5 +3361,5 @@ void Kst2DPlot::highlightNearestDataPoin
                                         xlabel, length, xpos, isXLog(), true);
         } else {
-          xlabel = QString("%1").arg(xpos,0,'G');
+          xlabel = QString::number(xpos,'G');
         }
         
@@ -3369,5 +3369,5 @@ void Kst2DPlot::highlightNearestDataPoin
                                         ylabel, length, ypos, isYLog(), true);
         } else {
-          ylabel = QString("%1").arg(ypos,0,'G');
+          ylabel = QString::number(ypos,'G');
         }
                 




More information about the Kst mailing list