- in Geometry Editor - the Length and Vertex Points GUI elements are now read only since it does not make sense to edit them

This commit is contained in:
Marius Stanciu
2020-11-29 15:48:50 +02:00
committed by Marius Stanciu
parent bdabd6cfdf
commit 32839637d3
2 changed files with 4 additions and 0 deletions

View File

@@ -3474,6 +3474,8 @@ class AppGeoEditor(QtCore.QObject):
_("The length of the geometry element.")
)
self.geo_len_entry = FCEntry(decimals=self.decimals)
self.geo_len_entry.setReadOnly(True)
grid0.addWidget(len_lbl, 20, 0)
grid0.addWidget(self.geo_len_entry, 20, 1, 1, 2)
@@ -3496,6 +3498,7 @@ class AppGeoEditor(QtCore.QObject):
_("The number of vertex points in the selected geometry element.")
)
self.geo_vertex_entry = FCEntry(decimals=self.decimals)
self.geo_vertex_entry.setReadOnly(True)
grid0.addWidget(vertex_lbl, 26, 0)
grid0.addWidget(self.geo_vertex_entry, 26, 1, 1, 2)