[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/plugins/chartshape
From: Johannes Simon <johannes.simon () gmail ! com>
Date: 2010-10-21 14:31:10
Message-ID: 20101021143110.BD5F9AC899 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1188152 by jsimon:
Use setGlobalGridAttributes() when possible instead of setting the grid attributes per axis
M +3 -6 PlotArea.cpp
--- trunk/koffice/plugins/chartshape/PlotArea.cpp #1188151:1188152
@@ -183,22 +183,19 @@
KDChart::GridAttributes gridAttributes;
gridAttributes.setGridVisible( false );
gridAttributes.setGridGranularitySequence( KDChartEnums::GranularitySequence_10_50 );
- kdCartesianPlanePrimary->setGridAttributes( Qt::Horizontal, gridAttributes );
- kdCartesianPlanePrimary->setGridAttributes( Qt::Vertical, gridAttributes );
+ kdCartesianPlanePrimary->setGlobalGridAttributes( gridAttributes );
// Disable odd default of (1, 1, -3, -3) which only produces weird offsets
// between axes and plot area frame.
kdCartesianPlanePrimary->setDrawingAreaMargins( 0, 0, 0, 0 );
// --- Prepare Secondary Cartesian Coordinate Plane ---
- kdCartesianPlaneSecondary->setGridAttributes( Qt::Horizontal, gridAttributes );
- kdCartesianPlaneSecondary->setGridAttributes( Qt::Vertical, gridAttributes );
+ kdCartesianPlaneSecondary->setGlobalGridAttributes( gridAttributes );
kdCartesianPlaneSecondary->setDrawingAreaMargins( 0, 0, 0, 0 );
// --- Prepare Polar Coordinate Plane ---
KDChart::GridAttributes polarGridAttributes;
polarGridAttributes.setGridVisible( false );
- kdPolarPlane->setGridAttributes( false, polarGridAttributes );
- kdPolarPlane->setGridAttributes( true, polarGridAttributes );
+ kdPolarPlane->setGlobalGridAttributes( polarGridAttributes );
// --- Prepare Radar Coordinate Plane ---
KDChart::GridAttributes radarGridAttributes;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic