From 387cf24e389854ecc97f6236fdd6acbc2486dd52 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sat, 15 Mar 2025 19:17:03 +0530 Subject: Replaced QCompleter with custom implementation --- include/completion/FuzzySearchProxyModel.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 include/completion/FuzzySearchProxyModel.hpp (limited to 'include/completion/FuzzySearchProxyModel.hpp') diff --git a/include/completion/FuzzySearchProxyModel.hpp b/include/completion/FuzzySearchProxyModel.hpp new file mode 100644 index 0000000..ee4bfc3 --- /dev/null +++ b/include/completion/FuzzySearchProxyModel.hpp @@ -0,0 +1,15 @@ +#pragma once + +#include +#include + +class FuzzySearchProxyModel : public QSortFilterProxyModel { + Q_OBJECT + +public: + using QSortFilterProxyModel::QSortFilterProxyModel; + +protected: + bool filterAcceptsRow(int sourceRow, + const QModelIndex &sourceParent) const override; +}; -- cgit v1.3.1