aboutsummaryrefslogtreecommitdiff
path: root/src/completion/FuzzySearchProxyModel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/completion/FuzzySearchProxyModel.cpp')
-rw-r--r--src/completion/FuzzySearchProxyModel.cpp21
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;
-}