UI: Add button to Analyzer in the Log Reply window
parent
c7eaee632a
commit
9d89de79f9
|
@ -336,6 +336,7 @@ LogReturnDialog="Log Upload Successful"
|
||||||
LogReturnDialog.Description="Your log file has been uploaded. You can now share the URL for debugging or support purposes."
|
LogReturnDialog.Description="Your log file has been uploaded. You can now share the URL for debugging or support purposes."
|
||||||
LogReturnDialog.Description.Crash="Your crash report has been uploaded. You can now share the URL for debugging purposes."
|
LogReturnDialog.Description.Crash="Your crash report has been uploaded. You can now share the URL for debugging purposes."
|
||||||
LogReturnDialog.CopyURL="Copy URL"
|
LogReturnDialog.CopyURL="Copy URL"
|
||||||
|
LogReturnDialog.AnalyzeURL="Analyze"
|
||||||
LogReturnDialog.ErrorUploadingLog="Error uploading log file"
|
LogReturnDialog.ErrorUploadingLog="Error uploading log file"
|
||||||
|
|
||||||
# remux dialog
|
# remux dialog
|
||||||
|
|
|
@ -40,6 +40,13 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="analyzeURL">
|
||||||
|
<property name="text">
|
||||||
|
<string>LogReturnDialog.AnalyzeURL</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
|
|
|
@ -16,6 +16,9 @@
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
|
||||||
#include <QClipboard>
|
#include <QClipboard>
|
||||||
|
#include <QUrl>
|
||||||
|
#include <QUrlQuery>
|
||||||
|
#include <QDesktopServices>
|
||||||
#include "window-log-reply.hpp"
|
#include "window-log-reply.hpp"
|
||||||
#include "obs-app.hpp"
|
#include "obs-app.hpp"
|
||||||
|
|
||||||
|
@ -26,6 +29,7 @@ OBSLogReply::OBSLogReply(QWidget *parent, const QString &url, const bool crash)
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
ui->urlEdit->setText(url);
|
ui->urlEdit->setText(url);
|
||||||
if (crash) {
|
if (crash) {
|
||||||
|
ui->analyzeURL->hide();
|
||||||
ui->description->setText(
|
ui->description->setText(
|
||||||
Str("LogReturnDialog.Description.Crash"));
|
Str("LogReturnDialog.Description.Crash"));
|
||||||
}
|
}
|
||||||
|
@ -38,3 +42,13 @@ void OBSLogReply::on_copyURL_clicked()
|
||||||
QClipboard *clipboard = QApplication::clipboard();
|
QClipboard *clipboard = QApplication::clipboard();
|
||||||
clipboard->setText(ui->urlEdit->text());
|
clipboard->setText(ui->urlEdit->text());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void OBSLogReply::on_analyzeURL_clicked()
|
||||||
|
{
|
||||||
|
QUrlQuery param;
|
||||||
|
param.addQueryItem("log_url",
|
||||||
|
QUrl::toPercentEncoding(ui->urlEdit->text()));
|
||||||
|
QUrl url("https://obsproject.com/tools/analyzer", QUrl::TolerantMode);
|
||||||
|
url.setQuery(param);
|
||||||
|
QDesktopServices::openUrl(url);
|
||||||
|
}
|
||||||
|
|
|
@ -31,4 +31,5 @@ public:
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void on_copyURL_clicked();
|
void on_copyURL_clicked();
|
||||||
|
void on_analyzeURL_clicked();
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue