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

List:       kde-commits
Subject:    branches/KDE/4.6/kdebase/workspace/plasma/generic/applets/notifications/ui
From:       Albert Astals Cid <tsdgeos () terra ! es>
Date:       2011-01-05 23:44:57
Message-ID: 20110105234457.50588AC8B0 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1212168 by aacid:

I just realized it does not make sense to be smart about the unit to show if i don't \
change how calculations are done so revert the code that sets kib or kb Might make \
                sense to open a different bug about compliance with the binary unit \
                of user choice
CCBUGS: 262232


 M  +0 -14     jobwidget.cpp  


--- branches/KDE/4.6/kdebase/workspace/plasma/generic/applets/notifications/ui/jobwidget.cpp \
#1212167:1212168 @@ -62,21 +62,7 @@
     m_plotter = new Plasma::SignalPlotter(this);
     m_plotter->setUseAutoRange(true);
     m_plotter->setShowVerticalLines(false);
-    switch (KGlobal::locale()->binaryUnitDialect())
-    {
-        case KLocale::IECBinaryDialect:
             m_plotter->setUnit(i18n("KiB/s"));
-        break;
-
-        case KLocale::JEDECBinaryDialect:
-        case KLocale::MetricBinaryDialect:
-            m_plotter->setUnit(i18n("KB/s"));
-        break;
-
-        case KLocale::DefaultBinaryDialect:
-            Q_ASSERT(false);
-        break;
-    }
     m_plotter->addPlot(Plasma::Theme::defaultTheme()->color(Plasma::Theme::HighlightColor));
  
     m_fromNameLabel = new Plasma::Label(this);


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

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