diff options
author | Dominik Schmidt <dev@dominik-schmidt.de> | 2021-03-04 13:48:31 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-04 13:48:31 +0300 |
commit | 5423c0ef54f99cea2628c2cb3f48e39e215f9961 (patch) | |
tree | 1d6eb104db3b6c4c99b0cd66d101ba76cb9c4981 | |
parent | 34b4665bd7ae5a86115f366b3ec4935d7ecb769f (diff) | |
parent | f3beb4d9047be8f321dc512bcb6959c52d5176c1 (diff) |
Merge pull request #24 from TheOneRing/work/comment
Allow to pre set the comment
-rw-r--r-- | src/libcrashreporter-gui/CrashReporter.cpp | 6 | ||||
-rw-r--r-- | src/libcrashreporter-gui/CrashReporter.h | 1 |
2 files changed, 7 insertions, 0 deletions
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 @@ -186,6 +186,12 @@ CrashReporter::setText( const QString& text ) } void +CrashReporter::setComment( const QString &text ) +{ + m_ui->commentTextEdit->setPlainText(text); +} + +void CrashReporter::setBottomText( const QString& text ) { m_ui->bottomLabel->setText(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 @@ public: 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); |