File indexing completed on 2024-09-08 03:42:29
0001 /* 0002 This file is part of the KDE libraries 0003 SPDX-FileCopyrightText: 2007 Urs Wolfer <uwolfer at kde.org> 0004 0005 Parts of this class have been take from the KAboutKDE class, which was 0006 SPDX-FileCopyrightText: 2000 Espen Sand <espen@kde.org> 0007 0008 SPDX-License-Identifier: LGPL-2.0-only 0009 */ 0010 0011 #ifndef KABOUT_KDE_DIALOG_H 0012 #define KABOUT_KDE_DIALOG_H 0013 0014 #include <QDialog> 0015 0016 namespace KDEPrivate 0017 { 0018 /** 0019 * @short Standard "About KDE" dialog box 0020 * 0021 * This class provides the standard "About KDE" dialog box that is used 0022 * in KHelpMenu. Normally you should not use this class directly, but 0023 * rather the KHelpMenu class or even better just subclass your 0024 * toplevel window from KMainWindow. If you do the latter, the help 0025 * menu and thereby this dialog box is available through the 0026 * KMainWindow::helpMenu() function. 0027 * 0028 * @author Urs Wolfer uwolfer @ kde.org 0029 * @internal 0030 */ 0031 0032 class KAboutKdeDialog : public QDialog 0033 { 0034 Q_OBJECT 0035 0036 public: 0037 /** 0038 * Constructor. Creates a fully featured "About KDE" dialog box. 0039 * Note that this dialog is made modeless in the KHelpMenu class so 0040 * the users may expect a modeless dialog. 0041 * 0042 * @param parent The parent of the dialog box. You should use the 0043 * toplevel window so that the dialog becomes centered. 0044 */ 0045 explicit KAboutKdeDialog(QWidget *parent = nullptr); 0046 0047 private: 0048 class Private; 0049 Private *const d; 0050 Q_DISABLE_COPY(KAboutKdeDialog) 0051 }; 0052 0053 } 0054 0055 #endif