|
RTC Toolkit 6.1.0-pre1
|
Item delegate providing custom editors for metadata table entries. More...
Public Member Functions | |
| __init__ (self, *args, **kwargs) | |
| createEditor (self, parent, option, index) | |
| Creates and returns an editor widget for the given metadata item. | |
| setEditorData (self, editor, index) | |
| Fills the editor widget with current data from the given model index. | |
Item delegate providing custom editors for metadata table entries.
| gui.metadata_edit.MetadataEdit._MetadataDelegate.__init__ | ( | self, | |
| * | args, | ||
| ** | kwargs ) |
| gui.metadata_edit.MetadataEdit._MetadataDelegate.createEditor | ( | self, | |
| parent, | |||
| option, | |||
| index ) |
Creates and returns an editor widget for the given metadata item.
The editor type is selected based on the column being edited and the current value type. Metadata keys are edited using standard QLineEdit. Custom editors are used for supported RTC scalar types, while unsupported types fall back to the base delegate. A special bool_combo_box is used for the RtcBool data type because the editor created by the ancestor can only handle classic boolean and not RtcBool.
| gui.metadata_edit.MetadataEdit._MetadataDelegate.setEditorData | ( | self, | |
| editor, | |||
| index ) |
Fills the editor widget with current data from the given model index.