blob: c2e68fdb51e191ccf5a7dfcdfff077b0d67bfad3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#ifndef QERRORMESSAGE_H
#define QERRORMESSAGE_H
#include <QtWidgets/qtwidgetsglobal.h>
#include <QtWidgets/qdialog.h>
QT_REQUIRE_CONFIG(errormessage);
QT_BEGIN_NAMESPACE
class QErrorMessagePrivate;
class Q_WIDGETS_EXPORT QErrorMessage: public QDialog
{
Q_OBJECT
Q_DECLARE_PRIVATE(QErrorMessage)
public:
explicit QErrorMessage(QWidget* parent = nullptr);
~QErrorMessage();
static QErrorMessage * qtHandler();
public Q_SLOTS:
void showMessage(const QString &message);
void showMessage(const QString &message, const QString &type);
void setVisible(bool) override;
protected:
void done(int) override;
void changeEvent(QEvent *e) override;
private:
Q_DISABLE_COPY(QErrorMessage)
};
QT_END_NAMESPACE
#endif // QERRORMESSAGE_H
|