mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 14:50:53 +01:00
Merge pull request #386 from elevatormind/master
Mouse hover text for dynamic text items
This commit is contained in:
@@ -483,6 +483,12 @@ void DiagramTextItem::hoverEnterEvent(QGraphicsSceneHoverEvent *e) {
|
|||||||
|
|
||||||
m_mouse_hover = true;
|
m_mouse_hover = true;
|
||||||
QString str_ToolTip = toPlainText();
|
QString str_ToolTip = toPlainText();
|
||||||
|
|
||||||
|
// Add movement instruction for DynamicElementTextItem
|
||||||
|
if (inherits("DynamicElementTextItem")) {
|
||||||
|
str_ToolTip += tr("\n<Shift> to move");
|
||||||
|
}
|
||||||
|
|
||||||
setToolTip(str_ToolTip);
|
setToolTip(str_ToolTip);
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user