aboutsummaryrefslogtreecommitdiff
path: root/include/completion/FuzzySearchProxyModel.hpp
blob: ee4bfc3337ee59092fbdee3875f88f4acfa75d8f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;
};