scidavis  2.3.0
About: SciDAVis is a free application for Scientific Data Analysis and Visualization (a fork off of QtiPlot).
  Fossies Dox: scidavis-2.3.0.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

TableCommentsHeaderModel.h
Go to the documentation of this file.
1 
12 
31 #ifndef TABLECOMMENTSHEADERMODEL_H
32 #define TABLECOMMENTSHEADERMODEL_H
33 
34 #include <QAbstractTableModel>
35 #include "TableModel.h"
36 
38 class TableCommentsHeaderModel : public QAbstractTableModel
39 {
40  Q_OBJECT
41 
42  public:
44  explicit TableCommentsHeaderModel( TableModel * table_model, QObject * parent = 0 );
46  virtual ~TableCommentsHeaderModel();
47 
49 
50  Qt::ItemFlags flags( const QModelIndex & index ) const;
51  QVariant data(const QModelIndex &index, int role) const;
52  QVariant headerData(int section,
53  Qt::Orientation orientation,int role) const;
54  int rowCount(const QModelIndex &parent = QModelIndex()) const;
55  int columnCount(const QModelIndex & parent = QModelIndex()) const;
57 
58  private:
60 };
61 
62 #endif
TableCommentsHeaderModel
Model class wrapping a TableModel to display column comments in a TableCommentsHeaderView.
Definition: TableCommentsHeaderModel.h:39
TableModel
Model for the access to a Table.
Definition: TableModel.h:54
TableCommentsHeaderModel::flags
Qt::ItemFlags flags(const QModelIndex &index) const
Definition: TableCommentsHeaderModel.cpp:54
TableCommentsHeaderModel::TableCommentsHeaderModel
TableCommentsHeaderModel(TableModel *table_model, QObject *parent=0)
Constructor.
Definition: TableCommentsHeaderModel.cpp:33
TableModel.h
TableCommentsHeaderModel::headerData
QVariant headerData(int section, Qt::Orientation orientation, int role) const
Definition: TableCommentsHeaderModel.cpp:70
TableCommentsHeaderModel::data
QVariant data(const QModelIndex &index, int role) const
Definition: TableCommentsHeaderModel.cpp:63
TableCommentsHeaderModel::d_table_model
TableModel * d_table_model
Definition: TableCommentsHeaderModel.h:59
TableCommentsHeaderModel::rowCount
int rowCount(const QModelIndex &parent=QModelIndex()) const
Definition: TableCommentsHeaderModel.cpp:79
TableCommentsHeaderModel::~TableCommentsHeaderModel
virtual ~TableCommentsHeaderModel()
Destructor.
Definition: TableCommentsHeaderModel.cpp:50
TableCommentsHeaderModel::columnCount
int columnCount(const QModelIndex &parent=QModelIndex()) const
Definition: TableCommentsHeaderModel.cpp:85