RTC Toolkit 6.1.0-pre1
Loading...
Searching...
No Matches
gui.metadata_edit.MetadataEdit._MetadataDelegate Class Reference

Item delegate providing custom editors for metadata table entries. More...

Inheritance diagram for gui.metadata_edit.MetadataEdit._MetadataDelegate:

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.
 

Detailed Description

Item delegate providing custom editors for metadata table entries.

Constructor & Destructor Documentation

◆ __init__()

gui.metadata_edit.MetadataEdit._MetadataDelegate.__init__ ( self,
* args,
** kwargs )

Member Function Documentation

◆ createEditor()

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.

◆ setEditorData()

gui.metadata_edit.MetadataEdit._MetadataDelegate.setEditorData ( self,
editor,
index )

Fills the editor widget with current data from the given model index.


The documentation for this class was generated from the following file: