D21354: Port to new connect syntax
Stefan BrĂ¼ns
noreply at phabricator.kde.org
Wed May 22 23:18:12 BST 2019
bruns added inline comments.
INLINE COMMENTS
> delegate.cpp:46
> + connect(comboBox, QOverload<int>::of(&QComboBox::activated),
> + this, &UserPermissionDelegate::emitCommitData);
>
use a lambda here:
- avoids the single-use `emitCommitData` wrapper
- avoids the need for `qobject_cast<QWidget*>(sender())`, which is the combobox (just capture it).
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/f00fee9a/attachment-0001.html>
More information about the Kde-frameworks-devel
mailing list