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
path: root/src
diff options
context:
space:
mode:
authorDominik Schmidt <domme@tomahawk-player.org>2016-01-06 05:40:50 +0300
committerDominik Schmidt <domme@tomahawk-player.org>2016-01-06 05:40:50 +0300
commit6d4c99459cbd499d3bc92a4b2d4abe7fb649c626 (patch)
tree682098e51712e69a5ab4048505e4701e500931a8 /src
parente14cbcc898f92e2d2087825cdf96b31729ed5a41 (diff)
Add comment QPlainTextEdit
Diffstat (limited to 'src')
-rw-r--r--src/libcrashreporter-gui/CrashReporter.cpp2
-rw-r--r--src/libcrashreporter-gui/CrashReporter.ui7
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>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Sorry!&lt;/span&gt; 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.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
+ <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Sorry!&lt;/span&gt; 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?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</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">