Warning, /system/kde-nomodeset/src/qml/InfoPage.qml is written in an unsupported language. File is not indexed.
0001 // SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0002 // SPDX-FileCopyrightText: 2021 Harald Sitter <sitter@kde.org> 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.12 as Kirigami 0008 0009 // The cmdline contains nomodeset but it isn't set by the well known grub config hook. We can't undo this but still 0010 // want to inform the user that graphics performance may be garbage 0011 Kirigami.Page { 0012 title: appWindow.standardTitle 0013 0014 RowLayout { 0015 width: parent.width 0016 0017 Kirigami.Icon { 0018 implicitWidth: Kirigami.Units.iconSizes.enormous 0019 implicitHeight: implicitWidth 0020 source: "video-display" 0021 } 0022 0023 ColumnLayout { 0024 Layout.fillWidth: true 0025 0026 QQC2.Label { 0027 Layout.fillWidth: true 0028 wrapMode: Text.Wrap 0029 textFormat: Text.RichText 0030 text: appWindow.preambleText 0031 } 0032 0033 QQC2.Label { 0034 Layout.fillWidth: true 0035 wrapMode: Text.Wrap 0036 textFormat: Text.RichText 0037 text: { 0038 if (AuthHelper.liveSession) { 0039 // Be a bit more helpful for live sessions. The user is trying to use a distro but its not working 0040 // without nomodeset but the user might not understand why that is. 0041 return xi18nc("@label", 0042 "If regular graphics mode is not working on this system you'll need to figure out what's wrong or ask for help in a support forum for this operating system. Whatever is wrong needs to be resolved on the installed system before it can perform properly.") 0043 } 0044 return appWindow.fixItText 0045 } 0046 } 0047 0048 QQC2.Label { 0049 Layout.fillWidth: true 0050 wrapMode: Text.Wrap 0051 visible: AuthHelper.liveSession && AuthHelper.livePersistent 0052 text: xi18nc("@info", `<note>Safe Graphics Mode will be preserved after installation.</note>`) 0053 } 0054 } 0055 } 0056 0057 footer: QQC2.DialogButtonBox { 0058 standardButtons: QQC2.DialogButtonBox.Ok 0059 onAccepted: LifeTimeWrapper.quit() 0060 } 0061 }