qutebrowser/qutebrowser
Ryan Roden-Corrent 9c0c174534 Use builtin SortFilter regex functionality.
With the new completion API, we no longer need a custom filterAcceptsRow
function. This was necessary to handle the tree structure of the model,
but now we use a separate QSortFilterProxyModel for each category, so
the data it filters is flat. We can simplify the code by using the
builtin setFilterRegExp.

This changes the behavior a little, as now all list categories filter on
all columns. This should be beneficial if anything. For example, help
topics are now filtered on description in addition to name.

This also seems to slightly speed up filtering, according to the url
model benchmark.

Before:

----------------------------------------------- benchmark: 1 tests ----------------------------------------------
Name (time in s)                     Min     Max    Mean  StdDev  Median     IQR  Outliers(*)  Rounds  Iterations
-----------------------------------------------------------------------------------------------------------------
test_url_completion_benchmark     1.2806  1.3817  1.3195  0.0390  1.3068  0.0487          1;0       5           1
-----------------------------------------------------------------------------------------------------------------

After:

----------------------------------------------- benchmark: 1 tests ----------------------------------------------
Name (time in s)                     Min     Max    Mean  StdDev  Median     IQR  Outliers(*)  Rounds  Iterations
-----------------------------------------------------------------------------------------------------------------
test_url_completion_benchmark     1.1183  1.1508  1.1281  0.0132  1.1241  0.0142          1;0       5           1
-----------------------------------------------------------------------------------------------------------------
2017-06-29 12:44:02 -04:00
..
browser Refactor delete_cur_item. 2017-06-26 08:57:36 -04:00
commands Try a different way of fixing userscript crashes 2017-06-11 14:44:19 +02:00
completion Use builtin SortFilter regex functionality. 2017-06-29 12:44:02 -04:00
config Remove code rendered dead by sql implementation. 2017-06-19 07:44:11 -04:00
html Remove private browsing notes for QtWebKit-NG 2017-06-09 10:31:21 +02:00
img New qutebrowser logo! 2016-04-14 17:44:38 +02:00
javascript Fix eslint errors 2017-06-19 07:44:11 -04:00
keyinput Finally update copyrights... 2017-05-09 21:37:03 +02:00
mainwindow Remove another stray # 2017-06-19 09:43:45 +02:00
misc Fix outdated docstring and pylint error. 2017-06-20 22:25:09 -04:00
utils Fix qute://version sql init bug. 2017-06-19 07:44:11 -04:00
__init__.py Finally update copyrights... 2017-05-09 21:37:03 +02:00
__main__.py Finally update copyrights... 2017-05-09 21:37:03 +02:00
app.py Use :memory: for an in-memory database 2017-06-19 07:44:11 -04:00
qutebrowser.py Reorganize pylint config 2017-05-17 20:20:12 +02:00
resources.py Regenerate resources 2016-04-14 17:59:28 +02:00