triage: show url and filename in edit boxes

This commit is contained in:
Daniel Marjamäki 2018-09-01 07:36:58 +02:00
parent 59731d70e8
commit d5a9332684
2 changed files with 39 additions and 8 deletions

View File

@ -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);
}

View File

@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>683</width>
<height>465</height>
<width>1057</width>
<height>538</height>
</rect>
</property>
<property name="windowTitle">
@ -47,11 +47,39 @@
</layout>
</item>
<item>
<widget class="CodeEditor" name="code">
<property name="readOnly">
<bool>false</bool>
</property>
</widget>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="CodeEditor" name="code">
<property name="readOnly">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>url</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="edit1"/>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>file</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="edit2"/>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</widget>
@ -60,7 +88,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>683</width>
<width>1057</width>
<height>25</height>
</rect>
</property>