Commit 845585d9 authored by Adriaan de Groot's avatar Adriaan de Groot 💬

Avoid deprecated API

- setupBindings() was deprecated in 5.45, plasma-desktop requires 5.71
- follow the suggested KDeclarative replacement of setupBindings()
parent e65c30d3
......@@ -80,8 +80,9 @@ LibinputConfig::LibinputConfig(ConfigContainer *parent, InputBackend *backend)
m_view->rootContext()->setContextProperty("deviceModel", getDeviceList(m_backend));
KDeclarative::KDeclarative kdeclarative;
kdeclarative.setupEngine(m_view->engine()); // This is a new engine
kdeclarative.setDeclarativeEngine(m_view->engine());
kdeclarative.setupBindings();
kdeclarative.setupContext();
if (m_backend->mode() == InputBackendMode::XLibinput) {
m_view->setSource(QUrl("qrc:/libinput/main_deviceless.qml"));
......
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