File indexing completed on 2024-04-21 16:12:19
0001 // SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0002 // SPDX-FileCopyrightText: 2022 Harald Sitter <sitter@kde.org> 0003 0004 #include "doctore.h" 0005 0006 #include <QClipboard> 0007 #include <QGuiApplication> 0008 0009 #include "crashedapplication.h" 0010 #include "drkonqi.h" 0011 0012 void Doctore::saveReport(const QString &text) 0013 { 0014 DrKonqi::saveReport(text, nullptr); 0015 } 0016 0017 void Doctore::copyToClipboard(const QString &text) 0018 { 0019 QGuiApplication::clipboard()->setText(text.trimmed()); 0020 } 0021 0022 QString Doctore::appName() 0023 { 0024 return DrKonqi::crashedApplication()->name(); 0025 } 0026 0027 QString Doctore::kdeBugzillaURL() 0028 { 0029 return DrKonqi::kdeBugzillaURL(); 0030 } 0031 0032 bool Doctore::isSafer() 0033 { 0034 return DrKonqi::isSafer(); 0035 } 0036 0037 SystemInformation *Doctore::systemInformation() 0038 { 0039 return DrKonqi::systemInformation(); 0040 } 0041 0042 Q_INVOKABLE bool Doctore::ignoreQuality() 0043 { 0044 return DrKonqi::ignoreQuality(); 0045 }