Mouse hover text for dynamic text items

- Added text for dynamic text item to indicate that shift needs to be held down to move the text.
This commit is contained in:
Magnus Hellströmer
2025-03-12 21:16:25 +01:00
parent 3c2c889922
commit c9304892e0

View File

@@ -483,7 +483,13 @@ void DiagramTextItem::hoverEnterEvent(QGraphicsSceneHoverEvent *e) {
m_mouse_hover = true;
QString str_ToolTip = toPlainText();
setToolTip( str_ToolTip );
// Add movement instruction for DynamicElementTextItem
if (inherits("DynamicElementTextItem")) {
str_ToolTip += tr("\n<Shift> to move");
}
setToolTip(str_ToolTip);
update();
}