kwin/scripts/desktopchangeosd/contents/ui/main.qml
Konrad Materka d2f3372749 Fix Connections warnings
Qt 5.15 introduced new syntax for defining Connections. Fix warnings like this one:
QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
2020-11-11 19:22:40 +00:00

26 lines
502 B
QML

/*
KWin - the KDE window manager
This file is part of the KDE project.
SPDX-FileCopyrightText: 2012 Martin Gräßlin <mgraesslin@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
import QtQuick 2.0;
Item {
id: root
Loader {
id: mainItemLoader
}
Connections {
target: workspace
function onCurrentDesktopChanged() {
if (!mainItemLoader.item) {
mainItemLoader.source = "osd.qml";
}
}
}
}