From kde-commits Sun Apr 13 16:58:03 2008 From: Johannes Simon Date: Sun, 13 Apr 2008 16:58:03 +0000 To: kde-commits Subject: koffice/interfaces Message-Id: <1208105883.815981.13916.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=120810589104328 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;