mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-31 08:19:58 +01:00
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:
@@ -483,7 +483,13 @@ void DiagramTextItem::hoverEnterEvent(QGraphicsSceneHoverEvent *e) {
|
|||||||
|
|
||||||
m_mouse_hover = true;
|
m_mouse_hover = true;
|
||||||
QString str_ToolTip = toPlainText();
|
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();
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user