QGIS API Documentation  2.99.0-Master (716ff6c)
qgserrordialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgserrordialog.h - error dialog
3  -------------------
4  begin : October 2012
5  copyright : (C) October 2012 Radim Blazek
6  email : radim dot blazek at gmail dot com
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 #ifndef QGSERRORDIALOG_H
18 #define QGSERRORDIALOG_H
19 
20 #include <QDialog>
21 
22 #include "ui_qgserrordialogbase.h"
23 #include "qgisgui.h"
24 #include "qgserror.h"
25 #include "qgis_gui.h"
26 
30 class GUI_EXPORT QgsErrorDialog: public QDialog, private Ui::QgsErrorDialogBase
31 {
32  Q_OBJECT
33  public:
34  QgsErrorDialog( const QgsError &error, const QString &title, QWidget *parent = nullptr, Qt::WindowFlags fl = QgisGui::ModalDialogFlags );
35 
42  static void show( const QgsError &error, const QString &title, QWidget *parent = nullptr, Qt::WindowFlags fl = QgisGui::ModalDialogFlags );
43 
44  public slots:
45  void on_mDetailPushButton_clicked();
46  void on_mDetailCheckBox_stateChanged( int state );
47 
48  private:
49  QgsError mError;
50 };
51 
52 #endif
static const Qt::WindowFlags ModalDialogFlags
/var ModalDialogFlags /brief Flags used to create a modal dialog (adapted from QMessageBox).
Definition: qgisgui.h:51
QgsError is container for error messages (report).
Definition: qgserror.h:82