KDChartAbstractProxyModel.h

Go to the documentation of this file.
00001 #ifndef KDCHARTABSTRACTPROXYMODEL_H
00002 #define KDCHARTABSTRACTPROXYMODEL_H
00003 
00004 /* -*- Mode: C++ -*-
00005    KDChart - a multi-platform charting engine
00006    */
00007 
00008 /****************************************************************************
00009  ** Copyright (C) 2007 Klaraelvdalens Datakonsult AB.  All rights reserved.
00010  **
00011  ** This file is part of the KDChart library.
00012  **
00013  ** This file may be distributed and/or modified under the terms of the
00014  ** GNU General Public License version 2 as published by the Free Software
00015  ** Foundation and appearing in the file LICENSE.GPL included in the
00016  ** packaging of this file.
00017  **
00018  ** Licensees holding valid commercial KDChart licenses may use this file in
00019  ** accordance with the KDChart Commercial License Agreement provided with
00020  ** the Software.
00021  **
00022  ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00023  ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00024  **
00025  ** See http://www.klaralvdalens-datakonsult.se/?page=products for
00026  **   information about KDChart Commercial License Agreements.
00027  **
00028  ** Contact info@klaralvdalens-datakonsult.se if any conditions of this
00029  ** licensing are not clear to you.
00030  **
00031  **********************************************************************/
00032 
00033 #include <QAbstractProxyModel>
00034 
00035 #include "KDChartGlobal.h"
00036 
00037 namespace KDChart
00038 {
00043     class KDCHART_EXPORT AbstractProxyModel : public QAbstractProxyModel
00044     {
00045         Q_OBJECT
00046     public:
00047         explicit AbstractProxyModel( QObject* parent = 0 );
00048 
00050         QModelIndex mapFromSource( const QModelIndex & sourceIndex ) const;
00052         QModelIndex mapToSource( const QModelIndex &proxyIndex ) const;
00053 
00055         QModelIndex index( int row, int col, const QModelIndex& index ) const;
00057         QModelIndex parent( const QModelIndex& index ) const;
00058     };
00059 }
00060 
00061 #endif /* KDCHARTABSTRACTPROXYMODEL_H */

Generated on Thu Mar 4 23:19:09 2010 for KD Chart 2 by  doxygen 1.5.4