SVN commit 796481 by jsimon: o Add 'const' identifier to areaAt() methods o Add KOCHART_EXPORT macro to class definition o Add implementations of con- and destructor A KoChartModel.cpp [License: LGPL (v2)] M +8 -5 KoChartModel.h --- trunk/koffice/interfaces/KoChartModel.h #796480:796481 @@ -21,6 +21,7 @@ #define KO_CHART_MODEL #include +#include "kochart_export.h" namespace KoChart { @@ -47,14 +48,16 @@ */ const int HEADER_AREA_ROLE = 33; -class KoChartModel : public QAbstractTableModel +class KOCHART_EXPORT ChartModel : public QAbstractTableModel { + Q_OBJECT + public: - KoChartModel( QObject *parent = 0 ); - ~KoChartModel(); + ChartModel( QObject *parent = 0 ); + virtual ~ChartModel(); - virtual QString areaAt( const QModelIndex &index ) = 0; - virtual QString areaAt( const QModelIndex &first, const QModelIndex &last ) = 0; + virtual QString areaAt( const QModelIndex &index ) const = 0; + virtual QString areaAt( const QModelIndex &first, const QModelIndex &last ) const = 0; virtual bool addArea( const QString &area, int section, Qt::Orientation orientation ) = 0; virtual bool removeArea( const QString &area, int section, Qt::Orientation orientation ) = 0;