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
2023-03-08 14:06:02 +00:00
parent fd12fdb84b
commit 760bfdcb40
3 changed files with 16 additions and 0 deletions
@@ -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;