labplot  2.8.2
About: LabPlot is an application for plotting and analysis of 2D and 3D functions and data. It is a complete rewrite of LabPlot1 and lacks in the first release a lot of features available in the predecessor. On the other hand, the GUI and the usability is more superior.
  Fossies Dox: labplot-2.8.2.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

SpreadsheetCommentsHeaderModel.h
Go to the documentation of this file.
1 /***************************************************************************
2  File : SpreadsheetCommentsHeaderModel.h
3  Project : LabPlot
4  --------------------------------------------------------------------
5  Copyright : (C) 2007 Tilman Benkert (thzs@gmx.net)
6 
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  * This program is distributed in the hope that it will be useful, *
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
19  * GNU General Public License for more details. *
20  * *
21  * You should have received a copy of the GNU General Public License *
22  * along with this program; if not, write to the Free Software *
23  * Foundation, Inc., 51 Franklin Street, Fifth Floor, *
24  * Boston, MA 02110-1301 USA *
25  * *
26  ***************************************************************************/
27 
28 #ifndef SPREADSHEETCOMMENTSHEADERMODEL_H
29 #define SPREADSHEETCOMMENTSHEADERMODEL_H
30 
31 #include <QAbstractTableModel>
33 
34 class SpreadsheetCommentsHeaderModel : public QAbstractTableModel {
35  Q_OBJECT
36 
37 public:
38  explicit SpreadsheetCommentsHeaderModel(SpreadsheetModel* , QObject* parent = nullptr);
39 
40  Qt::ItemFlags flags( const QModelIndex&) const override;
41  QVariant data(const QModelIndex& index, int role) const override;
42  QVariant headerData(int section, Qt::Orientation orientation, int role) const override;
43  int rowCount(const QModelIndex& parent = QModelIndex()) const override;
44  int columnCount(const QModelIndex& parent = QModelIndex()) const override;
45 
46 private:
48 };
49 
50 #endif
Model class wrapping a SpreadsheetModel to display column comments in a SpreadsheetCommentsHeaderView...
int rowCount(const QModelIndex &parent=QModelIndex()) const override
QVariant data(const QModelIndex &index, int role) const override
SpreadsheetCommentsHeaderModel(SpreadsheetModel *, QObject *parent=nullptr)
QVariant headerData(int section, Qt::Orientation orientation, int role) const override
Qt::ItemFlags flags(const QModelIndex &) const override
int columnCount(const QModelIndex &parent=QModelIndex()) const override
Model for the access to a Spreadsheet.