RTC Toolkit 6.0.0
Loading...
Searching...
No Matches
gui.repository_panel.RepositoryPanel._MapperDelegate Class Reference

This helper delegate is used to work around a crash caused by a bug when Ndarray objects interact with a Qt Property via a QDataWidgetMapper. More...

Inheritance diagram for gui.repository_panel.RepositoryPanel._MapperDelegate:
gui.repository_panel.RepositoryPanel._CustomDelegate

Public Member Functions

 __init__ (self, *args, **kwargs)
 
 setEditorData (self, editor, index)
 Fills the editor widget with current data from the given model index.
 
 setModelData (self, editor, model, index)
 Updates the model at the given index with modified data from the editor widget.
 
- Public Member Functions inherited from gui.repository_panel.RepositoryPanel._CustomDelegate
 __init__ (self, *args, **kwargs)
 

Detailed Description

This helper delegate is used to work around a crash caused by a bug when Ndarray objects interact with a Qt Property via a QDataWidgetMapper.

This class also suppresses updating the QPlainTextEdit widget's text when it has focus. We do this to prevent infinite recursion when the QDataWidgetMapper.submit() method is called. While the QPlainTextEdit widget has focus it is presumed to be modified by the user and so updates from the model should be ignored.

Constructor & Destructor Documentation

◆ __init__()

gui.repository_panel.RepositoryPanel._MapperDelegate.__init__ ( self,
* args,
** kwargs )

Member Function Documentation

◆ setEditorData()

gui.repository_panel.RepositoryPanel._MapperDelegate.setEditorData ( self,
editor,
index )

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

Reimplemented from gui.repository_panel.RepositoryPanel._CustomDelegate.

◆ setModelData()

gui.repository_panel.RepositoryPanel._MapperDelegate.setModelData ( self,
editor,
model,
index )

Updates the model at the given index with modified data from the editor widget.

Reimplemented from gui.repository_panel.RepositoryPanel._CustomDelegate.


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