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

            Bug ID: 521285
           Summary: KCategorizedView is unusable
    Classification: Frameworks and Libraries
           Product: frameworks-kitemviews
      Version First unspecified
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: grave
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

Created attachment 193036
  --> https://bugs.kde.org/attachment.cgi?id=193036&action=edit
code snippet

DESCRIPTION
When uniformItemSizes is set to false (default) - there happens a division by
zero
[here](https://invent.kde.org/frameworks/kitemviews/-/blob/master/src/kcategorizedview.cpp?ref_type=heads#L1398)
When I set uniformItemSizes = true, or spacing > 0 to avoid that, it just draws
nothing. 

STEPS TO REPRODUCE
1. Run the attached code
2. Uncomment the line and run again
3. Comment the line where Drawer is added and run again

OBSERVED RESULT
KCategorizedView only works as a regular QListView. When a KCategoryDrawer is
added - it crashes the app or does not work at all.

EXPECTED RESULT
KCategorizedView draws categories and items

SOFTWARE/OS VERSIONS
Operating System: ALT Linux Regular(aka Sisyphus)
KDE Plasma Version: 6.6.5
KDE Frameworks Version: 6.26.0
Qt Version:  6.10.3

ADDITIONAL INFORMATION

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

Reply via email to