Commit c38b6a9f authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make it compile without deprecated method

Summary: compile without deprecated method

Reviewers: apol, davidedmundson

Reviewed By: davidedmundson

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D25736
parent 3c0853a4
......@@ -70,8 +70,13 @@ void Plugin::registerTypes(const char* uri)
Q_UNUSED(jsEngine);
return new MicrophoneIndicator();
});
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
qmlRegisterType<QPulseAudio::Client>();
qmlRegisterType<QPulseAudio::Sink>();
qmlRegisterType<QPulseAudio::Source>();
#else
qmlRegisterAnonymousType<QPulseAudio::Client>(uri, 1);
qmlRegisterAnonymousType<QPulseAudio::Sink>(uri, 1);
qmlRegisterAnonymousType<QPulseAudio::Source>(uri, 1);
#endif
}
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