D9227: [Breeze widget style] Override QLineEditIconButton paint event to force Active icon on press

Kai Uwe Broulik noreply at phabricator.kde.org
Wed Dec 6 15:49:22 UTC 2017


broulik added a comment.


  The problem is that the button is entirely custom-painted by Qt:
  
    void QLineEditIconButton::paintEvent(QPaintEvent *)
    {
        [...]
    
        // Note isDown should really use the active state but in most styles
        // this has no proper feedback
        QIcon::Mode state = QIcon::Disabled;
        if (isEnabled())
            state = isDown() ? QIcon::Selected : QIcon::Normal;
    
        [...]
    
        const QPixmap iconPixmap = icon().pixmap(window, iconSize, state, QIcon::Off);
    
        [...]
    }
  
  which is

REPOSITORY
  R31 Breeze

REVISION DETAIL
  https://phabricator.kde.org/D9227

To: broulik, #plasma, #vdg, hpereiradacosta
Cc: plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20171206/d0827d46/attachment.html>


More information about the Plasma-devel mailing list