qBittorrent
qBittorrent copied to clipboard
Highlighted box on alternate speed button in status bar when clicked.
qBittorrent & operating system versions
qBittorrent: 4.3.8 x64 Operating system: Windows 10 Pro Version 21H1 x64 (OS Build 19043.1237) Qt: 5.15.2 libtorrent-rasterbar: 1.2.14
What is the problem?
When the normal/alternative speed button is clicked in statusbar, the alternative speed icon displays like a highlighted box around it. (the normal speed icon doesn't suffer from this)
Steps to reproduce
- Click the speed button in status bar to change to
alternative speed - Observe highlighted box
- Click the speed button again to return to
normal speed - Observe highlighted box doesn't appear.
Additional context

The box around it (when clicked) is on previous official/master & CI builds too.
Changing m_altSpeedsBtn->setDown(true); to m_altSpeedsBtn->setDown(false); fixes this.
https://github.com/qbittorrent/qBittorrent/blob/85183334063b24651b9d34c9e371ab45effdb3e8/src/gui/statusbar.cpp#L243

Log(s) & preferences file(s)
No response
If this is intended behavior - then I will open a "Feature request" to have it removed. If it is not intended then I will be more than glad to create a PR to fix.
It's intended. It's supposed to show that the pushButton is clicked and it stays down, now whether the graphical effect of it succeeds to convey that impression is debatable. It also has an effect on 2 signals but i don't think we care about that https://doc.qt.io/qt-5/qabstractbutton.html#down-prop. Personally, i'd prefer to keep it.
The normal & alterantive icons imo are just as good at representing that the desired effect is applied.....having the box removed has better consistency in the GUI & also with the box displayed it seems to have a negative impact on the alternative icon (top is clipped, see both screenshots for comparison)
I would request to remove this button altogether.
Perhaps something like a toggle switch could be looked in to....https://stackoverflow.com/questions/14780517/toggle-switch-in-qt