configure: Minor change (select row for solver).

mesh
Pierre-Antoine Rouby 2023-03-22 14:00:35 +01:00
parent dbf27e6336
commit 4a473faf70
1 changed files with 3 additions and 1 deletions

View File

@ -11,7 +11,7 @@ from PyQt5.QtCore import (
from PyQt5.QtWidgets import ( from PyQt5.QtWidgets import (
QDialogButtonBox, QPushButton, QLineEdit, QDialogButtonBox, QPushButton, QLineEdit,
QFileDialog, QTableView, QFileDialog, QTableView, QAbstractItemView
) )
@ -73,6 +73,8 @@ class ConfigureWindow(ASubWindow, ListedSubWindow):
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")\
.setSelectionBehavior(QAbstractItemView.SelectRows)
# Mailleur # Mailleur
self.set_line_edit_text("lineEdit_mailleur", self.conf.mailleur) self.set_line_edit_text("lineEdit_mailleur", self.conf.mailleur)