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

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

SVN commit 1212167 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  


--- trunk/KDE/kdebase/workspace/plasma/generic/applets/notifications/ui/jobwidget.cpp \
#1212166:1212167 @@ -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