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); QTextStream textStream(&f);
const QString fileData = textStream.readAll(); const QString fileData = textStream.readAll();
ui->code->setError(fileData, lineNumber, QStringList()); ui->code->setError(fileData, lineNumber, QStringList());
ui->edit1->setText(url);
ui->edit2->setText(WORK_FOLDER + '/' + fileName);
} }

View File

@ -6,8 +6,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>683</width> <width>1057</width>
<height>465</height> <height>538</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
@ -47,11 +47,39 @@
</layout> </layout>
</item> </item>
<item> <item>
<widget class="CodeEditor" name="code"> <layout class="QVBoxLayout" name="verticalLayout_2">
<property name="readOnly"> <item>
<bool>false</bool> <widget class="CodeEditor" name="code">
</property> <property name="readOnly">
</widget> <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> </item>
</layout> </layout>
</widget> </widget>
@ -60,7 +88,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>683</width> <width>1057</width>
<height>25</height> <height>25</height>
</rect> </rect>
</property> </property>