Book Shelf
Loading...
Searching...
No Matches
bookproxymodel.h
Go to the documentation of this file.
1
10#ifndef BOOKPROXYMODEL_H
11#define BOOKPROXYMODEL_H
12
13#include <QSortFilterProxyModel>
14
20class BookProxyModel : public QSortFilterProxyModel
21{
22 Q_OBJECT
23public:
29 explicit BookProxyModel(QObject *parent = nullptr);
30
31public slots:
37 void setFilter(const QString &filterText);
38};
39
40#endif // BOOKPROXYMODEL_H
The BookProxyModel class is a proxy model that filters the book table model.
Definition bookproxymodel.h:21
void setFilter(const QString &filterText)
Set the filter text for the proxy model.
Definition bookproxymodel.cpp:19
BookProxyModel(QObject *parent=nullptr)
Construct a new BookProxyModel object.
Definition bookproxymodel.cpp:15