Commit 6ed59601 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix errors when compile against qt6

parent 38c8d49e
......@@ -46,7 +46,11 @@ namespace Konversation
void Sound::playSound(const QUrl &url)
{
m_currentUrl = url;
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
m_mediaObject->setMedia(url);
#else
m_mediaObject->setSource(url);
#endif
m_mediaObject->play();
}
}
......
Supports Markdown
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