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

            Bug ID: 365053
           Summary: Icon overlay discards origin
           Product: frameworks-kguiaddons
           Version: unspecified
          Platform: Compiled Sources
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kdelibs-b...@kde.org
          Reporter: kaillass...@hotmail.fr

The origin is discarded in KOverlayIconEngine::paint which result in badly
placed overlay, p.e. if you're drawing the icon in a QAbstractItemView.

Reproducible: Always

Steps to Reproduce:
1. Create a simple class derived from QAbstractItemModel
2. In data() for Qt::DecorationRole, overlay the icons with
KIconUtils::addOverlay
3. Put the model in a QTreeView

Actual Results:  
The overlay is rendered in non sensical possition when I've managed to spot it.

Expected Results:  
the overlay rendered at the expected position in the base icon.

I'll attached a patch which fixes the issue as I understood it.

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

Reply via email to