Closed spikefishjohn closed 7 months ago
That's quite easy. Change the timeout in gns3/graphics_view.py
line 643 to a higher value, for example to 5000 (5 seconds):
--- a/gns3/graphics_view.py
+++ b/gns3/graphics_view.py
@@ -640,7 +640,7 @@ class GraphicsView(QtWidgets.QGraphicsView):
if item:
# show item coords in the status bar
coords = "X: {} Y: {} Z: {}".format(item.x(), item.y(), item.zValue())
- self._main_window.uiStatusBar.showMessage(coords, 2000)
+ self._main_window.uiStatusBar.showMessage(coords, 5000)
# force the children to redraw because of a problem with QGraphicsEffect
for item in self.scene().selectedItems():
But when doing this, I suggest to change the timeouts of the other uiStatusBar
messages also to the same value to keep a consistent user interface.
Ok so stupid question. Why time it out in the first place? Do other things show up in that field (haven't poked around graphics_view yet. Still going OCD on the telnetlib issue.
If nothing else is writing to there, would it not be better to just keep it there until something else writes to it?
Side note. It would be nice if you could copy x/y to copy/paste buffer somehow. Not sure if that is right click get coords or whatever. Moving the mouse to that window seems too prone to error (mousing over a different node as your getting there).
I have increased all timeouts to 5 seconds excepting for the coordinate messages. The status bar message can be reset when clicking on the scene.
Side note. It would be nice if you could copy x/y to copy/paste buffer somehow. Not sure if that is right click get coords or whatever. Moving the mouse to that window seems too prone to error (mousing over a different node as your getting there).
The easiest would be to add a shortcut (something like CTRL+ something) that would copy the current status bar message to the clipboard. Would that be enough for you?
I've added the CTRL+C shortcut, this will copy the content of the status bar to the clipboard. Let me know if you want an alternative shortcut. Thanks 👍
Is your feature request related to a problem? Please describe. When you hover over something on the map the X Y coordinates will show on the lower left of the screen for about a second then disappear.
Describe the solution you'd like It would be nice if the tool tip didn't disappear until no longer hovering or just waited much longer before disappearing.