mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Add the depth text.
Depth text got added to the new profile. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
caba6500d6
commit
0a4e21a168
6 changed files with 48 additions and 2 deletions
|
@ -21,6 +21,7 @@
|
|||
class DiveTextItem;
|
||||
class DiveCartesianAxis;
|
||||
class QAbstractTableModel;
|
||||
struct plot_data;
|
||||
|
||||
class AbstractProfilePolygonItem : public QObject, public QGraphicsPolygonItem{
|
||||
Q_OBJECT
|
||||
|
@ -43,13 +44,16 @@ protected:
|
|||
QAbstractTableModel *dataModel;
|
||||
int hDataColumn;
|
||||
int vDataColumn;
|
||||
QList<DiveTextItem*> texts;
|
||||
};
|
||||
|
||||
class DiveProfileItem : public AbstractProfilePolygonItem{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0);
|
||||
virtual void modelDataChanged();
|
||||
void plot_depth_sample(struct plot_data *entry,QFlags<Qt::AlignmentFlag> flags,const QColor& color);
|
||||
};
|
||||
|
||||
class DiveTemperatureItem : public AbstractProfilePolygonItem{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue