File indexing completed on 2024-09-29 04:50:26
0001 /* 0002 SPDX-FileCopyrightText: 2009 George Kiagiadakis <gkiagia@users.sourceforge.net> 0003 SPDX-FileCopyrightText: 2021 Harald Sitter <sitter@kde.org> 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 #ifndef DRKONQI_GLOBALS_H 0007 #define DRKONQI_GLOBALS_H 0008 0009 #include <KGuiItem> 0010 #include <QIcon> 0011 0012 #include "drkonqi.h" 0013 0014 /** This class provides a custom constructor to fill the "toolTip" 0015 * and "whatsThis" texts of KGuiItem with the same text. 0016 */ 0017 class KGuiItem2 : public KGuiItem 0018 { 0019 public: 0020 inline KGuiItem2(const QString &text, const QIcon &icon, const QString &toolTip) 0021 : KGuiItem(text, icon, toolTip, toolTip) 0022 { 0023 } 0024 }; 0025 0026 namespace DrStandardGuiItem 0027 { 0028 KGuiItem2 appRestart(); 0029 }; // namespace DrStandardGuiItem 0030 0031 /* Urls are defined globally here, so that they can change easily */ 0032 #define KDE_BUGZILLA_URL DrKonqi::kdeBugzillaURL() 0033 #define KDE_BUGZILLA_CREATE_ACCOUNT_URL KDE_BUGZILLA_URL + QStringLiteral("createaccount.cgi") 0034 #define KDE_BUGZILLA_SHORT_URL "bugs.kde.org" 0035 #define TECHBASE_HOWTO_DOC "https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports#Preparing_your_KDE_packages" 0036 0037 #endif