diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-04 22:38:03 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-04 22:38:03 +0000 |
commit | dadc34655c3ab961b0b0b94a10eaaba710f0b5e8 (patch) | |
tree | 99e72842fe687baea16376a147619b6048d7e441 /libkdchart/KDChartTableDataWrapper.cpp | |
download | kmymoney-dadc34655c3ab961b0b0b94a10eaaba710f0b5e8.tar.gz kmymoney-dadc34655c3ab961b0b0b94a10eaaba710f0b5e8.zip |
Added kmymoney
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmymoney@1239792 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkdchart/KDChartTableDataWrapper.cpp')
-rw-r--r-- | libkdchart/KDChartTableDataWrapper.cpp | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/libkdchart/KDChartTableDataWrapper.cpp b/libkdchart/KDChartTableDataWrapper.cpp new file mode 100644 index 0000000..6cae581 --- /dev/null +++ b/libkdchart/KDChartTableDataWrapper.cpp @@ -0,0 +1,36 @@ +#include "KDChartTableDataWrapper.h" + +KDChartTableDataWrapper::KDChartTableDataWrapper( KDChartTableData* data ) :QObject(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, QString _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 QSA + _data->setCell( _row, _col, _element ); +} + +*/ + +#include "KDChartTableDataWrapper.moc" |