diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-03-18 21:19:28 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-03-18 21:19:47 +0530 |
| commit | 4c762b2516bc664293c2aec072074f1e34dda8c3 (patch) | |
| tree | ebe441f7af8c1f4c49f04630538312d55f18f63b /src/completion/FuzzySearchProxyModel.cpp | |
| parent | 056b0b16947ac19a0c425aa9d2ff8f589378d3bc (diff) | |
| download | null-browser-4c762b2516bc664293c2aec072074f1e34dda8c3.tar.gz null-browser-4c762b2516bc664293c2aec072074f1e34dda8c3.zip | |
Remove all the ui bits because screw it, lets unix a bit more
Diffstat (limited to '')
| -rw-r--r-- | src/completion/FuzzySearchProxyModel.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/completion/FuzzySearchProxyModel.cpp b/src/completion/FuzzySearchProxyModel.cpp deleted file mode 100644 index 0c467c6..0000000 --- a/src/completion/FuzzySearchProxyModel.cpp +++ /dev/null @@ -1,21 +0,0 @@ -#include <QWidget> -#include <QtCore> - -#include "completion/FuzzySearchProxyModel.hpp" - -bool FuzzySearchProxyModel::filterAcceptsRow( - int sourceRow, const QModelIndex &sourceParent) const { - QAbstractItemModel *model = sourceModel(); - QString filterText = filterRegularExpression().pattern(); - - for (int col = 0; col < model->columnCount(); ++col) { - QModelIndex index = model->index(sourceRow, col, sourceParent); - QString data = model->data(index, Qt::AccessibleDescriptionRole).toString(); - - // TODO: Fuzzy eet up - if (data.contains(filterText, Qt::CaseInsensitive)) { - return true; - } - } - return false; -} |
