#include <KDChartNullPaintDevice.h>
Definition at line 34 of file KDChartNullPaintDevice.h.
Public Member Functions | |
int | metric (PaintDeviceMetric metric) const |
NullPaintDevice (const QSize &size) | |
QPaintEngine * | paintEngine () const |
~NullPaintDevice () |
KDChart::NullPaintDevice::NullPaintDevice | ( | const QSize & | size | ) |
KDChart::NullPaintDevice::~NullPaintDevice | ( | ) |
int KDChart::NullPaintDevice::metric | ( | PaintDeviceMetric | metric | ) | const |
Definition at line 40 of file KDChartNullPaintDevice.h.
00041 { 00042 switch(metric) 00043 { 00044 case QPaintDevice::PdmWidth: 00045 return m_size.width(); 00046 case QPaintDevice::PdmHeight: 00047 return m_size.height(); 00048 case QPaintDevice::PdmWidthMM: 00049 return 1; 00050 case QPaintDevice::PdmHeightMM: 00051 return 1; 00052 case QPaintDevice::PdmNumColors: 00053 return int((uint)(-1)); 00054 case QPaintDevice::PdmDepth: 00055 return 1; 00056 case QPaintDevice::PdmDpiX: 00057 return 1; 00058 case QPaintDevice::PdmDpiY: 00059 return 1; 00060 case QPaintDevice::PdmPhysicalDpiX: 00061 return 1; 00062 case QPaintDevice::PdmPhysicalDpiY: 00063 return 1; 00064 } 00065 return 1; 00066 }
QPaintEngine* KDChart::NullPaintDevice::paintEngine | ( | ) | const |