mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
33918e6867
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
26 lines
No EOL
703 B
C++
26 lines
No EOL
703 B
C++
#ifndef PROFILEPRINTMODEL_H
|
|
#define PROFILEPRINTMODEL_H
|
|
|
|
#include <QAbstractTableModel>
|
|
|
|
/* 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.
|
|
*/
|
|
class ProfilePrintModel : public QAbstractTableModel {
|
|
Q_OBJECT
|
|
|
|
private:
|
|
int diveId;
|
|
double fontSize;
|
|
|
|
public:
|
|
ProfilePrintModel(QObject *parent = 0);
|
|
int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
|
int columnCount(const QModelIndex &parent = QModelIndex()) const;
|
|
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
|
|
void setDive(struct dive *divePtr);
|
|
void setFontsize(double size);
|
|
};
|
|
|
|
#endif |