Warning, /plasma/drkonqi/src/qml/BacktracePage.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.19 as Kirigami
0008 
0009 import org.kde.drkonqi 1.0
0010 
0011 DeveloperPage {
0012     title: i18nc("@title", "Fetching the Backtrace (Automatic Crash Information)")
0013     basic: !advancedAction.checked
0014 
0015     onTraceChanged: {
0016         reportInterface.backtrace = trace
0017         reportInterface.setFirstBacktraceFunctions(BacktraceGenerator.parser().firstValidFunctions())
0018         console.log("trace changed")
0019     }
0020 
0021     footerActionsLeft: [
0022         Kirigami.Action {
0023             id: advancedAction
0024             checkable: true
0025             iconName: "code-context"
0026             text: i18nc("@action:button", "Show backtrace content (advanced)")
0027         }
0028     ]
0029     footerActionsRight: [
0030         Kirigami.Action {
0031             enabled: {
0032                 if (DrKonqi.ignoreQuality() && state == BacktraceGenerator.Loaded) {
0033                     return true;
0034                 }
0035                 switch (usefulness) {
0036                 case BacktraceParser.ReallyUseful:
0037                 case BacktraceParser.MayBeUseful:
0038                 // TODO figure out how to best decide whether to move on or not
0039                 case BacktraceParser.ProbablyUseless:
0040                     return true
0041                 case BacktraceParser.Useless:
0042                 case BacktraceParser.InvalidUsefulness:
0043                     return false
0044                 }
0045             }
0046             iconName: "go-next"
0047             text: i18nc("@action:button", "Next")
0048             onTriggered: pageStack.push("qrc:/ui/BugzillaPage.qml")
0049         }
0050     ]
0051 }