File indexing completed on 2024-06-23 05:48:47
0001 /* 0002 This file is part of the Okteta Kasten module, made within the KDE community. 0003 0004 SPDX-FileCopyrightText: 2023 Friedrich W. H. Kossebau <kossebau@kde.org> 0005 0006 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0007 */ 0008 0009 #ifndef KASTEN_STATISTICDISPLAYMODEL_HPP 0010 #define KASTEN_STATISTICDISPLAYMODEL_HPP 0011 0012 // Qt 0013 #include <QIdentityProxyModel> 0014 0015 class QWidget; 0016 0017 namespace Kasten { 0018 0019 class StatisticDisplayModel : public QIdentityProxyModel 0020 { 0021 Q_OBJECT 0022 0023 public: 0024 explicit StatisticDisplayModel(QWidget* uiWidget, QObject* parent = nullptr); 0025 0026 ~StatisticDisplayModel() override; 0027 0028 public: // QAbstractItemModel API 0029 QVariant data(const QModelIndex& index, int role) const override; 0030 Qt::ItemFlags flags(const QModelIndex& index) const override; 0031 QMimeData* mimeData(const QModelIndexList& indexes) const override; 0032 QStringList mimeTypes() const override; 0033 0034 private: 0035 QWidget* const m_uiWidget; 0036 }; 0037 0038 } 0039 0040 #endif