Skip to content

Fix tooltip regressions#8359

Open
messmerd wants to merge 11 commits intoLMMS:masterfrom
messmerd:fix-volume-knob-and-fader-regressions
Open

Fix tooltip regressions#8359
messmerd wants to merge 11 commits intoLMMS:masterfrom
messmerd:fix-volume-knob-and-fader-regressions

Conversation

@messmerd
Copy link
Copy Markdown
Member

@messmerd messmerd commented Apr 20, 2026

Regressions fixed by this PR:

  1. Doubled tooltips on some Knobs (Two tooltips are shown for some Knobs #8358)
  2. No dynamic floating text when dragging a Fader
  3. Volume knobs displaying their units as "dBFS%" rather than just "dBFS"

For (1), I reworked how static tooltips work in FloatModelEditorBase. Rather than use QWidget's tooltips, it shadows the tooltip methods from QWidget and redirects them to the existing SimpleTextFloat-based system.

Supporting both "static" and "dynamic" tooltips required some improvements to keep better track of user interactions with the Knobs. There was an existing m_buttonPressed boolean, but this was insufficient, so I converted it into a new InteractionType enum for keeping track of the user interaction state.

See the "Expected Behaviour" section of the bug report for an explanation of how it works now from the user's perspective.

Fixes #8358

LOMM, Compressor, FreeBoy and other plugins have Knobs with both normal
static tooltips (set with setToolTip()) which provide a description of
the Knob's function as well as dynamic floating text showing the model's
current value.

There was a regression causing both of these types of tooltips to be
displayed at the same time. This commit fixes it.
@bratpeki bratpeki self-assigned this Apr 20, 2026
Comment thread src/gui/widgets/SimpleTextFloat.cpp
Comment thread src/gui/widgets/FloatModelEditorBase.cpp Outdated
Comment thread src/gui/widgets/FloatModelEditorBase.cpp Outdated
Comment thread src/gui/widgets/FloatModelEditorBase.cpp
Comment thread plugins/Watsyn/Watsyn.cpp
Comment thread plugins/Delay/DelayControlsDialog.cpp
@bratpeki bratpeki added the needs testing This pull request needs more testing label Apr 24, 2026
Copy link
Copy Markdown
Member

@bratpeki bratpeki left a comment

Choose a reason for hiding this comment

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

Approved for code. Still needs testing.

@extern-stat
Copy link
Copy Markdown
Contributor

I tested this PR and it fixes the 3 regressions listed above, but it introduces a new bug in volume knobs where the context menu shows the value as a percentage but with the dbFS unit:
image

For comparison, this is what it looks like on master:
image

@messmerd messmerd added the bug label May 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug needs testing This pull request needs more testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Two tooltips are shown for some Knobs

3 participants