D7954: Fix repaint loop in KToolBar

Jean-Baptiste Mardelle noreply at phabricator.kde.org
Thu Oct 5 12:46:53 UTC 2017


mardelle added a comment.


  So did some more tests, and the loop is caused by the tb->settext() call. The QAbstractButton setText method checks if :
  d->text == text
  
  But d->text contains the & accel marker and not text, so we end up comparing 'ren&der' with 'render' on paint, thus the loop. I will review & update my patch tomorrow

REPOSITORY
  R263 KXmlGui

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

To: mardelle, #frameworks, ilic, dfaure
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20171005/725cc302/attachment.html>


More information about the Kde-frameworks-devel mailing list