kchart

KDChartTableDataWrapper.cpp

00001 #include "KDChartTableDataWrapper.h"
00002 
00003 KDChartTableDataWrapper::KDChartTableDataWrapper( KDChartTableData* data ) :QObject(0), _data(data)
00004 {
00005 }
00006 /*
00007 KDChartData* KDChartTableDataWrapper::cell( uint row, uint col )
00008 {
00009     KDChartData& item = _data->cell( row, col );
00010     return &item;
00011 }
00012 
00013 void KDChartTableDataWrapper::setCell( uint _row, uint _col, double _element )
00014 {
00015     // Without this, the user has to wrap the element in a KDChartData
00016     // In C++ this is handled bu default constructors.
00017     _data->setCell( _row, _col, _element );
00018 
00019 }
00020 
00021 void KDChartTableDataWrapper::setCell( uint _row, uint _col, QString _element )
00022 {
00023     // Without this, the user has to wrap the element in a KDChartData
00024     // In C++ this is handled bu default constructors.
00025     _data->setCell( _row, _col, _element );
00026 }
00027 
00028 void KDChartTableDataWrapper::setCell( uint _row, uint _col, const KDChartData& _element )
00029 {
00030     // When overriding setCell above, I also had to override this one. I believe that must be due to a bug in QSA
00031     _data->setCell( _row, _col, _element );
00032 }
00033 
00034 */
00035 
00036 #include "KDChartTableDataWrapper.moc"
KDE Home | KDE Accessibility Home | Description of Access Keys