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

List:       kde-commits
Subject:    koffice/plugins/chartshape
From:       Pavol Korinek <pavol.korinek () ixonos ! com>
Date:       2010-10-25 7:27:15
Message-ID: 20101025072715.9E852AC897 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1189440 by pavolk:

% suffix added for line and area percentage diagram types

 M  +6 -4      Axis.cpp  


--- trunk/koffice/plugins/chartshape/Axis.cpp #1189439:1189440
@@ -1615,8 +1615,9 @@
             case StackedChartSubtype:
                 type = KDChart::LineDiagram::Stacked; break;
             case PercentChartSubtype:
-                type = KDChart::LineDiagram::Percent; break;
-                d->kdBarDiagram->setUnitSuffix("%", d->kdBarDiagram->orientation());
+                type = KDChart::LineDiagram::Percent;
+                d->kdLineDiagram->setUnitSuffix("%", Qt::Vertical);
+                break;
             default:
                 type = KDChart::LineDiagram::Normal;
             }
@@ -1630,8 +1631,9 @@
             case StackedChartSubtype:
                 type = KDChart::LineDiagram::Stacked; break;
             case PercentChartSubtype:
-                type = KDChart::LineDiagram::Percent; break;
-                d->kdBarDiagram->setUnitSuffix("%", d->kdBarDiagram->orientation());
+                type = KDChart::LineDiagram::Percent;
+                d->kdAreaDiagram->setUnitSuffix("%", Qt::Vertical);
+                break;
             default:
                 type = KDChart::LineDiagram::Normal;
             }
[prev in list] [next in list] [prev in thread] [next in thread] 

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