diff --git a/src/libcrashreporter-gui/CrashReporter.cpp b/src/libcrashreporter-gui/CrashReporter.cpp index 1424d49..d11b4ae 100644 --- a/src/libcrashreporter-gui/CrashReporter.cpp +++ b/src/libcrashreporter-gui/CrashReporter.cpp @@ -185,6 +185,12 @@ CrashReporter::setText( const QString& text ) m_ui->topLabel->setText(text); } +void +CrashReporter::setComment( const QString &text ) +{ + m_ui->commentTextEdit->setPlainText(text); +} + void CrashReporter::setBottomText( const QString& text ) { diff --git a/src/libcrashreporter-gui/CrashReporter.h b/src/libcrashreporter-gui/CrashReporter.h index 3344c11..4a3bfa6 100644 --- a/src/libcrashreporter-gui/CrashReporter.h +++ b/src/libcrashreporter-gui/CrashReporter.h @@ -47,6 +47,7 @@ class CrashReporter : public QDialog void setLogo(const QPixmap& logo); void setText(const QString& text); + void setComment(const QString& text); void setBottomText(const QString& text); void setReportData(const QByteArray& name, const QByteArray& content);