enum class
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user