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

            Bug ID: 528502
           Summary: RTL: Sub-menu indicator icon doesn't flip when layout
                    direction changes at runtime
    Classification: Frameworks and Libraries
           Product: Union
      Version First unspecified
       Reported In:
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: QtWidgets Output
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

Created attachment 198192
  --> https://bugs.kde.org/attachment.cgi?id=198192&action=edit
Reproducer

DESCRIPTION
As noted in bug 528500, when using Union's Widgets Style on a QMenu that has
sub-menus, the sub-menu indicator icon points to the right direction - the one
from which the sub-menu opens.

However this is only correct for the layout direction that was in force when
the application was started. If the menu's layout direction is changed after
that point, the icon does not flip to point to the opposite direction as
expected and as is currently happening in the Breeze style.

STEPS TO REPRODUCE
1. Use the attached reproducer program.
2. Start it normally, observe which way the sub-menu indicator in the File menu
points.
3. Use the File > Toggle Layout Direction menu item to flip the application's
layout direction to RTL.

OBSERVED RESULT
The sub-menu indicator should point the opposite direction (to the left)

EXPECTED RESULT
It still points to the right

SOFTWARE/OS VERSIONS
KDE Plasma Version: 6.8.2
KDE Frameworks Version: Union from recent master (8194ce1)
Qt Version: 6.12.0

ADDITIONAL INFORMATION
It appears that the icon variant to use is determined by the icon loader, and
is cached.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to