Login  Register

[digikam] [Bug 376617] New: Odd behaviour of sidebar buttons under some themes (Adwaita-Qt)

Posted by bugzilla_noreply on Feb 18, 2017; 2:59pm
URL: http://digikam.185.s1.nabble.com/digikam-Bug-376617-New-Odd-behaviour-of-sidebar-buttons-under-some-themes-Adwaita-Qt-tp4694136.html

https://bugs.kde.org/show_bug.cgi?id=376617

            Bug ID: 376617
           Summary: Odd behaviour of sidebar buttons under some themes
                    (Adwaita-Qt)
           Product: digikam
           Version: 5.4.0
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [hidden email]
          Reporter: [hidden email]
  Target Milestone: ---

DMultiTabBarTab::initStyleOption() only sets QStyle::State_AutoRaise flag if
the sidebar button is under the mouse. I think this is incorrect, in that the
button is always 'AutoRaise' - just it should only be drawn raised if under the
mouse or pressed, etc. Its AutoRaise property should be static.

This caused issues with the Qt version of Adwaita - the text of the buttons
would change from being elided to not when the mouse hovered over. This was
partly due to an issue with Adwaita - it contained different metrics for
auto-rasie toolbuttons (I have submitted a pull request to fix this). However,
as stated above I think this flag should be set for all cases.

--
You are receiving this mail because:
You are the assignee for the bug.