summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/divetextitem.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-02 19:54:34 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-02 19:54:34 -0800
commit8ea7f404574c2ee571d2dde6bb6be3791e962150 (patch)
tree6a050178bfc71bf10558968f2a3bc0a12d8c525f /qt-ui/profile/divetextitem.h
parentb273c1b0ca7bfe933e7c83742f1610f6bbe3f4d3 (diff)
parentdf7818a9b8495285b4d9812e5d6d50d6f9c08813 (diff)
downloadsubsurface-8ea7f404574c2ee571d2dde6bb6be3791e962150.tar.gz
Merge branch 'cmakeAndPreferences'
Diffstat (limited to 'qt-ui/profile/divetextitem.h')
-rw-r--r--qt-ui/profile/divetextitem.h38
1 files changed, 0 insertions, 38 deletions
diff --git a/qt-ui/profile/divetextitem.h b/qt-ui/profile/divetextitem.h
deleted file mode 100644
index 3991fe7f3..000000000
--- a/qt-ui/profile/divetextitem.h
+++ /dev/null
@@ -1,38 +0,0 @@
-#ifndef DIVETEXTITEM_H
-#define DIVETEXTITEM_H
-
-#include <QObject>
-#include <QGraphicsItemGroup>
-#include "graphicsview-common.h"
-#include <QBrush>
-
-/* A Line Item that has animated-properties. */
-class DiveTextItem : public QObject, public QGraphicsItemGroup {
- Q_OBJECT
- Q_PROPERTY(QPointF pos READ pos WRITE setPos)
- Q_PROPERTY(qreal opacity READ opacity WRITE setOpacity)
-public:
- DiveTextItem(QGraphicsItem *parent = 0);
- void setText(const QString &text);
- void setAlignment(int alignFlags);
- void setScale(double newscale);
- void setBrush(const QBrush &brush);
- const QString &text();
- void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
-
-private
-slots:
- void fontPrintScaleUpdate(double scale);
-
-private:
- void updateText();
- int internalAlignFlags;
- QGraphicsPathItem *textBackgroundItem;
- QGraphicsPathItem *textItem;
- QString internalText;
- double printScale;
- double scale;
- bool connected;
-};
-
-#endif // DIVETEXTITEM_H