Warning, /utilities/kdebugsettings/src/quickapps/contents/ui/EnvironmentVariableRulesPage.qml is written in an unsupported language. File is not indexed.
0001 // SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org> 0002 // SPDX-License-Identifier: LGPL-2.0-or-later 0003 0004 import QtQuick 2.15 0005 import QtQuick.Layouts 1.15 0006 import QtQuick.Controls 2.15 as QQC2 0007 import org.kde.kirigami 2.15 as Kirigami 0008 import org.kde.kdebugsettings 1.0 0009 0010 Kirigami.Page { 0011 id: root 0012 title: i18nc("@title", "Rules Settings with Environment Variable") 0013 0014 leftPadding: 20 0015 0016 ColumnLayout { 0017 spacing: Kirigami.Units.gridUnit 0018 width: parent.width - (Kirigami.Units.largeSpacing * 4) 0019 anchors.centerIn: parent 0020 TextEdit { 0021 //placeholderText: i18n("No rules have been defined in the environment variable \"QT_LOGGING_RULES\".") 0022 text: LoggingManager.environmentrules().length === 0 ? i18n("No rules have been defined in the environment variable \"QT_LOGGING_RULES\".") : LoggingManager.environmentrules() 0023 } 0024 } 0025 } 0026