This repository was archived by the owner on Sep 27, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +24
-2
lines changed Expand file tree Collapse file tree 3 files changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -136,6 +136,11 @@ class DiagnosticsDialog : public QDialog
136
136
* @brief Copies plain text log to system clipboard, useful for bug reports
137
137
*/
138
138
void copyToClipboard ();
139
+
140
+ /* *
141
+ * @brief Clears the diagnostics dialog
142
+ */
143
+ void clearDialog ();
139
144
};
140
145
141
146
Original file line number Diff line number Diff line change @@ -33,6 +33,11 @@ DiagnosticsDialog::DiagnosticsDialog(QWidget* parent):
33
33
{
34
34
mUI .setupUi (this );
35
35
36
+ QObject::connect (
37
+ mUI .clearDialog , SIGNAL (clicked ()),
38
+ this , SLOT (clearDialog ())
39
+ );
40
+
36
41
QObject::connect (
37
42
mUI .clipboardButton , SIGNAL (clicked ()),
38
43
this , SLOT (copyToClipboard ())
@@ -165,4 +170,9 @@ void DiagnosticsDialog::copyToClipboard()
165
170
clipboard->setText (fullLog);
166
171
}
167
172
173
+ void DiagnosticsDialog::clearDialog ()
174
+ {
175
+ mUI .messages ->clear ();
176
+ }
177
+
168
178
DiagnosticsDialog* globalDiagnosticsDialog = NULL ;
Original file line number Diff line number Diff line change 35
35
<string >< !DOCTYPE HTML PUBLIC " -//W3C//DTD HTML 4.0//EN" " http://www.w3.org/TR/REC-html40/strict.dtd">
36
36
< html>< head>< meta name=" qrichtext" content=" 1" />< style type=" text/css">
37
37
p, li { white-space: pre-wrap; }
38
- < /style>< /head>< body style=" font-family:monospace; font-size:10pt ; font-weight:400; font-style:normal;">
39
- < p style=" -qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">< br />< /p>< /body>< /html> </string >
38
+ < /style>< /head>< body style=" font-family:' monospace' ; font-size:11pt ; font-weight:400; font-style:normal;">
39
+ < p style=" -qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:10pt; ">< br />< /p>< /body>< /html> </string >
40
40
</property >
41
41
<property name =" acceptRichText" >
42
42
<bool >false</bool >
@@ -55,6 +55,13 @@ p, li { white-space: pre-wrap; }
55
55
<property name =" margin" >
56
56
<number >0</number >
57
57
</property >
58
+ <item >
59
+ <widget class =" QPushButton" name =" clearDialog" >
60
+ <property name =" text" >
61
+ <string >Clear Messages</string >
62
+ </property >
63
+ </widget >
64
+ </item >
58
65
<item >
59
66
<spacer name =" horizontalSpacer" >
60
67
<property name =" orientation" >
You can’t perform that action at this time.
0 commit comments