Skip to content
Snippets Groups Projects
Commit 366cab0e authored by Renne Thomas's avatar Renne Thomas
Browse files

Add number of file choosen in load result dialog

parent 04e6f00a
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,7 @@
<x>0</x>
<y>0</y>
<width>553</width>
<height>503</height>
<height>504</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
......@@ -61,11 +61,15 @@
<string>Choose result files</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0">
<widget class="QListView" name="file_list_view"/>
</item>
<item row="4" column="0">
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QLabel" name="nb_files_label">
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
......@@ -95,6 +99,9 @@
</item>
</layout>
</item>
<item row="0" column="0">
<widget class="QListView" name="file_list_view"/>
</item>
</layout>
</widget>
</item>
......@@ -180,8 +187,8 @@
<slot>chooseFiles()</slot>
<hints>
<hint type="sourcelabel">
<x>550</x>
<y>447</y>
<x>540</x>
<y>413</y>
</hint>
<hint type="destinationlabel">
<x>550</x>
......@@ -228,8 +235,8 @@
<slot>clearFileList()</slot>
<hints>
<hint type="sourcelabel">
<x>434</x>
<y>441</y>
<x>454</x>
<y>413</y>
</hint>
<hint type="destinationlabel">
<x>606</x>
......
......@@ -121,6 +121,8 @@ LoadResultsDialog::chooseFiles()
file_list.append(filenames);
_p_file_list->setStringList(file_list);
ui->file_list_view->setModel(_p_file_list);
ui->nb_files_label->setText("Number of files: " +
QString::number(filenames.size()));
}
catch(pappso::PappsoException &error)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment