D5979: Consistently emit MouseEventListener::pressed signal

Aleix Pol Gonzalez noreply at phabricator.kde.org
Wed May 31 22:18:45 UTC 2017


apol added a comment.


  In https://phabricator.kde.org/D5979#112068, @davidedmundson wrote:
  
  > What things are not consistent?
  
  
  
  
    connect(m_listener, &MEL::pressed, this, &ThisClass:blah);
    
    void ThisClass::blah()
    {
        if (m_listener->isPressed()) changeSomethingNowThatItsPressed();
    }
  
  The same reason why any setter sets the value before emitting.

REPOSITORY
  R296 KDeclarative

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

To: apol, #frameworks
Cc: broulik, davidedmundson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20170531/4624212b/attachment.html>


More information about the Kde-frameworks-devel mailing list