D15328: kfilewidget: convert connect syntax

2018-10-08 Thread Jaime Torres Amate
jtamate planned changes to this revision. jtamate added a comment. QTest::qWaitForWindowActive fails because I use kwin Focus stealing prevention High, therefore the windows doesn't become active until I click on them in the task bar or switch to them. And qWaitForWindowExposed doesn't help

D15328: kfilewidget: convert connect syntax

2018-10-08 Thread Jaime Torres Amate
jtamate updated this revision to Diff 43106. jtamate added a comment. Fix a crash ,caused by a still connected signal, after running again the unittests. kfilewidgettest still doesn't pass because QTest::qWaitForWindowActive fails for me. Don't accept this revision until kfilewidgettes

D15328: kfilewidget: convert connect syntax

2018-09-09 Thread Jaime Torres Amate
jtamate updated this revision to Diff 41246. jtamate added a comment. Use nullptr instead of 0. Remove the copied/pasted part of the cause of two dissconnects. @bruns, as I'm not sure if the code emits other signals for lineEdit, I prefer to keep it as it was. REPOSITORY R241 KIO CH

D15328: kfilewidget: convert connect syntax

2018-09-07 Thread Stefan BrĂ¼ns
bruns added inline comments. INLINE COMMENTS > anthonyfieroni wrote in kfilewidget.cpp:1225 > QObject::disconnect(m_connEditTextChanged); > m_connEditTextChanged = QMetaObject::Connection(); Me neither ... But me wonders if this should not use `{QSignalBlocker(locationEdit); ...}` instead.

D15328: kfilewidget: convert connect syntax

2018-09-07 Thread Jaime Torres Amate
jtamate updated this revision to Diff 41150. jtamate marked an inline comment as done. jtamate added a comment. Changed to 'Anonymous' connects and disconnects. Even if the documentation say: use 0 as a wildcard, the compiler thinks it should be a nullptr kfilewidget.cpp:1222:74: war

D15328: kfilewidget: convert connect syntax

2018-09-07 Thread Jaime Torres Amate
jtamate marked an inline comment as done. jtamate added inline comments. INLINE COMMENTS > anthonyfieroni wrote in kfilewidget.cpp:1225 > QObject::disconnect(m_connEditTextChanged); > m_connEditTextChanged = QMetaObject::Connection(); I'm sorry, but I still don't get it. Doesn't connect/disc

D15328: kfilewidget: convert connect syntax

2018-09-07 Thread Anthony Fieroni
anthonyfieroni added inline comments. INLINE COMMENTS > jtamate wrote in kfilewidget.cpp:1225 > I'm sorry but I don't understand your comment. > m_connEditTextChanged is created in the constructor, line 585. > Afterwards it is disconnected and reconnected in: > setDummyHistoryEntry, removeDummyHi

D15328: kfilewidget: convert connect syntax

2018-09-07 Thread Jaime Torres Amate
jtamate added inline comments. INLINE COMMENTS > anthonyfieroni wrote in kfilewidget.cpp:1225 > Whenever disconnect after that reset connection to QMetaObject::Connection > cause disconnect empty connection is safe, double disconnect same one - does > not. I'm sorry but I don't understand your

D15328: kfilewidget: convert connect syntax

2018-09-07 Thread Anthony Fieroni
anthonyfieroni added inline comments. INLINE COMMENTS > kfilewidget.cpp:1225 > // the KDirOperator's view-selection in there > -QObject::disconnect(locationEdit, SIGNAL(editTextChanged(QString)), > -q, SLOT(_k_slotLocationChanged(QString))); > +QObject::discon

D15328: kfilewidget: convert connect syntax

2018-09-07 Thread Jaime Torres Amate
jtamate updated this revision to Diff 41148. jtamate marked 2 inline comments as done. jtamate added a comment. Changed [&] by [this]in the lambdas. Added a lambda for KActionCollection::addAction. I didn't knew it was already possible. REPOSITORY R241 KIO CHANGES SINCE LAST UPDATE htt

D15328: kfilewidget: convert connect syntax

2018-09-07 Thread Kai Uwe Broulik
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 signa

D15328: kfilewidget: convert connect syntax

2018-09-07 Thread Jaime Torres Amate
jtamate created this revision. jtamate added reviewers: dfaure, Frameworks. Herald added a project: Frameworks. Herald added a subscriber: kde-frameworks-devel. jtamate requested review of this revision. REVISION SUMMARY Convert from the old syntax to the new connect syntax TEST PLAN The open