-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE][needs-docs] Add better crash dialog
- Loading branch information
Showing
6 changed files
with
690 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/*************************************************************************** | ||
qgscrashdialog.cpp - QgsCrashDialog | ||
--------------------- | ||
begin : 11.4.2017 | ||
copyright : (C) 2017 by Nathan Woodrow | ||
email : woodrow.nathan@gmail.com | ||
*************************************************************************** | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation; either version 2 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
***************************************************************************/ | ||
|
||
|
||
#include "qgscrashdialog.h" | ||
|
||
QgsCrashDialog::QgsCrashDialog( QWidget *parent ) | ||
: QDialog( parent ) | ||
{ | ||
setupUi( this ); | ||
setWindowTitle( tr( "Oh. Snap!" ) ); | ||
|
||
mCrashHeaderMessage->setText( tr( "Ouch!" ) ); | ||
mCrashMessage->setText( tr("Sorry it looks like QGIS crashed. \nSomething unexpected happened that we didn't handle correctly.")); | ||
|
||
mHelpLabel->setText( tr( "Keen to help us fix it? <br> <a href=\"http://qgis.org/en/site/getinvolved/development/bugreporting.html#bugs-features-and-issues\"> Follow the steps to help devs.<a>" ) ); | ||
mHelpLabel->setTextInteractionFlags( Qt::TextBrowserInteraction ); | ||
mHelpLabel->setOpenExternalLinks( true ); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/*************************************************************************** | ||
qgscrashdialog.h - QgsCrashDialog | ||
--------------------- | ||
begin : 11.4.2017 | ||
copyright : (C) 2017 by Nathan Woodrow | ||
email : woodrow.nathan@gmail.com | ||
*************************************************************************** | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation; either version 2 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
***************************************************************************/ | ||
|
||
#ifndef QGSCRASHDIALOG_H | ||
#define QGSCRASHDIALOG_H | ||
|
||
#include <QDialog> | ||
#include "ui_qgscrashdialog.h" | ||
#include "qgis_app.h" | ||
|
||
/** | ||
* A dialog to show a nicer crash dialog to the user. | ||
*/ | ||
class APP_EXPORT QgsCrashDialog : public QDialog, private Ui::QgsCrashDialog | ||
{ | ||
Q_OBJECT | ||
public: | ||
|
||
/** | ||
* A dialog to show a nicer crash dialog to the user. | ||
*/ | ||
QgsCrashDialog( QWidget *parent = nullptr ); | ||
}; | ||
|
||
#endif // QGSCRASHDIALOG_H |
Oops, something went wrong.