File indexing completed on 2024-05-19 05:44:22

0001 /*
0002     SPDX-FileCopyrightText: 2015-2017 Milian Wolff <mail@milianw.de>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-or-later
0005 */
0006 
0007 #ifndef CHARTPROXY_H
0008 #define CHARTPROXY_H
0009 
0010 #include <QSortFilterProxyModel>
0011 
0012 #include "chartmodel.h"
0013 
0014 class ChartProxy : public QSortFilterProxyModel
0015 {
0016     Q_OBJECT
0017 public:
0018     explicit ChartProxy(bool showTotal, QObject* parent = nullptr);
0019     virtual ~ChartProxy();
0020 
0021 protected:
0022     bool filterAcceptsColumn(int sourceColumn, const QModelIndex& sourceParent) const override;
0023 
0024 private:
0025     bool m_showTotal;
0026 };
0027 
0028 #endif // CHARTPROXY_H