Skip to content

update graph tooltip when not moving#55

Open
phyrophone wants to merge 3 commits into
benapetr:masterfrom
phyrophone:graph-tooltip-v4
Open

update graph tooltip when not moving#55
phyrophone wants to merge 3 commits into
benapetr:masterfrom
phyrophone:graph-tooltip-v4

Conversation

@phyrophone
Copy link
Copy Markdown
Contributor

Previously, the graph tooltip only got updated when it was moved left/right. This pr fixes that.

phyrophone added 3 commits May 9, 2026 13:22
update the text of the tooltip even when not moving the tooltip
the tooltip is being set both by this line and by graphwidget.cpp, causing the tooltip's text to flicker back and forth.
configureGraph(this->ui->copyBwGraphWidget);
this->ui->copyBwGraphWidget->SetSeriesNames(tr("TX"), tr("RX"));
this->ui->copyBwGraphWidget->SetValueFormat(GraphWidget::ValueFormat::BytesPerSec);
this->ui->copyBwGraphWidget->setToolTip(tr("Copy bandwidth: light trace = TX, dark trace = RX"));
Copy link
Copy Markdown
Owner

@benapetr benapetr May 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this removed, was it redundant in the UI? I don't have a test machine with GPU with me right now to see the change

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

video of the bug:

2026-05-16.21-26-06.mp4

Message from the commit:

remove conflicting graph tooltip
the tooltip is being set both by this line and by graphwidget.cpp, causing the tooltip's text to flicker back and forth.

originally I thought that my changes triggered the bug. Though testing it now, the bug seems to also be present on master

@benapetr
Copy link
Copy Markdown
Owner

benapetr commented May 22, 2026

yes I am aware of that bug, but I am not sure if this is fixing it - or is it? can you confirm this is fixing it? I though the solution for this flicker would be to add some kind of timer / delay that prevents updating the tooltip more often than N seconds, but maybe what you did fixes it as well? It seems to me that whatever you are fixing in this PR is trying to fix something else though - just judging from the code changes this makes the tooltip update automatically when mouse isn't moving (is on constant spot) and the underlying graph is moving. Which is... interesting and probably more wanted than unwanted, although I can imagine scenarios where it could actually be unwanted as well - imagine you have some peak in the graph, you want to check the number, you move the mouse on it, tooltip appears - now you have time to read it. With this patch tooltip will be changing each tick (unless you manage to mouse the move fast enough to keep it hovered on that peak you want to observe).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants