D15328: kfilewidget: convert connect syntax

Kai Uwe Broulik noreply at phabricator.kde.org
Fri Sep 7 11:23:36 BST 2018


broulik added inline comments.

INLINE COMMENTS

> kfilewidget.cpp:440
> +    connect(d->ops, &KDirOperator::urlEntered, this,
> +            [&](const QUrl &url){d->_k_urlEntered(url);});
> +    connect(d->ops, &KDirOperator::fileHighlighted, this,

Shouldn't this be using the `url` from the signal?
Also, please prefer explicit captures over `&` or `=`

> kfilewidget.cpp:473
>  
>      QAction *goToNavigatorAction = coll->addAction(QStringLiteral("gotonavigator"), this, SLOT(_k_activateUrlNavigator()));
>      goToNavigatorAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_L));

Why not change this as well?

REPOSITORY
  R241 KIO

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

To: jtamate, dfaure, #frameworks
Cc: broulik, kde-frameworks-devel, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20180907/f0ebfef0/attachment.html>


More information about the Kde-frameworks-devel mailing list