]> git.cworth.org Git - vogl/commit
UI: Fix issue #20: Search in the editor really slow
authorPeterLValve <peterl@valvesoftware.com>
Tue, 18 Mar 2014 22:24:24 +0000 (15:24 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 1 Apr 2014 19:37:29 +0000 (12:37 -0700)
commit406ad78f7c0f904c1f7c00dddd51c8e98e83ccfa
treef502e32015dbfc29c6f47a854beae1f2de0d519c
parent33758b47f362a0f5c77bfd98b7eec9ff80203662
UI: Fix issue #20: Search in the editor really slow
* Instead of selecting all the rows which match the search string,
  the tree view now highlights those rows which match and are visible.
* If the user presses [enter], the first matching row (if one exists) will
  be scrolled into view and selected.
* Continually pressing enter will cycle through each match, in the same way
  that clicking the "Next" button works.
* If there are no matching items when the user presses [enter], the background to the search textbox will turn red.
  It will restore to its previous color when the user next edits the text.
src/vogleditor/vogleditor.cpp
src/vogleditor/vogleditor.h
src/vogleditor/vogleditor_qapicalltreemodel.cpp
src/vogleditor/vogleditor_qapicalltreemodel.h