Commit 97c876e2 authored by Matthieu Gallien's avatar Matthieu Gallien 🎵
Browse files

display ratings of local and Baloo tracks

only display rating

no way to modify them

looks like Baloo listener cannot feed new ratings at next start

T5484
parent 0a030c67
......@@ -53,58 +53,58 @@ private Q_SLOTS:
mNewTracks = {
{true, QStringLiteral("$1"), QStringLiteral("0"), QStringLiteral("track1"),
QStringLiteral("artist1"), QStringLiteral("album1"), QStringLiteral("Various Artists"), 1, 1, QTime::fromMSecsSinceStartOfDay(1), {QUrl::fromLocalFile(QStringLiteral("/$1"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$1"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$1"))}, 1},
{true, QStringLiteral("$2"), QStringLiteral("0"), QStringLiteral("track2"),
QStringLiteral("artist2"), QStringLiteral("album1"), QStringLiteral("Various Artists"), 2, 2, QTime::fromMSecsSinceStartOfDay(2), {QUrl::fromLocalFile(QStringLiteral("/$2"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$2"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$2"))}, 2},
{true, QStringLiteral("$3"), QStringLiteral("0"), QStringLiteral("track3"),
QStringLiteral("artist3"), QStringLiteral("album1"), QStringLiteral("Various Artists"), 3, 3, QTime::fromMSecsSinceStartOfDay(3), {QUrl::fromLocalFile(QStringLiteral("/$3"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$3"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$3"))}, 3},
{true, QStringLiteral("$4"), QStringLiteral("0"), QStringLiteral("track4"),
QStringLiteral("artist4"), QStringLiteral("album1"), QStringLiteral("Various Artists"), 4, 4, QTime::fromMSecsSinceStartOfDay(4), {QUrl::fromLocalFile(QStringLiteral("/$4"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$4"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$4"))}, 4},
{true, QStringLiteral("$5"), QStringLiteral("0"), QStringLiteral("track1"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 1, 1, QTime::fromMSecsSinceStartOfDay(5), {QUrl::fromLocalFile(QStringLiteral("/$5"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$5"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$5"))}, 5},
{true, QStringLiteral("$6"), QStringLiteral("0"), QStringLiteral("track2"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 2, 1, QTime::fromMSecsSinceStartOfDay(6), {QUrl::fromLocalFile(QStringLiteral("/$6"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$6"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$6"))}, 1},
{true, QStringLiteral("$7"), QStringLiteral("0"), QStringLiteral("track3"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 3, 1, QTime::fromMSecsSinceStartOfDay(7), {QUrl::fromLocalFile(QStringLiteral("/$7"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$7"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$7"))}, 2},
{true, QStringLiteral("$8"), QStringLiteral("0"), QStringLiteral("track4"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 4, 1, QTime::fromMSecsSinceStartOfDay(8), {QUrl::fromLocalFile(QStringLiteral("/$8"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$8"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$8"))}, 3},
{true, QStringLiteral("$9"), QStringLiteral("0"), QStringLiteral("track5"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 5, 1, QTime::fromMSecsSinceStartOfDay(9), {QUrl::fromLocalFile(QStringLiteral("/$9"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$9"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$9"))}, 4},
{true, QStringLiteral("$10"), QStringLiteral("0"), QStringLiteral("track6"),
QStringLiteral("artist1 and artist2"), QStringLiteral("album2"), QStringLiteral("artist1"), 6, 1, QTime::fromMSecsSinceStartOfDay(10), {QUrl::fromLocalFile(QStringLiteral("/$10"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$10"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$10"))}, 5},
{true, QStringLiteral("$11"), QStringLiteral("0"), QStringLiteral("track1"),
QStringLiteral("artist2"), QStringLiteral("album3"), QStringLiteral("artist2"), 1, 1, QTime::fromMSecsSinceStartOfDay(11), {QUrl::fromLocalFile(QStringLiteral("/$11"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$11"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$11"))}, 1},
{true, QStringLiteral("$12"), QStringLiteral("0"), QStringLiteral("track2"),
QStringLiteral("artist2"), QStringLiteral("album3"), QStringLiteral("artist2"), 2, 1, QTime::fromMSecsSinceStartOfDay(12), {QUrl::fromLocalFile(QStringLiteral("/$12"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$12"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$12"))}, 2},
{true, QStringLiteral("$13"), QStringLiteral("0"), QStringLiteral("track3"),
QStringLiteral("artist2"), QStringLiteral("album3"), QStringLiteral("artist2"), 3, 1, QTime::fromMSecsSinceStartOfDay(13), {QUrl::fromLocalFile(QStringLiteral("/$13"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$13"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$13"))}, 3},
{true, QStringLiteral("$14"), QStringLiteral("0"), QStringLiteral("track1"),
QStringLiteral("artist2"), QStringLiteral("album4"), QStringLiteral("artist2"), 1, 1, QTime::fromMSecsSinceStartOfDay(14), {QUrl::fromLocalFile(QStringLiteral("/$14"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$14"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$14"))}, 4},
{true, QStringLiteral("$15"), QStringLiteral("0"), QStringLiteral("track2"),
QStringLiteral("artist2"), QStringLiteral("album4"), QStringLiteral("artist2"), 2, 1, QTime::fromMSecsSinceStartOfDay(15), {QUrl::fromLocalFile(QStringLiteral("/$15"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$15"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$15"))}, 5},
{true, QStringLiteral("$16"), QStringLiteral("0"), QStringLiteral("track3"),
QStringLiteral("artist2"), QStringLiteral("album4"), QStringLiteral("artist2"), 3, 1, QTime::fromMSecsSinceStartOfDay(16), {QUrl::fromLocalFile(QStringLiteral("/$16"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$16"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$16"))}, 1},
{true, QStringLiteral("$17"), QStringLiteral("0"), QStringLiteral("track4"),
QStringLiteral("artist2"), QStringLiteral("album4"), QStringLiteral("artist2"), 4, 1, QTime::fromMSecsSinceStartOfDay(17), {QUrl::fromLocalFile(QStringLiteral("/$17"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$17"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$17"))}, 2},
{true, QStringLiteral("$18"), QStringLiteral("0"), QStringLiteral("track5"),
QStringLiteral("artist2"), QStringLiteral("album4"), QStringLiteral("artist2"), 5, 1, QTime::fromMSecsSinceStartOfDay(18), {QUrl::fromLocalFile(QStringLiteral("/$18"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$18"))}}
{QUrl::fromLocalFile(QStringLiteral("file://image$18"))}, 3}
};
mNewCovers[QStringLiteral("album1")] = QUrl::fromLocalFile(QStringLiteral("album1"));
......@@ -312,7 +312,7 @@ private Q_SLOTS:
auto newTrack = MusicAudioTrack{true, QStringLiteral("$19"), QStringLiteral("0"), QStringLiteral("track6"),
QStringLiteral("artist2"), QStringLiteral("album1"), QStringLiteral("Various Artists"), 6, 1, QTime::fromMSecsSinceStartOfDay(19), {QUrl::fromLocalFile(QStringLiteral("/$19"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$19"))}};
{QUrl::fromLocalFile(QStringLiteral("file://image$19"))}, 5};
auto newTracks = QList<MusicAudioTrack>();
newTracks.push_back(newTrack);
......@@ -331,7 +331,7 @@ private Q_SLOTS:
auto secondNewTrack = MusicAudioTrack{true, QStringLiteral("$20"), QStringLiteral("0"), QStringLiteral("track5"),
QStringLiteral("artist2"), QStringLiteral("album1"), QStringLiteral("Various Artists"), 5, 1, QTime::fromMSecsSinceStartOfDay(20), {QUrl::fromLocalFile(QStringLiteral("/$20"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$20"))}};
{QUrl::fromLocalFile(QStringLiteral("file://image$20"))}, 5};
auto secondNewTracks = QList<MusicAudioTrack>();
secondNewTracks.push_back(secondNewTrack);
......@@ -404,7 +404,7 @@ private Q_SLOTS:
auto modifiedTrack = MusicAudioTrack{true, QStringLiteral("$3"), QStringLiteral("0"), QStringLiteral("track3"),
QStringLiteral("artist3"), QStringLiteral("album1"), QStringLiteral("Various Artists"), 5, 3,
QTime::fromMSecsSinceStartOfDay(3), {QUrl::fromLocalFile(QStringLiteral("/$3"))}, {QUrl::fromLocalFile(QStringLiteral("file://image$3"))}};
QTime::fromMSecsSinceStartOfDay(3), {QUrl::fromLocalFile(QStringLiteral("/$3"))}, {QUrl::fromLocalFile(QStringLiteral("file://image$3"))}, 5};
musicDb.modifyTracksList({modifiedTrack}, QStringLiteral("autoTest"));
......
......@@ -53,58 +53,58 @@ private Q_SLOTS:
mNewTracks = {
{true, QStringLiteral("$1"), QStringLiteral("0"), QStringLiteral("track1"),
QStringLiteral("artist1"), QStringLiteral("album1"), QStringLiteral("Various Artists"), 1, 1, QTime::fromMSecsSinceStartOfDay(1), {QUrl::fromLocalFile(QStringLiteral("/$1"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$1"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$1"))}, 1},
{true, QStringLiteral("$2"), QStringLiteral("0"), QStringLiteral("track2"),
QStringLiteral("artist2"), QStringLiteral("album1"), QStringLiteral("Various Artists"), 2, 2, QTime::fromMSecsSinceStartOfDay(2), {QUrl::fromLocalFile(QStringLiteral("/$2"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$2"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$2"))}, 2},
{true, QStringLiteral("$3"), QStringLiteral("0"), QStringLiteral("track3"),
QStringLiteral("artist3"), QStringLiteral("album1"), QStringLiteral("Various Artists"), 3, 3, QTime::fromMSecsSinceStartOfDay(3), {QUrl::fromLocalFile(QStringLiteral("/$3"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$3"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$3"))}, 3},
{true, QStringLiteral("$4"), QStringLiteral("0"), QStringLiteral("track4"),
QStringLiteral("artist4"), QStringLiteral("album1"), QStringLiteral("Various Artists"), 4, 4, QTime::fromMSecsSinceStartOfDay(4), {QUrl::fromLocalFile(QStringLiteral("/$4"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$4"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$4"))}, 4},
{true, QStringLiteral("$5"), QStringLiteral("0"), QStringLiteral("track1"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 1, 1, QTime::fromMSecsSinceStartOfDay(5), {QUrl::fromLocalFile(QStringLiteral("/$5"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$5"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$5"))}, 5},
{true, QStringLiteral("$6"), QStringLiteral("0"), QStringLiteral("track2"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 2, 1, QTime::fromMSecsSinceStartOfDay(6), {QUrl::fromLocalFile(QStringLiteral("/$6"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$6"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$6"))}, 1},
{true, QStringLiteral("$7"), QStringLiteral("0"), QStringLiteral("track3"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 3, 1, QTime::fromMSecsSinceStartOfDay(7), {QUrl::fromLocalFile(QStringLiteral("/$7"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$7"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$7"))}, 2},
{true, QStringLiteral("$8"), QStringLiteral("0"), QStringLiteral("track4"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 4, 1, QTime::fromMSecsSinceStartOfDay(8), {QUrl::fromLocalFile(QStringLiteral("/$8"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$8"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$8"))}, 3},
{true, QStringLiteral("$9"), QStringLiteral("0"), QStringLiteral("track5"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 5, 1, QTime::fromMSecsSinceStartOfDay(9), {QUrl::fromLocalFile(QStringLiteral("/$9"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$9"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$9"))}, 4},
{true, QStringLiteral("$10"), QStringLiteral("0"), QStringLiteral("track6"),
QStringLiteral("artist1 and artist2"), QStringLiteral("album2"), QStringLiteral("artist1"), 6, 1, QTime::fromMSecsSinceStartOfDay(10), {QUrl::fromLocalFile(QStringLiteral("/$10"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$10"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$10"))}, 5},
{true, QStringLiteral("$11"), QStringLiteral("0"), QStringLiteral("track1"),
QStringLiteral("artist2"), QStringLiteral("album3"), QStringLiteral("artist2"), 1, 1, QTime::fromMSecsSinceStartOfDay(11), {QUrl::fromLocalFile(QStringLiteral("/$11"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$11"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$11"))}, 1},
{true, QStringLiteral("$12"), QStringLiteral("0"), QStringLiteral("track2"),
QStringLiteral("artist2"), QStringLiteral("album3"), QStringLiteral("artist2"), 2, 1, QTime::fromMSecsSinceStartOfDay(12), {QUrl::fromLocalFile(QStringLiteral("/$12"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$12"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$12"))}, 2},
{true, QStringLiteral("$13"), QStringLiteral("0"), QStringLiteral("track3"),
QStringLiteral("artist2"), QStringLiteral("album3"), QStringLiteral("artist2"), 3, 1, QTime::fromMSecsSinceStartOfDay(13), {QUrl::fromLocalFile(QStringLiteral("/$13"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$13"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$13"))}, 3},
{true, QStringLiteral("$14"), QStringLiteral("0"), QStringLiteral("track1"),
QStringLiteral("artist2"), QStringLiteral("album4"), QStringLiteral("artist2"), 1, 1, QTime::fromMSecsSinceStartOfDay(14), {QUrl::fromLocalFile(QStringLiteral("/$14"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$14"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$14"))}, 4},
{true, QStringLiteral("$15"), QStringLiteral("0"), QStringLiteral("track2"),
QStringLiteral("artist2"), QStringLiteral("album4"), QStringLiteral("artist2"), 2, 1, QTime::fromMSecsSinceStartOfDay(15), {QUrl::fromLocalFile(QStringLiteral("/$15"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$15"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$15"))}, 5},
{true, QStringLiteral("$16"), QStringLiteral("0"), QStringLiteral("track3"),
QStringLiteral("artist2"), QStringLiteral("album4"), QStringLiteral("artist2"), 3, 1, QTime::fromMSecsSinceStartOfDay(16), {QUrl::fromLocalFile(QStringLiteral("/$16"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$16"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$16"))}, 1},
{true, QStringLiteral("$17"), QStringLiteral("0"), QStringLiteral("track4"),
QStringLiteral("artist2"), QStringLiteral("album4"), QStringLiteral("artist2"), 4, 1, QTime::fromMSecsSinceStartOfDay(17), {QUrl::fromLocalFile(QStringLiteral("/$17"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$17"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$17"))}, 2},
{true, QStringLiteral("$18"), QStringLiteral("0"), QStringLiteral("track5"),
QStringLiteral("artist2"), QStringLiteral("album4"), QStringLiteral("artist2"), 5, 1, QTime::fromMSecsSinceStartOfDay(18), {QUrl::fromLocalFile(QStringLiteral("/$18"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$18"))}}
{QUrl::fromLocalFile(QStringLiteral("file://image$18"))}, 3}
};
mNewCovers[QStringLiteral("album1")] = QUrl::fromLocalFile(QStringLiteral("album1"));
......@@ -288,7 +288,7 @@ private Q_SLOTS:
auto newTrack = MusicAudioTrack{true, QStringLiteral("$19"), QStringLiteral("0"), QStringLiteral("track6"),
QStringLiteral("artist2"), QStringLiteral("album4"), QStringLiteral("artist2"), 6, 1, QTime::fromMSecsSinceStartOfDay(19), {QUrl::fromLocalFile(QStringLiteral("/$19"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$19"))}};
{QUrl::fromLocalFile(QStringLiteral("file://image$19"))}, 5};
auto newTracks = QList<MusicAudioTrack>();
newTracks.push_back(newTrack);
......@@ -348,7 +348,7 @@ private Q_SLOTS:
auto newTrack = MusicAudioTrack{true, QStringLiteral("$19"), QStringLiteral("0"), QStringLiteral("track1"),
QStringLiteral("artist2"), QStringLiteral("album5"), QStringLiteral("artist2"), 1, 1, QTime::fromMSecsSinceStartOfDay(19), {QUrl::fromLocalFile(QStringLiteral("/$19"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$19"))}};
{QUrl::fromLocalFile(QStringLiteral("file://image$19"))}, 5};
auto newTracks = QList<MusicAudioTrack>();
newTracks.push_back(newTrack);
......
......@@ -53,58 +53,58 @@ private Q_SLOTS:
mNewTracks = {
{true, QStringLiteral("$1"), QStringLiteral("0"), QStringLiteral("track1"),
QStringLiteral("artist1"), QStringLiteral("album1"), QStringLiteral("Various Artists"), 1, 1, QTime::fromMSecsSinceStartOfDay(1), {QUrl::fromLocalFile(QStringLiteral("/$1"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$1"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$1"))}, 1},
{true, QStringLiteral("$2"), QStringLiteral("0"), QStringLiteral("track2"),
QStringLiteral("artist2"), QStringLiteral("album1"), QStringLiteral("Various Artists"), 2, 2, QTime::fromMSecsSinceStartOfDay(2), {QUrl::fromLocalFile(QStringLiteral("/$2"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$2"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$2"))}, 2},
{true, QStringLiteral("$3"), QStringLiteral("0"), QStringLiteral("track3"),
QStringLiteral("artist3"), QStringLiteral("album1"), QStringLiteral("Various Artists"), 3, 3, QTime::fromMSecsSinceStartOfDay(3), {QUrl::fromLocalFile(QStringLiteral("/$3"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$3"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$3"))}, 3},
{true, QStringLiteral("$4"), QStringLiteral("0"), QStringLiteral("track4"),
QStringLiteral("artist4"), QStringLiteral("album1"), QStringLiteral("Various Artists"), 4, 4, QTime::fromMSecsSinceStartOfDay(4), {QUrl::fromLocalFile(QStringLiteral("/$4"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$4"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$4"))}, 4},
{true, QStringLiteral("$5"), QStringLiteral("0"), QStringLiteral("track1"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 1, 1, QTime::fromMSecsSinceStartOfDay(5), {QUrl::fromLocalFile(QStringLiteral("/$5"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$5"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$5"))}, 5},
{true, QStringLiteral("$6"), QStringLiteral("0"), QStringLiteral("track2"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 2, 1, QTime::fromMSecsSinceStartOfDay(6), {QUrl::fromLocalFile(QStringLiteral("/$6"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$6"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$6"))}, 1},
{true, QStringLiteral("$7"), QStringLiteral("0"), QStringLiteral("track3"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 3, 1, QTime::fromMSecsSinceStartOfDay(7), {QUrl::fromLocalFile(QStringLiteral("/$7"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$7"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$7"))}, 2},
{true, QStringLiteral("$8"), QStringLiteral("0"), QStringLiteral("track4"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 4, 1, QTime::fromMSecsSinceStartOfDay(8), {QUrl::fromLocalFile(QStringLiteral("/$8"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$8"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$8"))}, 3},
{true, QStringLiteral("$9"), QStringLiteral("0"), QStringLiteral("track5"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 5, 1, QTime::fromMSecsSinceStartOfDay(9), {QUrl::fromLocalFile(QStringLiteral("/$9"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$9"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$9"))}, 4},
{true, QStringLiteral("$10"), QStringLiteral("0"), QStringLiteral("track6"),
QStringLiteral("artist1 and artist2"), QStringLiteral("album2"), QStringLiteral("artist1"), 6, 1, QTime::fromMSecsSinceStartOfDay(10), {QUrl::fromLocalFile(QStringLiteral("/$10"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$10"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$10"))}, 5},
{true, QStringLiteral("$11"), QStringLiteral("0"), QStringLiteral("track1"),
QStringLiteral("artist2"), QStringLiteral("album3"), QStringLiteral("artist2"), 1, 1, QTime::fromMSecsSinceStartOfDay(11), {QUrl::fromLocalFile(QStringLiteral("/$11"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$11"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$11"))}, 1},
{true, QStringLiteral("$12"), QStringLiteral("0"), QStringLiteral("track2"),
QStringLiteral("artist2"), QStringLiteral("album3"), QStringLiteral("artist2"), 2, 1, QTime::fromMSecsSinceStartOfDay(12), {QUrl::fromLocalFile(QStringLiteral("/$12"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$12"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$12"))}, 2},
{true, QStringLiteral("$13"), QStringLiteral("0"), QStringLiteral("track3"),
QStringLiteral("artist2"), QStringLiteral("album3"), QStringLiteral("artist2"), 3, 1, QTime::fromMSecsSinceStartOfDay(13), {QUrl::fromLocalFile(QStringLiteral("/$13"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$13"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$13"))}, 3},
{true, QStringLiteral("$14"), QStringLiteral("0"), QStringLiteral("track1"),
QStringLiteral("artist2"), QStringLiteral("album4"), QStringLiteral("artist2"), 1, 1, QTime::fromMSecsSinceStartOfDay(14), {QUrl::fromLocalFile(QStringLiteral("/$14"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$14"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$14"))}, 4},
{true, QStringLiteral("$15"), QStringLiteral("0"), QStringLiteral("track2"),
QStringLiteral("artist2"), QStringLiteral("album4"), QStringLiteral("artist2"), 2, 1, QTime::fromMSecsSinceStartOfDay(15), {QUrl::fromLocalFile(QStringLiteral("/$15"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$15"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$15"))}, 5},
{true, QStringLiteral("$16"), QStringLiteral("0"), QStringLiteral("track3"),
QStringLiteral("artist2"), QStringLiteral("album4"), QStringLiteral("artist2"), 3, 1, QTime::fromMSecsSinceStartOfDay(16), {QUrl::fromLocalFile(QStringLiteral("/$16"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$16"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$16"))}, 1},
{true, QStringLiteral("$17"), QStringLiteral("0"), QStringLiteral("track4"),
QStringLiteral("artist2"), QStringLiteral("album4"), QStringLiteral("artist2"), 4, 1, QTime::fromMSecsSinceStartOfDay(17), {QUrl::fromLocalFile(QStringLiteral("/$17"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$17"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$17"))}, 2},
{true, QStringLiteral("$18"), QStringLiteral("0"), QStringLiteral("track5"),
QStringLiteral("artist2"), QStringLiteral("album4"), QStringLiteral("artist2"), 5, 1, QTime::fromMSecsSinceStartOfDay(18), {QUrl::fromLocalFile(QStringLiteral("/$18"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$18"))}}
{QUrl::fromLocalFile(QStringLiteral("file://image$18"))}, 3}
};
mNewCovers[QStringLiteral("album1")] = QUrl::fromLocalFile(QStringLiteral("album1"));
......@@ -225,7 +225,7 @@ private Q_SLOTS:
auto newTrack = MusicAudioTrack{true, QStringLiteral("$19"), QStringLiteral("0"), QStringLiteral("track6"),
QStringLiteral("artist6"), QStringLiteral("album1"), QStringLiteral("Various Artists"), 6, 1, QTime::fromMSecsSinceStartOfDay(19), {QUrl::fromLocalFile(QStringLiteral("/$19"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$19"))}};
{QUrl::fromLocalFile(QStringLiteral("file://image$19"))}, 5};
auto newTracks = QList<MusicAudioTrack>();
newTracks.push_back(newTrack);
......
This diff is collapsed.
......@@ -1748,34 +1748,34 @@ void ManageHeaderBarTest::moveCurrentTrack()
newTracks = {
{true, QStringLiteral("$1"), QStringLiteral("0"), QStringLiteral("track1"),
QStringLiteral("artist1"), QStringLiteral("album1"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$1"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$1"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$1"))}, 1},
{true, QStringLiteral("$2"), QStringLiteral("0"), QStringLiteral("track2"),
QStringLiteral("artist1"), QStringLiteral("album1"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$2"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$2"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$2"))}, 2},
{true, QStringLiteral("$3"), QStringLiteral("0"), QStringLiteral("track3"),
QStringLiteral("artist1"), QStringLiteral("album1"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$3"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$3"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$3"))}, 3},
{true, QStringLiteral("$4"), QStringLiteral("0"), QStringLiteral("track4"),
QStringLiteral("artist1"), QStringLiteral("album1"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$4"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$4"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$4"))}, 4},
{true, QStringLiteral("$5"), QStringLiteral("0"), QStringLiteral("track1"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$5"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$5"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$5"))}, 5},
{true, QStringLiteral("$6"), QStringLiteral("0"), QStringLiteral("track2"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$6"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$6"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$6"))}, 1},
{true, QStringLiteral("$7"), QStringLiteral("0"), QStringLiteral("track3"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$7"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$7"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$7"))}, 2},
{true, QStringLiteral("$8"), QStringLiteral("0"), QStringLiteral("track4"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$8"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$8"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$8"))}, 3},
{true, QStringLiteral("$9"), QStringLiteral("0"), QStringLiteral("track5"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$9"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$9"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$9"))}, 4},
{true, QStringLiteral("$10"), QStringLiteral("0"), QStringLiteral("track6"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$10"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$10"))}}
{QUrl::fromLocalFile(QStringLiteral("file://image$10"))}, 5}
};
newCovers[QStringLiteral("album1")] = QUrl::fromLocalFile(QStringLiteral("album1"));
......@@ -2004,34 +2004,34 @@ void ManageHeaderBarTest::moveAnotherTrack()
newTracks = {
{true, QStringLiteral("$1"), QStringLiteral("0"), QStringLiteral("track1"),
QStringLiteral("artist1"), QStringLiteral("album1"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$1"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$1"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$1"))}, 1},
{true, QStringLiteral("$2"), QStringLiteral("0"), QStringLiteral("track2"),
QStringLiteral("artist1"), QStringLiteral("album1"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$2"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$2"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$2"))}, 2},
{true, QStringLiteral("$3"), QStringLiteral("0"), QStringLiteral("track3"),
QStringLiteral("artist1"), QStringLiteral("album1"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$3"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$3"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$3"))}, 3},
{true, QStringLiteral("$4"), QStringLiteral("0"), QStringLiteral("track4"),
QStringLiteral("artist1"), QStringLiteral("album1"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$4"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$4"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$4"))}, 4},
{true, QStringLiteral("$5"), QStringLiteral("0"), QStringLiteral("track1"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$5"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$5"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$5"))}, 5},
{true, QStringLiteral("$6"), QStringLiteral("0"), QStringLiteral("track2"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$6"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$6"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$6"))}, 1},
{true, QStringLiteral("$7"), QStringLiteral("0"), QStringLiteral("track3"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$7"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$7"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$7"))}, 2},
{true, QStringLiteral("$8"), QStringLiteral("0"), QStringLiteral("track4"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$8"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$8"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$8"))}, 3},
{true, QStringLiteral("$9"), QStringLiteral("0"), QStringLiteral("track5"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$9"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$9"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$9"))}, 4},
{true, QStringLiteral("$10"), QStringLiteral("0"), QStringLiteral("track6"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$10"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$10"))}}
{QUrl::fromLocalFile(QStringLiteral("file://image$10"))}, 5}
};
newCovers[QStringLiteral("album1")] = QUrl::fromLocalFile(QStringLiteral("album1"));
......@@ -2260,34 +2260,34 @@ void ManageHeaderBarTest::setCurrentTrackTest()
newTracks = {
{true, QStringLiteral("$1"), QStringLiteral("0"), QStringLiteral("track1"),
QStringLiteral("artist1"), QStringLiteral("album1"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$1"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$1"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$1"))}, 1},
{true, QStringLiteral("$2"), QStringLiteral("0"), QStringLiteral("track2"),
QStringLiteral("artist1"), QStringLiteral("album1"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$2"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$2"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$2"))}, 2},
{true, QStringLiteral("$3"), QStringLiteral("0"), QStringLiteral("track3"),
QStringLiteral("artist1"), QStringLiteral("album1"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$3"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$3"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$3"))}, 3},
{true, QStringLiteral("$4"), QStringLiteral("0"), QStringLiteral("track4"),
QStringLiteral("artist1"), QStringLiteral("album1"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$4"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$4"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$4"))}, 4},
{true, QStringLiteral("$5"), QStringLiteral("0"), QStringLiteral("track1"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$5"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$5"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$5"))}, 5},
{true, QStringLiteral("$6"), QStringLiteral("0"), QStringLiteral("track2"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$6"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$6"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$6"))}, 1},
{true, QStringLiteral("$7"), QStringLiteral("0"), QStringLiteral("track3"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$7"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$7"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$7"))}, 2},
{true, QStringLiteral("$8"), QStringLiteral("0"), QStringLiteral("track4"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$8"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$8"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$8"))}, 3},
{true, QStringLiteral("$9"), QStringLiteral("0"), QStringLiteral("track5"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$9"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$9"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$9"))}, 4},
{true, QStringLiteral("$10"), QStringLiteral("0"), QStringLiteral("track6"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$10"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$10"))}}
{QUrl::fromLocalFile(QStringLiteral("file://image$10"))}, 5}
};
newCovers[QStringLiteral("album1")] = QUrl::fromLocalFile(QStringLiteral("album1"));
......
......@@ -471,34 +471,34 @@ void ManageMediaPlayerControlTest::moveCurrentTrack()
newTracks = {
{true, QStringLiteral("$1"), QStringLiteral("0"), QStringLiteral("track1"),
QStringLiteral("artist1"), QStringLiteral("album1"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$1"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$1"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$1"))}, 1},
{true, QStringLiteral("$2"), QStringLiteral("0"), QStringLiteral("track2"),
QStringLiteral("artist1"), QStringLiteral("album1"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$2"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$2"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$2"))}, 2},
{true, QStringLiteral("$3"), QStringLiteral("0"), QStringLiteral("track3"),
QStringLiteral("artist1"), QStringLiteral("album1"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$3"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$3"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$3"))}, 3},
{true, QStringLiteral("$4"), QStringLiteral("0"), QStringLiteral("track4"),
QStringLiteral("artist1"), QStringLiteral("album1"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$4"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$4"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$4"))}, 4},
{true, QStringLiteral("$5"), QStringLiteral("0"), QStringLiteral("track1"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$5"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$5"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$5"))}, 5},
{true, QStringLiteral("$6"), QStringLiteral("0"), QStringLiteral("track2"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$6"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$6"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$6"))}, 1},
{true, QStringLiteral("$7"), QStringLiteral("0"), QStringLiteral("track3"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$7"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$7"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$7"))}, 2},
{true, QStringLiteral("$8"), QStringLiteral("0"), QStringLiteral("track4"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$8"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$8"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$8"))}, 3},
{true, QStringLiteral("$9"), QStringLiteral("0"), QStringLiteral("track5"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$9"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$9"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$9"))}, 4},
{true, QStringLiteral("$10"), QStringLiteral("0"), QStringLiteral("track6"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$10"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$10"))}}
{QUrl::fromLocalFile(QStringLiteral("file://image$10"))}, 5}
};
newCovers[QStringLiteral("album1")] = QUrl::fromLocalFile(QStringLiteral("album1"));
......@@ -612,34 +612,34 @@ void ManageMediaPlayerControlTest::moveAnotherTrack()
newTracks = {
{true, QStringLiteral("$1"), QStringLiteral("0"), QStringLiteral("track1"),
QStringLiteral("artist1"), QStringLiteral("album1"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$1"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$1"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$1"))}, 1},
{true, QStringLiteral("$2"), QStringLiteral("0"), QStringLiteral("track2"),
QStringLiteral("artist1"), QStringLiteral("album1"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$2"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$2"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$2"))}, 2},
{true, QStringLiteral("$3"), QStringLiteral("0"), QStringLiteral("track3"),
QStringLiteral("artist1"), QStringLiteral("album1"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$3"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$3"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$3"))}, 3},
{true, QStringLiteral("$4"), QStringLiteral("0"), QStringLiteral("track4"),
QStringLiteral("artist1"), QStringLiteral("album1"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$4"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$4"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$4"))}, 4},
{true, QStringLiteral("$5"), QStringLiteral("0"), QStringLiteral("track1"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$5"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$5"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$5"))}, 5},
{true, QStringLiteral("$6"), QStringLiteral("0"), QStringLiteral("track2"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$6"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$6"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$6"))}, 1},
{true, QStringLiteral("$7"), QStringLiteral("0"), QStringLiteral("track3"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$7"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$7"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$7"))}, 2},
{true, QStringLiteral("$8"), QStringLiteral("0"), QStringLiteral("track4"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$8"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$8"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$8"))}, 3},
{true, QStringLiteral("$9"), QStringLiteral("0"), QStringLiteral("track5"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$9"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$9"))}},
{QUrl::fromLocalFile(QStringLiteral("file://image$9"))}, 4},
{true, QStringLiteral("$10"), QStringLiteral("0"), QStringLiteral("track6"),
QStringLiteral("artist1"), QStringLiteral("album2"), QStringLiteral("artist1"), 1, {}, {QUrl::fromLocalFile(QStringLiteral("$10"))},
{QUrl::fromLocalFile(QStringLiteral("file://image$10"))}}
{QUrl::fromLocalFile(QStringLiteral("file://image$10"))}, 5}
};
newCovers[QStringLiteral("album1")] = QUrl::fromLocalFile(QStringLiteral("album1"));
......@@ -753,34 +753,34 @@ void ManageMediaPlayerControlTest::setCurrentTrackTest()
newTracks = {