From d5a93326849ee89035bf9ed26de3c834411c6e0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 1 Sep 2018 07:36:58 +0200 Subject: [PATCH] triage: show url and filename in edit boxes --- tools/triage/mainwindow.cpp | 3 +++ tools/triage/mainwindow.ui | 44 ++++++++++++++++++++++++++++++------- 2 files changed, 39 insertions(+), 8 deletions(-) diff --git a/tools/triage/mainwindow.cpp b/tools/triage/mainwindow.cpp index 3a1b6b8d6..12db1c800 100644 --- a/tools/triage/mainwindow.cpp +++ b/tools/triage/mainwindow.cpp @@ -135,4 +135,7 @@ void MainWindow::showResult(QListWidgetItem *item) QTextStream textStream(&f); const QString fileData = textStream.readAll(); ui->code->setError(fileData, lineNumber, QStringList()); + + ui->edit1->setText(url); + ui->edit2->setText(WORK_FOLDER + '/' + fileName); } diff --git a/tools/triage/mainwindow.ui b/tools/triage/mainwindow.ui index 90b4e5014..b1e740534 100644 --- a/tools/triage/mainwindow.ui +++ b/tools/triage/mainwindow.ui @@ -6,8 +6,8 @@ 0 0 - 683 - 465 + 1057 + 538 @@ -47,11 +47,39 @@ - - - false - - + + + + + false + + + + + + + + + url + + + + + + + + + + file + + + + + + + + + @@ -60,7 +88,7 @@ 0 0 - 683 + 1057 25