You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
427 B
C
23 lines
427 B
C
9 years ago
|
#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
|