Mercurial > hg > svcore
comparison data/model/ModelDataTableModel.h @ 427:72ec275e458b
* Basic implementation of add and remove point in data editor
* Improve resilience of frame - real-time - frame round-trip conversions
author | Chris Cannam |
---|---|
date | Mon, 16 Jun 2008 14:48:42 +0000 |
parents | 2386582f67cd |
children | 3e1d190048f4 |
comparison
equal
deleted
inserted
replaced
426:2386582f67cd | 427:72ec275e458b |
---|---|
33 | 33 |
34 QVariant data(const QModelIndex &index, int role) const; | 34 QVariant data(const QModelIndex &index, int role) const; |
35 | 35 |
36 bool setData(const QModelIndex &index, const QVariant &value, int role); | 36 bool setData(const QModelIndex &index, const QVariant &value, int role); |
37 | 37 |
38 bool insertRow(int row, const QModelIndex &parent = QModelIndex()); | |
39 bool removeRow(int row, const QModelIndex &parent = QModelIndex()); | |
40 | |
38 Qt::ItemFlags flags(const QModelIndex &index) const; | 41 Qt::ItemFlags flags(const QModelIndex &index) const; |
39 | 42 |
40 QVariant headerData(int section, Qt::Orientation orientation, | 43 QVariant headerData(int section, Qt::Orientation orientation, |
41 int role = Qt::DisplayRole) const; | 44 int role = Qt::DisplayRole) const; |
42 | 45 |
53 | 56 |
54 void sort(int column, Qt::SortOrder order = Qt::AscendingOrder); | 57 void sort(int column, Qt::SortOrder order = Qt::AscendingOrder); |
55 | 58 |
56 signals: | 59 signals: |
57 void frameSelected(size_t); | 60 void frameSelected(size_t); |
58 void executeCommand(Command *); | 61 void addCommand(Command *); |
59 | 62 |
60 protected slots: | 63 protected slots: |
61 void modelChanged(); | 64 void modelChanged(); |
62 void modelChanged(size_t, size_t); | 65 void modelChanged(size_t, size_t); |
63 | 66 |