D9808: fix incorrect emission of signals by kLineEdit
Dan Weatherill
noreply at phabricator.kde.org
Thu Jan 11 01:59:51 UTC 2018
dweatherill created this revision.
dweatherill added a reviewer: Frameworks.
dweatherill added a project: KDevelop.
Restricted Application added a project: Frameworks.
dweatherill requested review of this revision.
REVISION SUMMARY
This goes with bug report https://bugs.kde.org/show_bug.cgi?id=388798
The unit test of kLineEdit was previously checking incorrectly that textEmitted _HAD_ been emitted when the text is changed with setText(). This is undesired behaviour.
This patch fixes the unit test, and changes the problematic behaviour.
In addition, the private signal is renamed from _k_textChanged to _k_textEmitted to better reflect the desired semantics inline with QLineEdit.
In addition this is the underlying cause of bug https://bugs.kde.org/show_bug.cgi?id=373004 in kdevelop (and probably several others).
REPOSITORY
R284 KCompletion
REVISION DETAIL
https://phabricator.kde.org/D9808
AFFECTED FILES
autotests/klineedit_unittest.cpp
src/klineedit.cpp
src/klineedit.h
src/klineedit_p.h
To: dweatherill, #frameworks
Cc: iodelay, vbspam, njensen, geetamc, Pilzschaf, akshaydeo, surgenight, arrowdodger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20180111/e33edb7c/attachment-0001.html>
More information about the Kde-frameworks-devel
mailing list