KDChartRingDiagram.cpp File Reference

#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>

Include dependency graph for KDChartRingDiagram.cpp:

Go to the source code of this file.

Defines

#define d   d_func()

Functions

static QRectF buildReferenceRect (const PolarCoordinatePlane *plane)


Define Documentation

#define d   d_func()

Definition at line 49 of file KDChartRingDiagram.cpp.


Function Documentation

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 }


Generated on Thu Mar 4 23:22:40 2010 for KD Chart 2 by  doxygen 1.5.4