<table><tr><td style="">rthomsen created this revision.<br />rthomsen added a reviewer: elvisangelaccio.<br />rthomsen set the repository for this revision to R36 Ark.<br />rthomsen added a project: Ark.<br />Restricted Application added a subscriber: kde-utils-devel.
</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/D3573" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>An action was added to Archive menu. The search is mediated through <tt style="background: #ebebeb; font-size: 13px;">KRecursiveFilterProxyModel</tt> instead of <tt style="background: #ebebeb; font-size: 13px;">QSortFilterProxyModel</tt> because the latter does not recurse nested models. This adds a new dependency on the <tt style="background: #ebebeb; font-size: 13px;">KItemModels</tt> framework.</p>

<p>The search bar is displayed above the <tt style="background: #ebebeb; font-size: 13px;">QTreeView</tt> and contains a close button. An eventfilter was installed on <tt style="background: #ebebeb; font-size: 13px;">Part</tt> to catch the escape keypress to close the search bar.</p>

<p>Things to consider:</p>

<ol class="remarkup-list">
<li class="remarkup-list-item">The filter is currently always case insensitive. Do we want to add a button to switch between case insensitive/sensitive?</li>
<li class="remarkup-list-item">Currently the escape key only closes the search bar when the <tt style="background: #ebebeb; font-size: 13px;">QLineEdit</tt> has focus. Do we want the escape key to also close it when it's not in focus (like e.g. Kate)?</li>
</ol></div></div><br /><div><strong>TEST PLAN</strong><div><p>Open any archive, press CTRL+F and search!</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R36 Ark</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D3573" rel="noreferrer">https://phabricator.kde.org/D3573</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>CMakeLists.txt<br />
part/CMakeLists.txt<br />
part/ark_part.rc<br />
part/part.cpp<br />
part/part.h</div></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>rthomsen, elvisangelaccio<br /><strong>Cc: </strong>kde-utils-devel, tctara<br /></div>