From dadc34655c3ab961b0b0b94a10eaaba710f0b5e8 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 4 Jul 2011 22:38:03 +0000 Subject: Added kmymoney git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmymoney@1239792 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libkdchart/KDChartTableDataWrapper.cpp | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 libkdchart/KDChartTableDataWrapper.cpp (limited to 'libkdchart/KDChartTableDataWrapper.cpp') 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" -- cgit v1.2.1