Q_OBJECT
public:
EmuFrontFileObjectModel(QObject *parent = 0);
- Qt::ItemFlags flags(const QModelIndex &index) const;
- bool setData(const QModelIndex &index, const QVariant &value, int role);
+ virtual Qt::ItemFlags flags(const QModelIndex &index) const;
+ virtual bool setData(const QModelIndex &index, const QVariant &value, int role);
+ virtual bool insertRows(int row, int count, const QModelIndex &parent);
+ virtual bool removeRows(int row, int count, const QModelIndex &parent);
enum {
EmuFrontFileObject_Id,
EmuFrontFileObject_Name,
};
protected:
- void refresh();
- QString constructSelect(QString where = "") const;
- bool setName(int id, const QString &name);
+ virtual void refresh();
+ virtual QString constructSelect(QString where = "") const;
+ virtual bool setName(int id, const QString &name);
};
#endif // EMUFRONTFILEOBJECTMODEL_H