17#ifndef PREDEFINEDSETMODEL_H
18#define PREDEFINEDSETMODEL_H
21#include <QAbstractTableModel>
22#include <QCoreApplication>
28 int size()
const {
return mKeyframeIndexes.
size(); }
29 void insert(
const int& keyFrameIndex,
const QString& filePath)
31 mKeyframeIndexes.
append(keyFrameIndex);
32 mFilePaths.
append(filePath);
35 int keyFrameIndexAt(
const int& index)
const
37 return mKeyframeIndexes.
at(index);
40 QString filePathAt(
const int& index)
const
42 return mFilePaths.
at(index);
45 bool contains(
const QString& path)
const {
49 bool isEmpty()
const {
58 const QString layerName() {
return mLayerName; }
59 void setLayerName(
const QString& layerName) { mLayerName = layerName; }
61 QString type(
const int& index)
const {
67 return tr(
"KeyFrame Pos");
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const override
void append(const T &value)
const T & at(int i) const const
bool contains(const T &value) const const
bool isEmpty() const const
QObject * parent() const const