17 #ifndef PREDEFINEDSETMODEL_H
18 #define PREDEFINEDSETMODEL_H
21 #include <QAbstractTableModel>
25 int size()
const {
return mKeyframeIndexes.
size(); }
26 void insert(
const int& keyFrameIndex,
const QString& filePath)
28 mKeyframeIndexes.
append(keyFrameIndex);
29 mFilePaths.
append(filePath);
32 int keyFrameIndexAt(
const int& index)
const
34 return mKeyframeIndexes.
at(index);
37 QString filePathAt(
const int& index)
const
39 return mFilePaths.
at(index);
42 bool contains(
const QString& path)
const {
46 bool isEmpty()
const {
55 const QString layerName() {
return mLayerName; }
56 void setLayerName(
const QString& layerName) { mLayerName = layerName; }
58 QString type(
const int& index)
const {
91 #endif // PREDEFINEDSETMODEL_H
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const override
const T & at(int i) const const
QString tr(const char *sourceText, const char *disambiguation, int n)
void append(const T &value)
bool isEmpty() const const
bool contains(const T &value) const const
QObject * parent() const const