Skip to content

Commit

Permalink
Use QPlainTextEdit for crash reports (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
variar committed Apr 1, 2021
1 parent 907a2e8 commit a6b0481
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/crashhandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#include <QPushButton>
#include <QStandardPaths>
#include <QSysInfo>
#include <QTextEdit>
#include <QPlainTextEdit>
#include <QUrlQuery>
#include <QVBoxLayout>

Expand Down Expand Up @@ -86,7 +86,7 @@ QDialog::DialogCode askUserConfirmation( const QString& formattedReport, const Q
auto crashReportHeader = std::make_unique<QLabel>();
crashReportHeader->setText( "We collected the following crash report:" );

auto report = std::make_unique<QTextEdit>();
auto report = std::make_unique<QPlainTextEdit>();
report->setReadOnly( true );
report->setPlainText( formattedReport );
report->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding );
Expand Down

0 comments on commit a6b0481

Please sign in to comment.