diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-03-15 19:17:03 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-03-15 20:08:30 +0530 |
| commit | 387cf24e389854ecc97f6236fdd6acbc2486dd52 (patch) | |
| tree | a51b51de0064fb10685d2da85d11748c4a32ce73 /include/completion/FuzzySearchProxyModel.hpp | |
| parent | 05ae8976a8e1ab5411058de244c4e2fcc87ec369 (diff) | |
| download | null-browser-387cf24e389854ecc97f6236fdd6acbc2486dd52.tar.gz null-browser-387cf24e389854ecc97f6236fdd6acbc2486dd52.zip | |
Replaced QCompleter with custom implementation
Diffstat (limited to '')
| -rw-r--r-- | include/completion/FuzzySearchProxyModel.hpp | 15 |
1 files changed, 15 insertions, 0 deletions
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 <QWidget> +#include <QtCore> + +class FuzzySearchProxyModel : public QSortFilterProxyModel { + Q_OBJECT + +public: + using QSortFilterProxyModel::QSortFilterProxyModel; + +protected: + bool filterAcceptsRow(int sourceRow, + const QModelIndex &sourceParent) const override; +}; |
