Implemented data filtering.

This commit is contained in:
2016-01-17 21:09:28 +01:00
parent d2f391558a
commit ac931e17a9
21 changed files with 695 additions and 21 deletions
+22
View File
@@ -0,0 +1,22 @@
#ifndef ITABLEMODEL_H
#define ITABLEMODEL_H
#include <QString>
#include <QAbstractTableModel>
class ITableModel : public QAbstractTableModel
{
Q_OBJECT
public:
explicit ITableModel(QObject *parent = NULL);
protected:
virtual void handleFilter(const QString &filter) = 0;
virtual void handleRestore() = 0;
public slots:
void filter(const QString &filter);
void restore();
};
#endif // ITABLEMODEL_H