mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Merge branch 'master' of gitlab-ssh.irstea.fr:theophile.terraz/pamhyr
This commit is contained in:
commit
f2b97b68bd
8 files changed
+105
-13
No files matched your search
@@ -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
|
||||
|
||||
@@ -45,4 +45,5 @@ class GeometryTranslate(PamhyrTranslate):
|
||||
self._sub_dict["table_headers"] = {
|
||||
"name": _translate("Geometry", "Name"),
|
||||
"kp": _translate("Geometry", "KP"),
|
||||
"poins": _translate("Geometry", "Points"),
|
||||
}
|
||||
Reference in new issue
Block a user