Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-20 09:24:00

0001 // Copyright (C) 2016 The Qt Company Ltd.
0002 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
0003 // Qt-Security score:significant reason:default
0004 
0005 #ifndef QERRORMESSAGE_H
0006 #define QERRORMESSAGE_H
0007 
0008 #include <QtWidgets/qtwidgetsglobal.h>
0009 
0010 #include <QtWidgets/qdialog.h>
0011 
0012 QT_REQUIRE_CONFIG(errormessage);
0013 
0014 QT_BEGIN_NAMESPACE
0015 
0016 class QErrorMessagePrivate;
0017 
0018 class Q_WIDGETS_EXPORT QErrorMessage: public QDialog
0019 {
0020     Q_OBJECT
0021     Q_DECLARE_PRIVATE(QErrorMessage)
0022 public:
0023     explicit QErrorMessage(QWidget* parent = nullptr);
0024     ~QErrorMessage();
0025 
0026     static QErrorMessage * qtHandler();
0027 
0028 public Q_SLOTS:
0029     void showMessage(const QString &message);
0030     void showMessage(const QString &message, const QString &type);
0031 
0032 protected:
0033     void done(int) override;
0034     void changeEvent(QEvent *e) override;
0035 
0036 private:
0037     Q_DISABLE_COPY(QErrorMessage)
0038 };
0039 
0040 QT_END_NAMESPACE
0041 
0042 #endif // QERRORMESSAGE_H