mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Merge pull request #386 from elevatormind/master
Mouse hover text for dynamic text items
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user