d2f3372749
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>) { ... }
26 lines
502 B
QML
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";
|
|
}
|
|
}
|
|
}
|
|
}
|