KChart

KChartAbstractProxyModel.h
1/*
2 * SPDX-FileCopyrightText: 2001-2015 Klaralvdalens Datakonsult AB. All rights reserved.
3 *
4 * This file is part of the KD Chart library.
5 *
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 */
8
9#ifndef KCHARTABSTRACTPROXYMODEL_H
10#define KCHARTABSTRACTPROXYMODEL_H
11
12#include <QAbstractProxyModel>
13
14#include "KChartGlobal.h"
15
16namespace KChart
17{
18 /**
19 * @brief Base class for all proxy models used inside KChart
20 * \internal
21 */
22 class KCHART_EXPORT AbstractProxyModel : public QAbstractProxyModel
23 {
24 Q_OBJECT
25 public:
26
27 /** This is basically KDAbstractProxyModel, but only the
28 bits that we really need from it */
29 explicit AbstractProxyModel( QObject* parent = nullptr );
30
31 /*! \reimpl */
32 QModelIndex mapFromSource( const QModelIndex & sourceIndex ) const override;
33 /*! \reimpl */
34 QModelIndex mapToSource( const QModelIndex &proxyIndex ) const override;
35
36 /*! \reimpl */
37 QModelIndex index( int row, int col, const QModelIndex& index ) const override;
38 /*! \reimpl */
39 QModelIndex parent( const QModelIndex& index ) const override;
40 };
41}
42
43#endif /* KCHARTABSTRACTPROXYMODEL_H */
Contains KChart macros.
Base class for all proxy models used inside KChart.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jun 7 2024 11:55:05 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.