From cbc249299cc20b802c13208ebfac352b321d4508 Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Rouby Date: Thu, 4 May 2023 17:31:25 +0200 Subject: [PATCH] BC: Split tabWidget and graph display. --- .../BoundaryConditionWindow.py | 6 +- src/View/ui/BoundaryConditions.ui | 74 ++++++++++--------- 2 files changed, 42 insertions(+), 38 deletions(-) diff --git a/src/View/BoundaryCondition/BoundaryConditionWindow.py b/src/View/BoundaryCondition/BoundaryConditionWindow.py index d8ad1362..38b9e6b1 100644 --- a/src/View/BoundaryCondition/BoundaryConditionWindow.py +++ b/src/View/BoundaryCondition/BoundaryConditionWindow.py @@ -69,7 +69,7 @@ class BoundaryConditionWindow(ASubMainWindow, ListedSubWindow): self.paste_sc = QShortcut(QKeySequence.Paste, self) def setup_table(self): - table = self.find(QTableView, "tableView") + table = self.find(QTableView, "tableView_liquid") self._table = TableModel( data = self._study.river, undo = self._undo_stack @@ -119,13 +119,13 @@ class BoundaryConditionWindow(ASubMainWindow, ListedSubWindow): def index_selected_row(self): - table = self.find(QTableView, "tableView") + table = self.find(QTableView, "tableView_liquid") return table.selectionModel()\ .selectedRows()[0]\ .row() def index_selected_rows(self): - table = self.find(QTableView, "tableView") + table = self.find(QTableView, "tableView_liquid") return list( # Delete duplicate set( diff --git a/src/View/ui/BoundaryConditions.ui b/src/View/ui/BoundaryConditions.ui index 7f4ea44c..602a1887 100644 --- a/src/View/ui/BoundaryConditions.ui +++ b/src/View/ui/BoundaryConditions.ui @@ -25,43 +25,47 @@ - - - 0 + + + Qt::Horizontal - - - Liquid - - - - - - - 0 - 0 - - - - Qt::Horizontal - - - - - - - - + + + 0 + + + + Liquid + + + + + + + + + + Solid + + + + + + + + + + Suspenssion + + + + + + + - - - Solid - - - - - Suspension - + +