<table><tr><td style="">dweatherill created this revision.<br />dweatherill added a reviewer: Frameworks.<br />dweatherill added a project: KDevelop.<br />Restricted Application added a project: Frameworks.<br />dweatherill requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D9808" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This goes with bug report <a href="https://bugs.kde.org/show_bug.cgi?id=388798" class="remarkup-link" target="_blank" rel="noreferrer">https://bugs.kde.org/show_bug.cgi?id=388798</a></p>

<p>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.</p>

<p>This patch fixes the unit test, and changes the problematic behaviour.<br />
In addition, the private signal is renamed from _k_textChanged to _k_textEmitted to better reflect the desired semantics inline with QLineEdit.</p>

<p>In addition this is the underlying cause of bug <a href="https://bugs.kde.org/show_bug.cgi?id=373004" class="remarkup-link" target="_blank" rel="noreferrer">https://bugs.kde.org/show_bug.cgi?id=373004</a> in kdevelop (and probably several others).</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R284 KCompletion</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D9808" rel="noreferrer">https://phabricator.kde.org/D9808</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/klineedit_unittest.cpp<br />
src/klineedit.cpp<br />
src/klineedit.h<br />
src/klineedit_p.h</div></div></div><br /><div><strong>To: </strong>dweatherill, Frameworks<br /><strong>Cc: </strong>iodelay, vbspam, njensen, geetamc, Pilzschaf, akshaydeo, surgenight, arrowdodger<br /></div>