SVN commit 803518 by jsimon: o Add method to convert a string back to a region o Rename areaAt() to regionToString() which makes it more obvious what this method does o Instead of two QModelIndex'es, use QRect vectors to support incontinuous regions o Remove addArea() and removeArea() since there's now a way to access the entire spread sheet M +3 -5 KoChartModel.h --- trunk/koffice/interfaces/KoChartModel.h #803517:803518 @@ -21,6 +21,7 @@ #define KO_CHART_MODEL #include +#include #include "kochart_export.h" namespace KoChart { @@ -60,11 +61,8 @@ ChartModel( QObject *parent = 0 ); virtual ~ChartModel(); - 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; + virtual QString regionToString( const QVector ®ion ) const = 0; + virtual QVector stringToRegion( const QString &string ) const = 0; }; } // Namespace KoChart