diff options
author | Teo Mrnjavac <teo@kde.org> | 2016-03-15 13:35:10 +0300 |
---|---|---|
committer | Teo Mrnjavac <teo@kde.org> | 2016-03-15 13:35:45 +0300 |
commit | 617e1ea272a7992dd4eb4d72f1106a142511a076 (patch) | |
tree | fa5db753909d0f16d3a579fa4cfd670ca59b4cb8 | |
parent | cbd6f16eb63db53d856188ae1f52227a9eb31147 (diff) |
Make bottom text customizable too.
-rw-r--r-- | src/libcrashreporter-gui/CrashReporter.cpp | 7 | ||||
-rw-r--r-- | src/libcrashreporter-gui/CrashReporter.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/libcrashreporter-gui/CrashReporter.cpp b/src/libcrashreporter-gui/CrashReporter.cpp index 5d537d8..fec76a1 100644 --- a/src/libcrashreporter-gui/CrashReporter.cpp +++ b/src/libcrashreporter-gui/CrashReporter.cpp @@ -95,6 +95,13 @@ CrashReporter::setText( const QString& text ) m_ui->topLabel->setText(text); } +void +CrashReporter::setBottomText( const QString& text ) +{ + m_ui->bottomLabel->setText(text); + m_ui->bottomLabel->setVisible(!text.isEmpty()); +} + static QByteArray contents( const QString& path ) { diff --git a/src/libcrashreporter-gui/CrashReporter.h b/src/libcrashreporter-gui/CrashReporter.h index 80b0fa3..2b39874 100644 --- a/src/libcrashreporter-gui/CrashReporter.h +++ b/src/libcrashreporter-gui/CrashReporter.h @@ -41,6 +41,7 @@ public: void setLogo(const QPixmap& logo); void setText(const QString& text); + void setBottomText(const QString& text); void setReportData(const QByteArray& name, const QByteArray& content); void setReportData(const QByteArray& name, const QByteArray& content, const QByteArray& contentType, const QByteArray& fileName); |