Port away from deprecated KService::property overload

This commit is contained in:
Nicolas Fella 2022-12-18 01:19:07 +01:00
parent 3068f8bee5
commit a0e3a6e54b

View file

@ -43,7 +43,7 @@ VirtualKeyboardsModel::VirtualKeyboardsModel(QObject *parent)
: QAbstractListModel(parent)
{
m_services = KApplicationTrader::query([](const KService::Ptr &service) {
return service->property("X-KDE-Wayland-VirtualKeyboard", QVariant::Bool).toBool();
return service->property("X-KDE-Wayland-VirtualKeyboard", QMetaType::Bool).toBool();
});
m_services.prepend({});