Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++
1.4 KB
Raw Blame
/* This file is part of the KDE project
   SPDX-FileCopyrightText: 1999 David Faure <[email protected]>

   SPDX-License-Identifier: LGPL-2.0-or-later
*/
#ifndef KBUGREPORT_H
#define KBUGREPORT_H

#include <QDialog>
#include <kritawidgetutils_export.h>

class KAboutData;
class KisKBugReportPrivate;

/**
 * @short A dialog box for sending bug reports.
 *
 * All the information needed by the dialog box
 * (program name, version, bug-report address, etc.)
 * comes from the KAboutData class.
 * Make sure you create an instance of KAboutData and pass it
 * to KCmdLineArgs.
 *
 * \image html kbugreport.png "KDE Bug Report Dialog"
 *
 * @author David Faure <[email protected]>
 */
class KRITAWIDGETUTILS_EXPORT KisKBugReport : public QDialog
{
    Q_OBJECT

public:
    /**
     * Creates a bug-report dialog.
     * Note that you shouldn't have to do this manually,
     * since KisKHelpMenu takes care of the menu item
     * for "Report Bug..." and of creating a KisKBugReport dialog.
     */
    explicit KisKBugReport(const KAboutData &aboutData, QWidget *parent = 0L);

    /**
     * Destructor
     */
    ~KisKBugReport() override;


    /**
      * OK has been clicked
     */
    void accept() override;

private:
    /**
     * Update the url to match the current os, compiler, selected app, etc
     */
    Q_PRIVATE_SLOT(d, void _k_updateUrl())


private:
    friend class KisKBugReportPrivate;
    KisKBugReportPrivate *const d;

    Q_DISABLE_COPY(KisKBugReport)
};

#endif