add tooltip for referenced entities
@@ -74,8 +74,11 @@ class DXFTagsModel(QAbstractTableModel):
return self._tags[index.row()]
elif role == Qt.ToolTipRole:
tag = self._tags[index.row()]
- if is_invalid_handle(tag):
- return f"Handle {tag.value} does not exist."
+ if tag.code in POINTER_CODES:
+ if tag.value.upper() in self._valid_handles:
+ return f"Double click to go to the referenced entity"
+ else:
+ return f"Handle does not exist"
def headerData(
self, section: int, orientation: Qt.Orientation, role: int = ...
