mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Move ProfilePrintModel to qt-models
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
60dc9f4ab3
commit
33918e6867
6 changed files with 184 additions and 197 deletions
|
@ -22,26 +22,6 @@
|
|||
#include "cleanertablemodel.h"
|
||||
#include "treemodel.h"
|
||||
|
||||
/* 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);
|
||||
};
|
||||
|
||||
class GasSelectionModel : public QStringListModel {
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue