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

List:       kde-commits
Subject:    koffice/kplato/libs/ui
From:       Dag Andersen <danders () get2net ! dk>
Date:       2010-07-02 11:09:35
Message-ID: 20100702110935.1DED4AC8E3 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1145266 by danders:

Bugs fixed in kdchart, so remove obsolete code.


 M  +2 -11     kpttaskstatusview.cpp  


--- trunk/koffice/kplato/libs/ui/kpttaskstatusview.cpp #1145265:1145266
@@ -658,11 +658,7 @@
 
 void PerformanceStatusBase::setupChart()
 {
-    // BUG in kdchart:
     foreach ( AbstractCoordinatePlane *p, ui_chart->coordinatePlanes() ) {
-        p->setReferenceCoordinatePlane( 0 );
-    }
-    foreach ( AbstractCoordinatePlane *p, ui_chart->coordinatePlanes() ) {
         Q_UNUSED(p);
         ui_chart->takeCoordinatePlane( ui_chart->coordinatePlanes().last() );
     }
@@ -674,24 +670,19 @@
         setupLineChart();
     }
     kDebug()<<"Planes:"<<ui_chart->coordinatePlanes();
-    //BUG in kdchart: hide grid only in the plane referencing another plane doesn't work
-/*    foreach ( AbstractCoordinatePlane *pl, ui_chart->coordinatePlanes() ) {
+    foreach ( AbstractCoordinatePlane *pl, ui_chart->coordinatePlanes() ) {
         CartesianCoordinatePlane *p = dynamic_cast<CartesianCoordinatePlane*>( pl );
         if ( p == 0 ) continue;
         GridAttributes ga = p->globalGridAttributes();
         ga.setGridVisible( p->referenceCoordinatePlane() == 0 );
         p->setGlobalGridAttributes( ga );
-        kDebug()<<p<<"grid visible="<<p->globalGridAttributes().isGridVisible();
-    }*/
+    }
     m_legend->setDatasetHidden( 0, ! ( m_chartinfo.showCost && m_chartinfo.showBCWSCost ) );
     m_legend->setDatasetHidden( 1, ! ( m_chartinfo.showCost && m_chartinfo.showBCWPCost ) );
     m_legend->setDatasetHidden( 2, ! ( m_chartinfo.showCost && m_chartinfo.showACWPCost ) );
     m_legend->setDatasetHidden( 3, ! ( m_chartinfo.showEffort && m_chartinfo.showBCWSEffort ) );
     m_legend->setDatasetHidden( 4, ! ( m_chartinfo.showEffort && m_chartinfo.showBCWPEffort ) );
     m_legend->setDatasetHidden( 5, ! ( m_chartinfo.showEffort && m_chartinfo.showACWPEffort ) );
-
-    ui_chart->takeLegend( m_legend );
-    ui_chart->addLegend( m_legend );
 }
 
 void PerformanceStatusBase::setupBarChart()
[prev in list] [next in list] [prev in thread] [next in thread] 

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