-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathimageseqmodel.h
29 lines (25 loc) · 1 KB
/
imageseqmodel.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef IMAGESEQMODEL_H
#define IMAGESEQMODEL_H
#include "imageinsequence.h"
#include <QAbstractListModel>
class ImageSeqModel: public QAbstractListModel
{
Q_OBJECT
public:
explicit ImageSeqModel(QObject *parent=0,QList<ImageInSequence> *li = 0);
int rowCount(const QModelIndex &parent = QModelIndex()) const;
QVariant data(const QModelIndex &index, int role) const;
Qt::DropActions supportedDropActions() const;
Qt::ItemFlags flags(const QModelIndex &index) const;
bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent);
QStringList mimeTypes() const;
QMimeData * mimeData ( const QModelIndexList & indexes ) const;
bool setData ( const QModelIndex & index, const QVariant & value, int role = Qt::EditRole );
bool removeRows(int row, int count, const QModelIndex &parent);
Qt::DropActions supportedDragActions() const;
protected:
QList<ImageInSequence> li;
signals:
public slots:
};
#endif // IMAGESEQMODEL_H