File indexing completed on 2024-05-19 05:06:55
0001 /* 0002 SPDX-FileCopyrightText: 2022 Thomas Baumgart <tbaumgart@kde.org> 0003 SPDX-License-Identifier: GPL-2.0-or-later 0004 */ 0005 0006 #ifndef KMMYESNO_H 0007 #define KMMYESNO_H 0008 0009 // ---------------------------------------------------------------------------- 0010 // QT Includes 0011 0012 // ---------------------------------------------------------------------------- 0013 // KDE Includes 0014 0015 #include <KGuiItem> 0016 0017 // ---------------------------------------------------------------------------- 0018 // Project Includes 0019 0020 #include "kmm_yesno_export.h" 0021 0022 class QWidget; 0023 class QPushButton; 0024 0025 namespace KMMYesNo { 0026 /** @todo Workaround for KF5 > 100 where yes and no are deprecated 0027 * we need to replace them over time, but this also affects 0028 * the text in the dialogs which refer to Yes and No and it 0029 * may also affect the documentation. For now, we leave it 0030 * as is and provide our own version. 0031 */ 0032 KMM_YESNO_EXPORT KGuiItem yes(); 0033 KMM_YESNO_EXPORT KGuiItem no(); 0034 } // namespace KMMYesNo 0035 0036 #endif // KMMYESNO_H