Port to new KService::property API

This commit is contained in:
Nicolas Fella 2023-10-06 00:48:40 +02:00 committed by Vlad Zahorodnii
parent 9e10394db1
commit d57c66872c

View file

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