Skip to content

Commit

Permalink
Merge pull request dschmidt#24 from TheOneRing/work/comment
Browse files Browse the repository at this point in the history
Allow to pre set the comment
  • Loading branch information
dschmidt authored Mar 4, 2021
2 parents 34b4665 + f3beb4d commit 5423c0e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/libcrashreporter-gui/CrashReporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
{
Expand Down
1 change: 1 addition & 0 deletions src/libcrashreporter-gui/CrashReporter.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5423c0e

Please sign in to comment.