Commit ca48ed08 authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

configure: Minor change.

Showing with 5 additions and 2 deletions
+5 -2
...@@ -42,7 +42,7 @@ class SolverTableModel(QAbstractTableModel): ...@@ -42,7 +42,7 @@ class SolverTableModel(QAbstractTableModel):
if (role == Qt.ItemDataRole.DisplayRole and if (role == Qt.ItemDataRole.DisplayRole and
orientation == Qt.Orientation.Vertical): orientation == Qt.Orientation.Vertical):
return section return section + 1 # Start at 1
return QVariant() return QVariant()
...@@ -76,9 +76,12 @@ class ConfigureWindow(ASubWindow, ListedSubWindow): ...@@ -76,9 +76,12 @@ class ConfigureWindow(ASubWindow, ListedSubWindow):
headers = ["name", "type", "description"], headers = ["name", "type", "description"],
rows = conf.solvers.copy() rows = conf.solvers.copy()
) )
self.find(QTableView, "tableView_solver").setModel(self.solver_table_model) self.find(QTableView, "tableView_solver")\
.setModel(self.solver_table_model)
self.find(QTableView, "tableView_solver")\ self.find(QTableView, "tableView_solver")\
.setSelectionBehavior(QAbstractItemView.SelectRows) .setSelectionBehavior(QAbstractItemView.SelectRows)
self.find(QTableView, "tableView_solver")\
.setAlternatingRowColors(True)
# Meshing_Tool # Meshing_Tool
self.set_line_edit_text("lineEdit_meshing_tool", self.conf.meshing_tool) self.set_line_edit_text("lineEdit_meshing_tool", self.conf.meshing_tool)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment