Warning, /frameworks/kwindowsystem/src/qml/examples/platform.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 SPDX-FileCopyrightText: 2023 Nicolas Fella <nicolas.fella@gmx.de> 0003 0004 SPDX-License-Identifier: LGPL-2.1-or-later 0005 */ 0006 0007 import QtQuick 2.15 0008 import QtQuick.Window 2.15 0009 import QtQuick.Controls 2.15 as QQC2 0010 0011 import org.kde.kwindowsystem 1.0 0012 0013 Item { 0014 0015 Column { 0016 anchors.centerIn: parent 0017 0018 QQC2.Label { 0019 text: "Is X11: " + KWindowSystem.isPlatformX11 0020 } 0021 0022 QQC2.Label { 0023 text: "Is Wayland: " + KWindowSystem.isPlatformWayland 0024 } 0025 } 0026 }