From c9304892e0fef21fa8cf786c366b48722b9632ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20Hellstr=C3=B6mer?= Date: Wed, 12 Mar 2025 21:16:25 +0100 Subject: [PATCH] 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. --- sources/qetgraphicsitem/diagramtextitem.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sources/qetgraphicsitem/diagramtextitem.cpp b/sources/qetgraphicsitem/diagramtextitem.cpp index 92ae0a069..6b97994c3 100644 --- a/sources/qetgraphicsitem/diagramtextitem.cpp +++ b/sources/qetgraphicsitem/diagramtextitem.cpp @@ -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 to move"); + } + + setToolTip(str_ToolTip); update(); }