HAL
pin_proxy_model.cpp
Go to the documentation of this file.
2 
3 #include "gui/gui_utils/sort.h"
4 
5 #include <QDateTime>
6 
7 namespace hal
8 {
10  {
11 
12  }
13 
14  bool PinProxyModel::filterAcceptsRow(int source_row, const QModelIndex& source_parent) const
15  {
16  return checkRow(source_row, source_parent, 0, 1);
17  }
18 
19 
20  void PinProxyModel::startSearch(QString text, int options)
21  {
22  mSearchString = text;
23  mSearchOptions = SearchOptions(options);
25  }
26 }
PinProxyModel(QObject *parent=nullptr)
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override
void startSearch(QString text, int options) override
SearchOptions mSearchOptions
bool checkRow(int sourceRow, const QModelIndex &sourceParent, int startIndex, int endIndex, int offset=0) const
Should be called inside filterAcceptsRow function and returns true if the source_row,...