mirror of
https://github.com/GerbilSoft/rvthtool.git
synced 2025-06-18 19:45:35 -04:00
[qrvthtool] MessageSound: The KF6 Framework Integration Plugin is in kf6/.
This commit is contained in:
parent
754a2da58b
commit
c3e5186d58
@ -64,7 +64,14 @@ void MessageSound::play(QMessageBox::Icon notificationType, const QString &messa
|
||||
// should be fast, and we won't have to maintain the QPluginLoader
|
||||
// instance. (Keeping the lib.instance() pointer in memory is likely
|
||||
// to be undefined behavior.)
|
||||
# if QT_VERSION >= QT_VERSION_CHECK(6,0,0)
|
||||
QPluginLoader lib(QStringLiteral("kf6/FrameworkIntegrationPlugin"));
|
||||
# elif QT_VERSION >= QT_VERSION_CHECK(5,0,0)
|
||||
QPluginLoader lib(QStringLiteral("kf5/FrameworkIntegrationPlugin"));
|
||||
# else
|
||||
# error Unsupported Qt version
|
||||
# endif
|
||||
|
||||
QObject *rootObj = lib.instance();
|
||||
if (rootObj) {
|
||||
KMessageBoxNotifyInterface *iface =
|
||||
|
Loading…
Reference in New Issue
Block a user