File indexing completed on 2024-05-12 15:27:38
0001 /*************************************************************************** 0002 File : SpreadsheetCommentsHeaderModel.h 0003 Project : LabPlot 0004 -------------------------------------------------------------------- 0005 Copyright : (C) 2007 Tilman Benkert (thzs@gmx.net) 0006 0007 ***************************************************************************/ 0008 0009 /*************************************************************************** 0010 * * 0011 * This program is free software; you can redistribute it and/or modify * 0012 * it under the terms of the GNU General Public License as published by * 0013 * the Free Software Foundation; either version 2 of the License, or * 0014 * (at your option) any later version. * 0015 * * 0016 * This program is distributed in the hope that it will be useful, * 0017 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 0018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 0019 * GNU General Public License for more details. * 0020 * * 0021 * You should have received a copy of the GNU General Public License * 0022 * along with this program; if not, write to the Free Software * 0023 * Foundation, Inc., 51 Franklin Street, Fifth Floor, * 0024 * Boston, MA 02110-1301 USA * 0025 * * 0026 ***************************************************************************/ 0027 0028 #ifndef SPREADSHEETCOMMENTSHEADERMODEL_H 0029 #define SPREADSHEETCOMMENTSHEADERMODEL_H 0030 0031 #include <QAbstractTableModel> 0032 #include <backend/spreadsheet/SpreadsheetModel.h> 0033 0034 class SpreadsheetCommentsHeaderModel : public QAbstractTableModel { 0035 Q_OBJECT 0036 0037 public: 0038 explicit SpreadsheetCommentsHeaderModel(SpreadsheetModel* , QObject* parent = nullptr); 0039 0040 Qt::ItemFlags flags( const QModelIndex&) const override; 0041 QVariant data(const QModelIndex& index, int role) const override; 0042 QVariant headerData(int section, Qt::Orientation orientation, int role) const override; 0043 int rowCount(const QModelIndex& parent = QModelIndex()) const override; 0044 int columnCount(const QModelIndex& parent = QModelIndex()) const override; 0045 0046 private: 0047 SpreadsheetModel* m_spreadsheet_model; 0048 }; 0049 0050 #endif