diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2015-11-09 20:42:11 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-11-10 09:08:10 -0800 |
commit | 36314a86f817c0d2c56aeca497ce3e29ba8db54a (patch) | |
tree | 2ce9e1cb7c9c8a267410afe264837c073140707d /qt-models/tableprintmodel.h | |
parent | b8c71ef6cd3c5724be620725087c11aae290314a (diff) | |
download | subsurface-36314a86f817c0d2c56aeca497ce3e29ba8db54a.tar.gz |
qt-models: remove obsolete printer related classes
The profileprintmodel.cpp/.h and the
tableprintmode.cpp/.h pairs are obsolete.
The print layouting is now handled via the Grantlee library
and HTML.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models/tableprintmodel.h')
-rw-r--r-- | qt-models/tableprintmodel.h | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/qt-models/tableprintmodel.h b/qt-models/tableprintmodel.h deleted file mode 100644 index 9263d10d2..000000000 --- a/qt-models/tableprintmodel.h +++ /dev/null @@ -1,45 +0,0 @@ -#ifndef TABLEPRINTMODEL_H -#define TABLEPRINTMODEL_H - -#include <QAbstractTableModel> - -/* 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<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; -}; - -#endif |