1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00
LibQQt/qqttreemodel.h
2017-08-20 22:24:29 +08:00

34 lines
562 B
C++

#ifndef QQTTREEMODEL_H
#define QQTTREEMODEL_H
#include <QStandardItemModel>
/**
* this is a interface class
* define the tree model's functions name.
*/
class QQTTreeModel : public QStandardItemModel
{
Q_OBJECT
public:
explicit QQTTreeModel(QObject *parent = 0);
/**
* @brief query
* @param condition
* @return
*/
virtual bool query(QString condition) = 0;
/**
* @brief setFilePath
* @param name
*/
virtual void setFilePath(QString name) = 0;
signals:
public slots:
};
#endif // QQTTREEMODEL_H