kchart

KDChartTableDataWrapper.cpp
1#include "KDChartTableDataWrapper.h"
2
3KDChartTableDataWrapper::KDChartTableDataWrapper( KDChartTableData* data ) :TQObject(0), _data(data)
4{
5}
6/*
7KDChartData* KDChartTableDataWrapper::cell( uint row, uint col )
8{
9 KDChartData& item = _data->cell( row, col );
10 return &item;
11}
12
13void KDChartTableDataWrapper::setCell( uint _row, uint _col, double _element )
14{
15 // Without this, the user has to wrap the element in a KDChartData
16 // In C++ this is handled bu default constructors.
17 _data->setCell( _row, _col, _element );
18
19}
20
21void KDChartTableDataWrapper::setCell( uint _row, uint _col, TQString _element )
22{
23 // Without this, the user has to wrap the element in a KDChartData
24 // In C++ this is handled bu default constructors.
25 _data->setCell( _row, _col, _element );
26}
27
28void KDChartTableDataWrapper::setCell( uint _row, uint _col, const KDChartData& _element )
29{
30 // When overriding setCell above, I also had to override this one. I believe that must be due to a bug in TQSA
31 _data->setCell( _row, _col, _element );
32}
33
34*/
35
36#include "KDChartTableDataWrapper.moc"