refactoring for proxy models
This commit is contained in:
parent
3b35424a0c
commit
85318706fc
6 changed files with 68 additions and 57 deletions
|
@ -326,3 +326,7 @@ VideoProxyModel::VideoProxyModel(QObject *parent)
|
|||
setFilterRole(Qt::UserRole + 1);
|
||||
setFilterCaseSensitivity(Qt::CaseInsensitive);
|
||||
}
|
||||
|
||||
QVariantMap VideoProxyModel::getVideo(const int &row) {
|
||||
return QVariantMap();
|
||||
}
|
||||
|
|
|
@ -72,7 +72,8 @@ class VideoProxyModel : public QSortFilterProxyModel
|
|||
public:
|
||||
explicit VideoProxyModel(QObject *parent = nullptr);
|
||||
|
||||
|
||||
public slots:
|
||||
Q_INVOKABLE QVariantMap getVideo(const int &row);
|
||||
};
|
||||
|
||||
#endif //VIDEOSQLMODEL_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue