#include <KDChartPrintingParameters.h>
It's essentially printer's logical DPI / widget's logical DPI
Definition at line 53 of file KDChartPrintingParameters.h.
Static Public Member Functions | |
static void | resetScaleFactor () |
static QPen | scalePen (const QPen &pen) |
static void | setScaleFactor (const qreal scaleFactor) |
void PrintingParameters::resetScaleFactor | ( | ) | [static] |
Definition at line 46 of file KDChartPrintingParameters.cpp.
References scaleFactor.
Referenced by KDChart::Chart::paint().
00047 { 00048 instance()->scaleFactor = 1.0; 00049 }
QPen PrintingParameters::scalePen | ( | const QPen & | pen | ) | [static] |
Definition at line 51 of file KDChartPrintingParameters.cpp.
References scaleFactor.
Referenced by KDChart::TernaryPointDiagram::paint(), KDChart::TernaryLineDiagram::paint(), KDChart::PolarDiagram::paint(), KDChart::TextLayoutItem::paint(), KDChart::LeveyJenningsAxis::paintAsOrdinate(), KDChart::CartesianAxis::paintCtx(), KDChart::AbstractAreaBase::paintFrameAttributes(), KDChart::LineLayoutItem::paintIntoRect(), and KDChart::AbstractDiagram::paintMarker().
00052 { 00053 if( instance()->scaleFactor == 1.0 ) 00054 return pen; 00055 00056 QPen resultPen = pen; 00057 resultPen.setWidthF( resultPen.widthF() * instance()->scaleFactor ); 00058 if( resultPen.widthF() == 0.0 ) 00059 resultPen.setWidthF( instance()->scaleFactor ); 00060 00061 return resultPen; 00062 }
void PrintingParameters::setScaleFactor | ( | const qreal | scaleFactor | ) | [static] |
Definition at line 41 of file KDChartPrintingParameters.cpp.
References scaleFactor.
Referenced by KDChart::Chart::paint().
00042 { 00043 instance()->scaleFactor = scaleFactor; 00044 }