mirror of https://gitlab.com/pamhyr/pamhyr2
add point number in profiles table for geometry
parent
d74c78eff5
commit
f451731877
|
|
@ -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"),
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue