[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/interfaces
From: Johannes Simon <johannes.simon () gmail ! com>
Date: 2008-04-13 16:58:03
Message-ID: 1208105883.815981.13916.nullmailer () svn ! kde ! org
[Download RAW message or body]
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 <QAbstractTableModel>
+#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;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic