mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
profile: don't derive DiveTextItem from QObject
This was used for animations, but these are now controlled centrally, so no need for the Q_PROPERTY rigmarole. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
76faecb379
commit
7c7469b8ab
1 changed files with 1 additions and 6 deletions
|
@ -2,17 +2,12 @@
|
||||||
#ifndef DIVETEXTITEM_H
|
#ifndef DIVETEXTITEM_H
|
||||||
#define DIVETEXTITEM_H
|
#define DIVETEXTITEM_H
|
||||||
|
|
||||||
#include <QObject>
|
|
||||||
#include <QFont>
|
|
||||||
#include <QGraphicsPixmapItem>
|
#include <QGraphicsPixmapItem>
|
||||||
|
|
||||||
class QBrush;
|
class QBrush;
|
||||||
|
|
||||||
/* A Line Item that has animated-properties. */
|
/* A Line Item that has animated-properties. */
|
||||||
class DiveTextItem : public QObject, public QGraphicsPixmapItem {
|
class DiveTextItem : public QGraphicsPixmapItem {
|
||||||
Q_OBJECT
|
|
||||||
Q_PROPERTY(QPointF pos READ pos WRITE setPos)
|
|
||||||
Q_PROPERTY(qreal opacity READ opacity WRITE setOpacity)
|
|
||||||
public:
|
public:
|
||||||
// Note: vertical centring is based on the actual rendered text, not on the font metrics.
|
// Note: vertical centring is based on the actual rendered text, not on the font metrics.
|
||||||
// This is fine for placing text in the "tankbar", but it will look disastrous when
|
// This is fine for placing text in the "tankbar", but it will look disastrous when
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue