diff --git a/libs/blockview/blockbusitem.cpp b/libs/blockview/blockbusitem.cpp index 42c8f6b..14be82f 100644 --- a/libs/blockview/blockbusitem.cpp +++ b/libs/blockview/blockbusitem.cpp @@ -321,13 +321,13 @@ BlockBusItem::PointInfo BlockBusItem::pointInfo(QPointF pos) const { testPoint(pos, &pi, & si); if (pi < 0 && si < 0) return ret; if (si >= 0) { - ret.type = PointInfo::tSegment; + ret.type = PointInfo::Type::Segment; } else { if (endpoints().contains(pi)) { - ret.type = PointInfo::tEndpoint; + ret.type = PointInfo::Type::Endpoint; ret.pin = connections_.value(pi, nullptr); } else - ret.type = PointInfo::tNode; + ret.type = PointInfo::Type::Node; } return ret; } diff --git a/libs/blockview/blockbusitem.h b/libs/blockview/blockbusitem.h index ef76f97..9bef578 100644 --- a/libs/blockview/blockbusitem.h +++ b/libs/blockview/blockbusitem.h @@ -35,13 +35,13 @@ public: ~BlockBusItem() {;} struct QAD_BLOCKVIEW_EXPORT PointInfo { - enum Type { - tNone, - tNode, // point > 2 segments - tEndpoint, - tSegment + enum class Type { + None, + Node, // point > 2 segments + Endpoint, + Segment }; - Type type = tNone; + Type type = Type::None; BlockItemPin * pin = nullptr; // if tEndpoint and pin connected };