summaryrefslogtreecommitdiffstats
path: root/src/imports/multimedia
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/multimedia')
-rw-r--r--src/imports/multimedia/multimedia.cpp3
-rw-r--r--src/imports/multimedia/qdeclarativeplaylist_p.h8
2 files changed, 7 insertions, 4 deletions
diff --git a/src/imports/multimedia/multimedia.cpp b/src/imports/multimedia/multimedia.cpp
index 0ebe5cd0..ae00e441 100644
--- a/src/imports/multimedia/multimedia.cpp
+++ b/src/imports/multimedia/multimedia.cpp
@@ -135,6 +135,9 @@ public:
qmlRegisterType<QDeclarativePlaylist>(uri, 5, 6, "Playlist");
qmlRegisterType<QDeclarativePlaylistItem>(uri, 5, 6, "PlaylistItem");
+ // 5.7 types
+ qmlRegisterType<QDeclarativePlaylist, 1>(uri, 5, 7, "Playlist");
+
qmlRegisterType<QDeclarativeMediaMetaData>();
qmlRegisterType<QAbstractVideoFilter>();
}
diff --git a/src/imports/multimedia/qdeclarativeplaylist_p.h b/src/imports/multimedia/qdeclarativeplaylist_p.h
index 50869e42..22c85360 100644
--- a/src/imports/multimedia/qdeclarativeplaylist_p.h
+++ b/src/imports/multimedia/qdeclarativeplaylist_p.h
@@ -158,12 +158,12 @@ public Q_SLOTS:
void load(const QUrl &location, const QString &format = QString());
bool save(const QUrl &location, const QString &format = QString());
bool addItem(const QUrl &source);
- bool addItems(const QList<QUrl> &sources);
+ Q_REVISION(1) bool addItems(const QList<QUrl> &sources);
bool insertItem(int index, const QUrl &source);
- bool insertItems(int index, const QList<QUrl> &sources);
- bool moveItem(int from, int to);
+ Q_REVISION(1) bool insertItems(int index, const QList<QUrl> &sources);
+ Q_REVISION(1) bool moveItem(int from, int to);
bool removeItem(int index);
- bool removeItems(int start, int end);
+ Q_REVISION(1) bool removeItems(int start, int end);
bool clear();
Q_SIGNALS: