D21354: Port to new connect syntax

Stefan BrĂ¼ns noreply at phabricator.kde.org
Thu May 23 00:06:40 BST 2019


bruns added inline comments.

INLINE COMMENTS

> ngraham wrote in delegate.cpp:46
> I'd love to, and I tried, but this stuff is pretty new to me and I kept getting `error: cannot define member function` What's wrong with this?
> 
>   connect(comboBox, &QComboBox::activated,
>           [comboBox]() { emit commitData(comboBox); });

commitData is an inherited member function from `QItemDelegate`, i.e. you have to also capture `this`

REPOSITORY
  R432 File Sharing (Samba) integration

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

To: ngraham, #frameworks, apol
Cc: bruns, aacid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190522/adecb9a6/attachment.html>


More information about the Kde-frameworks-devel mailing list