From 2c87a057ccdc090840226b0bf3d0fd3ca1c8f453 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Wed, 10 Jan 2024 21:22:17 +0100 Subject: [PATCH] profile: remove DiveRectItem This class wasn't used anymore. Signed-off-by: Berthold Stoeger --- Subsurface-mobile.pro | 2 -- profile-widget/CMakeLists.txt | 2 -- profile-widget/diverectitem.cpp | 6 ------ profile-widget/diverectitem.h | 18 ------------------ 4 files changed, 28 deletions(-) delete mode 100644 profile-widget/diverectitem.cpp delete mode 100644 profile-widget/diverectitem.h diff --git a/Subsurface-mobile.pro b/Subsurface-mobile.pro index c1b1ea177..48e4823e3 100644 --- a/Subsurface-mobile.pro +++ b/Subsurface-mobile.pro @@ -176,7 +176,6 @@ SOURCES += subsurface-mobile-main.cpp \ profile-widget/pictureitem.cpp \ profile-widget/tooltipitem.cpp \ profile-widget/divelineitem.cpp \ - profile-widget/diverectitem.cpp \ profile-widget/divetextitem.cpp \ profile-widget/profileview.cpp \ qt-quick/chartitem.cpp \ @@ -336,7 +335,6 @@ HEADERS += \ profile-widget/divecartesianaxis.h \ profile-widget/divelineitem.h \ profile-widget/divepixmapcache.h \ - profile-widget/diverectitem.h \ profile-widget/divetextitem.h \ profile-widget/profileview.h \ profile-widget/profiletranslations.h \ diff --git a/profile-widget/CMakeLists.txt b/profile-widget/CMakeLists.txt index f6ec12ecb..bc4dcaa92 100644 --- a/profile-widget/CMakeLists.txt +++ b/profile-widget/CMakeLists.txt @@ -14,8 +14,6 @@ set(SUBSURFACE_PROFILE_LIB_SRCS divepercentageitem.h diveprofileitem.cpp diveprofileitem.h - diverectitem.cpp - diverectitem.h divetextitem.cpp divetextitem.h pictureitem.h diff --git a/profile-widget/diverectitem.cpp b/profile-widget/diverectitem.cpp deleted file mode 100644 index 8cfad46c7..000000000 --- a/profile-widget/diverectitem.cpp +++ /dev/null @@ -1,6 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0 -#include "diverectitem.h" - -DiveRectItem::DiveRectItem(QObject *parent, QGraphicsItem *parentItem) : QObject(parent), QGraphicsRectItem(parentItem) -{ -} diff --git a/profile-widget/diverectitem.h b/profile-widget/diverectitem.h deleted file mode 100644 index aa6b7d56f..000000000 --- a/profile-widget/diverectitem.h +++ /dev/null @@ -1,18 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0 -#ifndef DIVERECTITEM_H -#define DIVERECTITEM_H - -#include -#include - -class DiveRectItem : public QObject, public QGraphicsRectItem { - Q_OBJECT - Q_PROPERTY(QRectF rect WRITE setRect READ rect) - Q_PROPERTY(QPointF pos WRITE setPos READ pos) - Q_PROPERTY(qreal x WRITE setX READ x) - Q_PROPERTY(qreal y WRITE setY READ y) -public: - DiveRectItem(QObject *parent = 0, QGraphicsItem *parentItem = 0); -}; - -#endif // DIVERECTITEM_H