Warning, /system/kde-nomodeset/src/qml/main.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 Kirigami.ApplicationWindow { 0010 id: appWindow 0011 0012 title: standardTitle 0013 minimumWidth: Kirigami.Units.gridUnit * 22 0014 minimumHeight: Kirigami.Units.gridUnit * 22 0015 0016 onClosing: LifeTimeWrapper.quit() 0017 0018 // The sub pages can't bind root title for some reason or another so we run the title through a function. 0019 property string standardTitle: i18nc("@title:window", "Safe Graphics Mode") 0020 property string preambleText: i18nc("@label", "This system is running in Safe Graphics Mode (also known as 'nomodeset'). While this mode often works even when the graphics driver is malfunctioning it is also greatly impairing the ability of your graphics card to work as intended because the system likely is using a very basic fallback graphics driver.") 0021 property string fixItText: i18nc("@label", 0022 "It is advised to deal with whatever is wrong with your system that you felt the need to use Safe Graphics Mode. This likely means either upgrading the Linux kernel or installing a graphics driver that correctly supports the graphics card. If you are unsure what to do it's probably best to ask in a support forum for this operating system.") 0023 0024 pageStack.initialPage: AuthHelper.grubCfgExists ? "qrc:/DisablePage.qml" : "qrc:/InfoPage.qml" 0025 0026 // Window instances aren't Items so we need a helper to do clean state management. 0027 StateGroup { 0028 states: [ 0029 State { 0030 name: "busy" 0031 when: AuthHelper.busy 0032 PropertyChanges { target: pageStack; initialPage: "qrc:/BusyPage.qml" } 0033 } 0034 , State { 0035 name: "disabled" 0036 when: AuthHelper.disabled 0037 PropertyChanges { target: pageStack; initialPage: "qrc:/DisabledPage.qml" } 0038 } 0039 , State { 0040 name: "error" 0041 when: AuthHelper.error !== "" 0042 PropertyChanges { target: pageStack; initialPage: "qrc:/ErrorPage.qml" } 0043 } 0044 ] 0045 } 0046 }