File indexing completed on 2025-01-12 03:59:35
0001 /** 0002 * SPDX-FileCopyrightText: 2001-2015 Klaralvdalens Datakonsult AB. All rights reserved. 0003 * 0004 * This file is part of the KD Chart library. 0005 * 0006 * SPDX-License-Identifier: GPL-2.0-or-later 0007 */ 0008 0009 #ifndef SUMGUI_MODELPARAMVSPARAMPLOT_H 0010 #define SUMGUI_MODELPARAMVSPARAMPLOT_H 0011 0012 0013 #include <QSortFilterProxyModel> 0014 0015 0016 class ModelParamVsParamPlot: public QSortFilterProxyModel 0017 { 0018 public: 0019 ModelParamVsParamPlot( 0020 QAbstractItemModel *p_sourceModel, 0021 int p_column1, 0022 int p_column2, 0023 QObject *p_parent = nullptr); 0024 0025 int columnCount( 0026 const QModelIndex &p_parent = QModelIndex()) const override; 0027 0028 protected: 0029 QVariant data( 0030 const QModelIndex &p_index, 0031 int p_role = Qt::DisplayRole) const override; 0032 0033 bool filterAcceptsColumn( 0034 int p_source_column, 0035 const QModelIndex &p_source_parent) const override; 0036 0037 private: 0038 int m_column1; 0039 int m_column2; 0040 }; // class ModelParamVsParamPlot 0041 0042 0043 #endif // SUMGUI_MODELPARAMVSPARAMPLOT_H