[plasmashell] [Bug 518024] Kirigami.Icon in custom compactRepresentation absorbs mouse events, blocking parent MouseArea clicks

"Nate Graham" <[email protected]>
Newsgroups gmane.comp.kde.devel.bugs
Message-ID <[email protected]/>
https://bugs.kde.org/show_bug.cgi?id=518024

Nate Graham <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
             Status|REPORTED                    |RESOLVED
         Resolution|---                         |NOT A BUG

--- Comment #1 from Nate Graham <[email protected]> ---
I can't reproduce the issue with the following simple minimal reproducer for
the assertion that Kirigami.Icon eats clicks that ought to be handled by a
child MouseArea:

import QtQuick
import org.kde.kirigami as Kirigami

Item {
    Kirigami.Icon {
        id: icon
        anchors.centerIn: parent
        source: "edit-bomb"
        implicitWidth: 22
        implicitHeight: 22

        MouseArea {
            anchors.fill: parent
            onClicked: icon.source = "face-sick"
        }
    }
}


Clicking the icon changes it to the sick face as expected.

Thus, the issue you're experiencing is caused by something else. Best of luck
figuring out what it is!

-- 
You are receiving this mail because:
You are watching all bug changes.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.