-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QML: Add ImageProvider for Cover Art #3913
Conversation
029d252
to
d4681e3
Compare
c14b8b6
to
468869f
Compare
cf453e1
to
ec88b47
Compare
src/skin/qml/asyncimageprovider.cpp
Outdated
} | ||
|
||
void AsyncImageResponse::run() { | ||
if (m_id.startsWith(QStringLiteral("coverart/"))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should use a constant for this prefix and 9 = length
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And then:
QString decodeTrackLocationFromId(const QString& coverartId)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like we really need to rewrite the library backend to overcome its limitations. LGTM
This allows displaying cover art in QML skins.
Depends on #3911.