From 7c7469b8ab690a79d8ba4ed7ea8da4865664818c Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Mon, 26 Feb 2024 19:40:27 +0100 Subject: [PATCH] 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 --- profile-widget/divetextitem.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/profile-widget/divetextitem.h b/profile-widget/divetextitem.h index 4e1a321df..9e65f8b54 100644 --- a/profile-widget/divetextitem.h +++ b/profile-widget/divetextitem.h @@ -2,17 +2,12 @@ #ifndef DIVETEXTITEM_H #define DIVETEXTITEM_H -#include -#include #include class QBrush; /* A Line Item that has animated-properties. */ -class DiveTextItem : public QObject, public QGraphicsPixmapItem { - Q_OBJECT - Q_PROPERTY(QPointF pos READ pos WRITE setPos) - Q_PROPERTY(qreal opacity READ opacity WRITE setOpacity) +class DiveTextItem : public QGraphicsPixmapItem { public: // 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