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

List:       kde-commits
Subject:    KDE/kdebase/workspace/ksysguard/gui/SensorDisplayLib
From:       John Tapsell <john.tapsell () kdemail ! net>
Date:       2010-01-03 4:02:23
Message-ID: 1262491343.419088.14992.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1069250 by johnflux:

Krazy fixes


 M  +2 -2      FancyPlotter.cc  
 M  +2 -2      FancyPlotterSettings.cc  
 M  +2 -2      LogFile.cc  


--- trunk/KDE/kdebase/workspace/ksysguard/gui/SensorDisplayLib/FancyPlotter.cc \
#1069249:1069250 @@ -523,7 +523,7 @@
             lastValue = KGlobal::locale()->formatNumber( sensor->lastValue, \
(sensor->isInteger)?0:-1 );  if (sensor->unit() == "%")
                 lastValue = i18nc("units", "%1%", lastValue);
-            else if( sensor->unit() != "" )
+            else if( !sensor->unit().isEmpty() )
                 lastValue = i18nc("units", ("%1 " + sensor->unit()).toUtf8(), \
lastValue);  } else {
             lastValue = i18n("Error");
@@ -586,7 +586,7 @@
                         lastValue = KGlobal::locale()->formatNumber( \
mPlotter->lastValue(beamId), precision );  if (sensor->unit() == "%")
                             lastValue = i18nc("units", "%1%", lastValue);
-                        else if( sensor->unit() != "" )  {
+                        else if( !sensor->unit().isEmpty() )  {
                             lastValue = i18nc("units", ("%1 " + \
sensor->unit()).toUtf8(), lastValue);  }
                     }
--- trunk/KDE/kdebase/workspace/ksysguard/gui/SensorDisplayLib/FancyPlotterSettings.cc \
#1069249:1069250 @@ -308,8 +308,8 @@
 
 void FancyPlotterSettings::setRangeUnits( const QString & units )
 {
-  mMinValue->setSuffix(" " + units);
-  mMaxValue->setSuffix(" " + units);
+  mMinValue->setSuffix(' ' + units);
+  mMaxValue->setSuffix(' ' + units);
 }
 
 void FancyPlotterSettings::setUseManualRange( bool value )
--- trunk/KDE/kdebase/workspace/ksysguard/gui/SensorDisplayLib/LogFile.cc \
#1069249:1069250 @@ -214,7 +214,7 @@
 	saveColor(element, "backgroundColor", monitor->palette().color( QPalette::Base ) );
 
 	for (QStringList::Iterator it = filterRules.begin();
-		 it != filterRules.end(); it++)
+		 it != filterRules.end(); ++it)
 	{
 		QDomElement filter = doc.createElement("filter");
 		filter.setAttribute("rule", (*it));
@@ -250,7 +250,7 @@
 
 				monitor->addItem(s);
 
-				for (QStringList::Iterator it = filterRules.begin(); it != filterRules.end(); \
it++) { +				for (QStringList::Iterator it = filterRules.begin(); it != \
filterRules.end(); ++it) {  QRegExp *expr = new QRegExp((*it).toLatin1());
 					if (expr->indexIn(s) != -1) {
 						KNotification::event("pattern_match", QString("rule '%1' \
matched").arg(*it),QPixmap(),this);


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

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