From add8261cebd63dcd13baa691dd0981c184fc8dc7 Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Rouby Date: Wed, 9 Aug 2023 17:47:20 +0200 Subject: [PATCH] Results: Fix minor bug and add tab widget to result window. --- src/View/Results/Window.py | 4 +++ src/View/ui/Results.ui | 72 +++++++++++++++++++++++++------------- 2 files changed, 52 insertions(+), 24 deletions(-) diff --git a/src/View/Results/Window.py b/src/View/Results/Window.py index 4ae5293e..99022b2f 100644 --- a/src/View/Results/Window.py +++ b/src/View/Results/Window.py @@ -211,12 +211,16 @@ class ResultsWindow(ASubMainWindow, ListedSubWindow): def _set_current_reach(self): table = self.find(QTableView, f"tableView_reach") indexes = table.selectedIndexes() + if len(indexes) == 0: + return self.update(reach_id = indexes[0].row()) def _set_current_profile(self): table = self.find(QTableView, f"tableView_profile") indexes = table.selectedIndexes() + if len(indexes) == 0: + return ind = indexes[0].row() self.update(profile_id = ind) diff --git a/src/View/ui/Results.ui b/src/View/ui/Results.ui index 64cde207..d975641b 100644 --- a/src/View/ui/Results.ui +++ b/src/View/ui/Results.ui @@ -17,7 +17,7 @@ - + @@ -30,13 +30,51 @@ - - - - - - Qt::Horizontal + + + + + + 0 + + + Geometry + + + + + + Qt::Vertical + + + + Qt::Horizontal + + + + + + + + + + + + + + + + + + Hydrograph + + + + + + + @@ -52,25 +90,11 @@ - - + + - Qt::Vertical + Qt::Horizontal - - - Qt::Horizontal - - - - - - - - - - -