Package pyffi :: Package qskope :: Module detail_delegate :: Class DetailDelegate
[hide private]
[frames] | no frames]

Class DetailDelegate

source code

           object --+                    
                    |                    
    sip.simplewrapper --+                
                        |                
              sip.wrapper --+            
                            |            
         PyQt4.QtCore.QObject --+        
                                |        
PyQt4.QtGui.QAbstractItemDelegate --+    
                                    |    
            PyQt4.QtGui.QItemDelegate --+
                                        |
                                       DetailDelegate

Defines an editor for data in the detail view.
Nested Classes [hide private]

Inherited from PyQt4.QtGui.QAbstractItemDelegate: EndEditHint

Instance Methods [hide private]
 
_checkValidEditor(self, data, editor)
This function checks that the delegate class has the correct editor.
source code
 
createEditor(self, parent, option, index)
Returns the widget used to change data.
source code
 
setEditorData(self, editor, index)
Provides the widget with data to manipulate.
source code
 
updateEditorGeometry(self, editor, option, index)
Ensures that the editor is displayed correctly with respect to the item view.
source code
 
setModelData(self, editor, model, index)
Returns updated data to the model.
source code

Inherited from PyQt4.QtGui.QItemDelegate: drawBackground, drawCheck, drawDecoration, drawDisplay, drawFocus, editorEvent, eventFilter, hasClipping, itemEditorFactory, paint, setClipping, setItemEditorFactory, sizeHint

Inherited from PyQt4.QtGui.QAbstractItemDelegate: closeEditor, commitData, elidedText, helpEvent, sizeHintChanged

Inherited from PyQt4.QtCore.QObject: __getattr__, blockSignals, childEvent, children, connect, connectNotify, customEvent, deleteLater, destroyed, disconnect, disconnectNotify, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, emit, event, findChild, findChildren, inherits, installEventFilter, isWidgetType, killTimer, metaObject, moveToThread, objectName, parent, property, pyqtConfigure, receivers, removeEventFilter, sender, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread, timerEvent, tr, trUtf8

Inherited from sip.simplewrapper: __init__, __new__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from PyQt4.QtGui.QAbstractItemDelegate: EditNextItem, EditPreviousItem, NoHint, RevertModelCache, SubmitModelCache

Inherited from PyQt4.QtCore.QObject: staticMetaObject

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

_checkValidEditor(self, data, editor)

source code 

This function checks that the delegate class has the correct editor. If data and editor do not correspond to one another, then a ValueError is raised.

All functions checking for delegate base classes should respect the order in this function, because a class may derive from more than one delegate class. So this function determines which editor is preferred if this happens. The order is:

  • ComboBox
  • FloatSpinBox
  • SpinBox
  • TextEdit
  • LineEdit

This function is only used for internal debugging purposes.

createEditor(self, parent, option, index)

source code 
Returns the widget used to change data.
Overrides: PyQt4.QtGui.QAbstractItemDelegate.createEditor

setEditorData(self, editor, index)

source code 
Provides the widget with data to manipulate.
Overrides: PyQt4.QtGui.QAbstractItemDelegate.setEditorData

updateEditorGeometry(self, editor, option, index)

source code 
Ensures that the editor is displayed correctly with respect to the item view.
Overrides: PyQt4.QtGui.QAbstractItemDelegate.updateEditorGeometry

setModelData(self, editor, model, index)

source code 
Returns updated data to the model.
Overrides: PyQt4.QtGui.QAbstractItemDelegate.setModelData