mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
BC: Split tabWidget and graph display.
This commit is contained in:
1 parent
d13130c9a7
commit
cbc249299c
2 files changed
+42
-38
No files matched your search
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user