AusweisApp2/src/qml/HistoryModelSearchFilter.h

32 lines
535 B
C
Raw Normal View History

2017-07-03 09:33:28 +02:00
/*!
* \brief A filter to search the history model
*
2018-03-28 15:10:51 +02:00
* \copyright Copyright (c) 2016-2018 Governikus GmbH & Co. KG, Germany
2017-07-03 09:33:28 +02:00
*/
#pragma once
#include <QAbstractListModel>
#include <QPointer>
#include <QSortFilterProxyModel>
namespace governikus
{
class HistoryModelSearchFilter
: public QSortFilterProxyModel
{
Q_OBJECT
private:
QString mFilterString;
protected:
bool filterAcceptsRow(int pSourceRow, const QModelIndex&) const override;
public:
Q_INVOKABLE void setFilterString(const QString& pFilterString);
};
}