Port away from deprecated KNotification constructor

GIT_SILENT
parent fa7276f7
Pipeline #33816 passed with stage
in 43 minutes and 33 seconds
......@@ -205,7 +205,8 @@ PlayerManager *JuK::playerManager() const
void JuK::coverDownloaded(const QPixmap &cover)
{
QString event(cover.isNull() ? "coverFailed" : "coverDownloaded");
KNotification *notification = new KNotification(event, this);
KNotification *notification = new KNotification(event);
notification->setWidget(this);
notification->setPixmap(cover);
notification->setFlags(KNotification::CloseOnTimeout);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment