summaryrefslogtreecommitdiffstats
path: root/kchart/kdchart/KDChartTableDataWrapper.cpp
blob: 1baf48733a12ee40f01f14ccc75cc12349f12e95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include "KDChartTableDataWrapper.h"

KDChartTableDataWrapper::KDChartTableDataWrapper( KDChartTableData* data ) :TQObject(0), _data(data)
{
}
/*
KDChartData* KDChartTableDataWrapper::cell( uint row, uint col )
{
    KDChartData& item = _data->cell( row, col );
    return &item;
}

void KDChartTableDataWrapper::setCell( uint _row, uint _col, double _element )
{
    // Without this, the user has to wrap the element in a KDChartData
    // In C++ this is handled bu default constructors.
    _data->setCell( _row, _col, _element );

}

void KDChartTableDataWrapper::setCell( uint _row, uint _col, TQString _element )
{
    // Without this, the user has to wrap the element in a KDChartData
    // In C++ this is handled bu default constructors.
    _data->setCell( _row, _col, _element );
}

void KDChartTableDataWrapper::setCell( uint _row, uint _col, const KDChartData& _element )
{
    // When overriding setCell above, I also had to override this one. I believe that must be due to a bug in TQSA
    _data->setCell( _row, _col, _element );
}

*/

#include "KDChartTableDataWrapper.moc"