TechDraw: centralize usertype constants

This commit is contained in:
Benjamin Bræstrup Sayoc
2025-05-16 13:59:17 +02:00
committed by Benjamin Nauck
parent 68aaa50100
commit 4e95213e0a
52 changed files with 224 additions and 152 deletions

View File

@@ -37,6 +37,8 @@ QT_END_NAMESPACE
#include <Base/Parameter.h>
#include <Base/Vector3D.h>
#include "QGIUserTypes.h"
namespace TechDrawGui
{
@@ -46,7 +48,7 @@ public:
explicit QGCustomText(QGraphicsItem* parent = nullptr);
~QGCustomText() override {}
enum {Type = QGraphicsItem::UserType + 130};
enum {Type = UserType::QGCustomText};
int type() const override { return Type;}
void paint(QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget = nullptr ) override;