customeditor¶
- class camelot.view.controls.editors.customeditor.AbstractCustomEditor[source]¶
Helper class to be used to build custom editors. This class provides functionality to store and retrieve ValueLoading as an editor’s value.
Guidelines for implementing CustomEditors :
- When an editor consists of multiple widgets, one widget must be the focusProxy of the editor, to have that widget immediately activated when the user single clicks in the table view.
- When an editor has widgets that should not get selected when the user tabs through the editor, setFocusPolicy(Qt.ClickFocus) should be called on those widgets.
- Editor should set their size policy, for most editor this means their vertical size policy should be QtGui.QSizePolicy.Fixed
- class camelot.view.controls.editors.customeditor.CustomEditor(parent, column_width=None)[source]¶
Base class for implementing custom editor widgets. This class provides dual state functionality. Each editor should have the posibility to have ValueLoading as its value, specifying that no value has been set yet.