Mercurial > hg > svcore
comparison data/model/ModelDataTableModel.h @ 1038:cc27f35aa75c cxx11
Introducing the signed 64-bit frame index type, and fixing build failures from inclusion of -Wconversion with -Werror. Not finished yet.
author | Chris Cannam |
---|---|
date | Tue, 03 Mar 2015 15:18:24 +0000 |
parents | cd42620e3f40 |
children | 2f49be7d4264 |
comparison
equal
deleted
inserted
replaced
1037:bf0e5944289b | 1038:cc27f35aa75c |
---|---|
17 #define _MODEL_DATA_TABLE_MODEL_H_ | 17 #define _MODEL_DATA_TABLE_MODEL_H_ |
18 | 18 |
19 #include <QAbstractItemModel> | 19 #include <QAbstractItemModel> |
20 | 20 |
21 #include <vector> | 21 #include <vector> |
22 | |
23 #include "base/BaseTypes.h" | |
22 | 24 |
23 class TabularModel; | 25 class TabularModel; |
24 class Command; | 26 class Command; |
25 | 27 |
26 class ModelDataTableModel : public QAbstractItemModel | 28 class ModelDataTableModel : public QAbstractItemModel |
49 QModelIndex parent(const QModelIndex &index) const; | 51 QModelIndex parent(const QModelIndex &index) const; |
50 | 52 |
51 int rowCount(const QModelIndex &parent = QModelIndex()) const; | 53 int rowCount(const QModelIndex &parent = QModelIndex()) const; |
52 int columnCount(const QModelIndex &parent = QModelIndex()) const; | 54 int columnCount(const QModelIndex &parent = QModelIndex()) const; |
53 | 55 |
54 QModelIndex getModelIndexForFrame(int frame) const; | 56 QModelIndex getModelIndexForFrame(sv_frame_t frame) const; |
55 int getFrameForModelIndex(const QModelIndex &) const; | 57 sv_frame_t getFrameForModelIndex(const QModelIndex &) const; |
56 | 58 |
57 void sort(int column, Qt::SortOrder order = Qt::AscendingOrder); | 59 void sort(int column, Qt::SortOrder order = Qt::AscendingOrder); |
58 | 60 |
59 QModelIndex findText(QString text) const; | 61 QModelIndex findText(QString text) const; |
60 | 62 |