mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02:00
Merge pull request #386 from elevatormind/master
Mouse hover text for dynamic text items
This commit is contained in:
commit
6afd9fe48d
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user