CAM: Show abbreviations next to properly labels in the toolbit editor (#21887)

This commit is contained in:
Samuel
2025-06-16 17:40:32 +02:00
committed by GitHub
parent 267c957a7d
commit 4a52ab9f05
3 changed files with 17 additions and 7 deletions

View File

@@ -49,7 +49,9 @@ class ToolBitPropertiesWidget(QtGui.QWidget):
self._id_label = QtGui.QLabel() # Read-only ID
self._id_label.setTextInteractionFlags(QtCore.Qt.TextSelectableByMouse)
self._property_editor = DocumentObjectEditorWidget()
theicon = toolbit.get_icon() if toolbit else None
abbr = theicon.abbreviations if theicon else {}
self._property_editor = DocumentObjectEditorWidget(property_suffixes=abbr)
self._property_editor.setSizePolicy(
QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding
)