<table><tr><td style="">ngraham created this revision.<br />ngraham added reviewers: Plasma, mart, davidedmundson.<br />Restricted Application added a project: Frameworks.<br />Restricted Application added a subscriber: kde-frameworks-devel.<br />ngraham 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/D14345">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The PlasmaComponents2 <tt style="background: #ebebeb; font-size: 13px;">TextField</tt> can draw its own <span><span class="phui-tag-view phui-tag-type-shade phui-tag-grey phui-tag-shade "><span class="phui-tag-core ">Clear</span></span></span> button, but the PlasmaComponents3 version can't, which impedes our ability to port code to use it without losing features.</p>
<p>This patch implements the same built-in <span><span class="phui-tag-view phui-tag-type-shade phui-tag-grey phui-tag-shade "><span class="phui-tag-core ">Clear</span></span></span> button in the PlasmaComponents3 <tt style="background: #ebebeb; font-size: 13px;">TextField</tt> so that it will be a drop-in replacement for the PlasmaComponents2 version for text fields that need a clear button.</p>
<p>BUG: 396828<br />
CCBUG: 396813<br />
FIXED-IN: 5.49</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Tested with KRunner patched locally in <tt style="background: #ebebeb; font-size: 13px;">RunCommand.qml</tt> to use the TextField from PlasmaComponents3 rather than PlasmaComponents2. Results:</p>
<p>Placeholder text is now visible (See <a href="https://bugs.kde.org/show_bug.cgi?id=396813" class="remarkup-link" target="_blank" rel="noreferrer">https://bugs.kde.org/show_bug.cgi?id=396813</a>):</p>
<p>There's still a clear button when you type some text (and it still works :)):</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R242 Plasma Framework (Library)</div></div></div><br /><div><strong>BRANCH</strong><div><div>pc3-textfield-clear-button (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D14345">https://phabricator.kde.org/D14345</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/declarativeimports/plasmacomponents3/TextField.qml</div></div></div><br /><div><strong>To: </strong>ngraham, Plasma, mart, davidedmundson<br /><strong>Cc: </strong>kde-frameworks-devel, michaelh, ngraham, bruns<br /></div>