Disable find-as-you-type keyboard searches in buffer viewer

* This will cause the model to evaluate every data item to search it, which is
  the exact thing we're trying to avoid with lazy item views.
This commit is contained in:
baldurk committed 2023-03-08 14:06:02 +00:00
1 parent fd12fdb84b
commit 760bfdcb40
3 files changed
+16

No files matched your search

@@ -221,6 +221,12 @@ void RDTableView::keyPressEvent(QKeyEvent *e)
return QTableView::keyPressEvent(e);
}
void RDTableView::keyboardSearch(const QString &search)
{
if(m_allowKeyboardSearches)
return QTableView::keyboardSearch(search);
}
void RDTableView::paintEvent(QPaintEvent *e)
{
const int gridWidth = showGrid() ? 1 : 0;