Merge branch 'master' of gitlab-ssh.irstea.fr:theophile.terraz/pamhyr

This commit is contained in:
Pierre-Antoine Rouby committed 2024-01-08 15:20:06 +01:00
commit f2b97b68bd
8 files changed
+105 -13

No files matched your search

+1 -1
View File
@@ -59,7 +59,7 @@ class GeometryReachTableModel(PamhyrTableModel):
return f"{kp:.4f}"
if role == Qt.DisplayRole and index.column() == 2:
return self._data.profile(index.row()).profile_type
return str(self._data.profile(index.row()).nb_points)
if role == Qt.TextAlignmentRole:
return Qt.AlignHCenter | Qt.AlignVCenter
+1
View File
@@ -45,4 +45,5 @@ class GeometryTranslate(PamhyrTranslate):
self._sub_dict["table_headers"] = {
"name": _translate("Geometry", "Name"),
"kp": _translate("Geometry", "KP"),
"poins": _translate("Geometry", "Points"),
}