|
1 |
| -/*************************************************************************** |
2 |
| - qgscrashdialog.h - QgsCrashDialog |
3 |
| -
|
4 |
| - --------------------- |
5 |
| - begin : 11.4.2017 |
6 |
| - copyright : (C) 2017 by Nathan Woodrow |
7 |
| - email : woodrow.nathan@gmail.com |
8 |
| - *************************************************************************** |
9 |
| - * * |
10 |
| - * This program is free software; you can redistribute it and/or modify * |
11 |
| - * it under the terms of the GNU General Public License as published by * |
12 |
| - * the Free Software Foundation; either version 2 of the License, or * |
13 |
| - * (at your option) any later version. * |
14 |
| - * * |
15 |
| - ***************************************************************************/ |
16 |
| - |
17 |
| -#ifndef QGSCRASHDIALOG_H |
18 |
| -#define QGSCRASHDIALOG_H |
19 |
| - |
20 |
| -#include <QDialog> |
21 |
| -#include <QFormLayout> |
22 |
| -#include <QPlainTextEdit> |
23 |
| -#include <QPushButton> |
24 |
| - |
25 |
| -#include "ui_qgscrashdialog.h" |
26 |
| - |
27 |
| -/** |
28 |
| - * A dialog to show a nicer crash dialog to the user. |
29 |
| - */ |
30 |
| -class QgsCrashDialog : public QDialog, private Ui::QgsCrashDialog |
31 |
| -{ |
32 |
| - Q_OBJECT |
33 |
| - public: |
34 |
| - |
35 |
| - /** |
36 |
| - * A dialog to show a nicer crash dialog to the user. |
37 |
| - */ |
38 |
| - QgsCrashDialog( QWidget *parent = nullptr ); |
39 |
| - |
40 |
| - void setBugReport( const QString &reportData ); |
41 |
| - void setReloadArgs( const QString &reloadArgs ); |
42 |
| - |
43 |
| - static QString htmlToMarkdown( const QString &html ); |
44 |
| - |
45 |
| - private slots: |
46 |
| - void showReportWidget(); |
47 |
| - void createBugReport(); |
48 |
| - void reloadQGIS(); |
49 |
| - |
50 |
| - private: |
51 |
| - QString mReportData; |
52 |
| - QString mReloadArgs; |
53 |
| -}; |
54 |
| - |
55 |
| -#endif // QGSCRASHDIALOG_H |
| 1 | +/*************************************************************************** |
| 2 | + qgscrashdialog.h - QgsCrashDialog |
| 3 | +
|
| 4 | + --------------------- |
| 5 | + begin : 11.4.2017 |
| 6 | + copyright : (C) 2017 by Nathan Woodrow |
| 7 | + email : woodrow.nathan@gmail.com |
| 8 | + *************************************************************************** |
| 9 | + * * |
| 10 | + * This program is free software; you can redistribute it and/or modify * |
| 11 | + * it under the terms of the GNU General Public License as published by * |
| 12 | + * the Free Software Foundation; either version 2 of the License, or * |
| 13 | + * (at your option) any later version. * |
| 14 | + * * |
| 15 | + ***************************************************************************/ |
| 16 | + |
| 17 | +#ifndef QGSCRASHDIALOG_H |
| 18 | +#define QGSCRASHDIALOG_H |
| 19 | + |
| 20 | +#include <QDialog> |
| 21 | +#include <QFormLayout> |
| 22 | +#include <QPlainTextEdit> |
| 23 | +#include <QPushButton> |
| 24 | + |
| 25 | +#include "ui_qgscrashdialog.h" |
| 26 | + |
| 27 | +/** |
| 28 | + * A dialog to show a nicer crash dialog to the user. |
| 29 | + */ |
| 30 | +class QgsCrashDialog : public QDialog, private Ui::QgsCrashDialog |
| 31 | +{ |
| 32 | + Q_OBJECT |
| 33 | + public: |
| 34 | + |
| 35 | + /** |
| 36 | + * A dialog to show a nicer crash dialog to the user. |
| 37 | + */ |
| 38 | + QgsCrashDialog( QWidget *parent = nullptr ); |
| 39 | + |
| 40 | + void setBugReport( const QString &reportData ); |
| 41 | + void setReloadArgs( const QString &reloadArgs ); |
| 42 | + |
| 43 | + static QString htmlToMarkdown( const QString &html ); |
| 44 | + |
| 45 | + private slots: |
| 46 | + void showReportWidget(); |
| 47 | + void createBugReport(); |
| 48 | + void reloadQGIS(); |
| 49 | + |
| 50 | + private: |
| 51 | + QString mReportData; |
| 52 | + QString mReloadArgs; |
| 53 | +}; |
| 54 | + |
| 55 | +#endif // QGSCRASHDIALOG_H |
0 commit comments