#include "KDChartRingDiagram.h"
#include "KDChartRingDiagram_p.h"
#include "KDChartAttributesModel.h"
#include "KDChartPaintContext.h"
#include "KDChartPainterSaver_p.h"
#include "KDChartPieAttributes.h"
#include "KDChartDataValueAttributes.h"
#include <QPainter>
#include <KDABLibFakes>
Go to the source code of this file.
Defines | |
#define | d d_func() |
Functions | |
static QRectF | buildReferenceRect (const PolarCoordinatePlane *plane) |
#define d d_func() |
Definition at line 49 of file KDChartRingDiagram.cpp.
static QRectF buildReferenceRect | ( | const PolarCoordinatePlane * | plane | ) | [static] |
Definition at line 162 of file KDChartRingDiagram.cpp.
References KDChart::PolarCoordinatePlane::translate().
00163 { 00164 QRectF contentsRect; 00165 QPointF referencePointAtTop = plane->translate( QPointF( 1, 0 ) ); 00166 QPointF temp = plane->translate( QPointF( 0, 0 ) ) - referencePointAtTop; 00167 const double offset = temp.y(); 00168 referencePointAtTop.setX( referencePointAtTop.x() - offset ); 00169 contentsRect.setTopLeft( referencePointAtTop ); 00170 contentsRect.setBottomRight( referencePointAtTop + QPointF( 2*offset, 2*offset) ); 00171 return contentsRect; 00172 }