Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dschmidt/libcrashreporter-qt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Schmidt <domme@tomahawk-player.org>2016-03-15 16:42:26 +0300
committerDominik Schmidt <domme@tomahawk-player.org>2016-03-15 16:42:26 +0300
commit0b630c0ef34779704856b379520175d72a28a601 (patch)
treefa5db753909d0f16d3a579fa4cfd670ca59b4cb8
parentcbd6f16eb63db53d856188ae1f52227a9eb31147 (diff)
parent617e1ea272a7992dd4eb4d72f1106a142511a076 (diff)
Merge pull request #10 from teo/master
Make bottom text customizable too.
-rw-r--r--src/libcrashreporter-gui/CrashReporter.cpp7
-rw-r--r--src/libcrashreporter-gui/CrashReporter.h1
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);