diff options
author | Dominik Schmidt <domme@tomahawk-player.org> | 2016-01-06 05:40:50 +0300 |
---|---|---|
committer | Dominik Schmidt <domme@tomahawk-player.org> | 2016-01-06 05:40:50 +0300 |
commit | 6d4c99459cbd499d3bc92a4b2d4abe7fb649c626 (patch) | |
tree | 682098e51712e69a5ab4048505e4701e500931a8 /src | |
parent | e14cbcc898f92e2d2087825cdf96b31729ed5a41 (diff) |
Add comment QPlainTextEdit
Diffstat (limited to 'src')
-rw-r--r-- | src/libcrashreporter-gui/CrashReporter.cpp | 2 | ||||
-rw-r--r-- | src/libcrashreporter-gui/CrashReporter.ui | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/libcrashreporter-gui/CrashReporter.cpp b/src/libcrashreporter-gui/CrashReporter.cpp index edea73c..f539e02 100644 --- a/src/libcrashreporter-gui/CrashReporter.cpp +++ b/src/libcrashreporter-gui/CrashReporter.cpp @@ -208,7 +208,9 @@ CrashReporter::onSendButton() m_ui->progressLabel->setVisible( true ); m_ui->sendButton->setEnabled( false ); m_ui->dontSendButton->setEnabled( false ); + m_ui->commentTextEdit->setEnabled( false ); + setReportData( "Comment", m_ui->commentTextEdit->toPlainText().toUtf8() ); adjustSize(); setFixedSize( size() ); diff --git a/src/libcrashreporter-gui/CrashReporter.ui b/src/libcrashreporter-gui/CrashReporter.ui index f01a308..c69ccbd 100644 --- a/src/libcrashreporter-gui/CrashReporter.ui +++ b/src/libcrashreporter-gui/CrashReporter.ui @@ -83,7 +83,7 @@ </sizepolicy> </property> <property name="text"> - <string><html><head/><body><p><span style=" font-weight:600;">Sorry!</span> Tomahawk crashed. Please tell us about it! Tomahawk has created an error report for you that can help improve the stability in the future. You can now send this report directly to the Tomahawk developers.</p></body></html></string> + <string><html><head/><body><p><span style=" font-weight:600;">Sorry!</span> Tomahawk crashed. Please tell us about it! Tomahawk has created an error report for you that can help improve the stability in the future. You can now send this report directly to the Tomahawk developers. Can you tell us what you were doing when this happened?</p></body></html></string> </property> <property name="textFormat"> <enum>Qt::RichText</enum> @@ -112,9 +112,12 @@ </layout> </item> <item> + <widget class="QPlainTextEdit" name="commentTextEdit"/> + </item> + <item> <layout class="QHBoxLayout" name="hboxLayout1"> <property name="spacing"> - <number>-1</number> + <number>6</number> </property> <item> <spacer name="horizontalSpacer"> |