|
RTC Toolkit 6.0.0
|
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...
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) | |
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.
| gui.repository_panel.RepositoryPanel._MapperDelegate.__init__ | ( | self, | |
| * | args, | ||
| ** | kwargs ) |
| 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.
| 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.