diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2015-05-29 13:53:07 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-05-29 14:13:12 -0700 |
commit | 60dc9f4ab36acf83ed599a7909ca164af3c9c227 (patch) | |
tree | 2d7b6ab2111e06fafda1ef4dd4c92159d9e0ceee /qt-models/models.h | |
parent | 85d4bb8a7016fa856e5e1278352ce18939450e36 (diff) | |
download | subsurface-60dc9f4ab36acf83ed599a7909ca164af3c9c227.tar.gz |
Move TablePrintModel to Qt-models
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models/models.h')
-rw-r--r-- | qt-models/models.h | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/qt-models/models.h b/qt-models/models.h index 32f0f4321..94fcc5129 100644 --- a/qt-models/models.h +++ b/qt-models/models.h @@ -22,45 +22,6 @@ #include "cleanertablemodel.h" #include "treemodel.h" -/* TablePrintModel: - * for now we use a blank table model with row items TablePrintItem. - * these are pretty much the same as DiveItem, but have color - * properties, as well. perhaps later one a more unified model has to be - * considered, but the current TablePrintModel idea has to be extended - * to support variadic column lists and column list orders that can - * be controlled by the user. - */ -struct TablePrintItem { - QString number; - QString date; - QString depth; - QString duration; - QString divemaster; - QString buddy; - QString location; - unsigned int colorBackground; -}; - -class TablePrintModel : public QAbstractTableModel { - Q_OBJECT - -private: - QList<struct TablePrintItem *> list; - -public: - ~TablePrintModel(); - TablePrintModel(); - - int rows, columns; - void insertRow(int index = -1); - void callReset(); - - QVariant data(const QModelIndex &index, int role) const; - bool setData(const QModelIndex &index, const QVariant &value, int role); - int rowCount(const QModelIndex &parent) const; - int columnCount(const QModelIndex &parent) const; -}; - /* ProfilePrintModel: * this model is used when printing a data table under a profile. it requires * some exact usage of setSpan(..) on the target QTableView widget. |