Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:09:33

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 
0004 #ifndef QERRORMESSAGE_H
0005 #define QERRORMESSAGE_H
0006 
0007 #include <QtWidgets/qtwidgetsglobal.h>
0008 
0009 #include <QtWidgets/qdialog.h>
0010 
0011 QT_REQUIRE_CONFIG(errormessage);
0012 
0013 QT_BEGIN_NAMESPACE
0014 
0015 class QErrorMessagePrivate;
0016 
0017 class Q_WIDGETS_EXPORT QErrorMessage: public QDialog
0018 {
0019     Q_OBJECT
0020     Q_DECLARE_PRIVATE(QErrorMessage)
0021 public:
0022     explicit QErrorMessage(QWidget* parent = nullptr);
0023     ~QErrorMessage();
0024 
0025     static QErrorMessage * qtHandler();
0026 
0027 public Q_SLOTS:
0028     void showMessage(const QString &message);
0029     void showMessage(const QString &message, const QString &type);
0030 
0031 protected:
0032     void done(int) override;
0033     void changeEvent(QEvent *e) override;
0034 
0035 private:
0036     Q_DISABLE_COPY(QErrorMessage)
0037 };
0038 
0039 QT_END_NAMESPACE
0040 
0041 #endif // QERRORMESSAGE_H