Package schrodinger :: Package application :: Package msv :: Package gui :: Module delegates :: Class BaseRowDelegate
[hide private]
[frames] | no frames]

Class BaseRowDelegate

           object --+                    
                    |                    
    sip.simplewrapper --+                
                        |                
              sip.wrapper --+            
                            |            
         PyQt4.QtCore.QObject --+        
                                |        
PyQt4.QtGui.QAbstractItemDelegate --+    
                                    |    
      PyQt4.QtGui.QStyledItemDelegate --+
                                        |
                                       BaseRowDelegate
Known Subclasses:

Nested Classes [hide private]

Inherited from PyQt4.QtGui.QAbstractItemDelegate: EndEditHint

Instance Methods [hide private]
 
__init__(self, *args, **kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature
 
helpEvent(self, event, view, option, index)
See Qt documentation for documentation
 
initStyleOption(self, option, index)
Initialize the option for the specified index, and cache the results
 
sizeHint(self, option, index)
 
clearCache(self)
Clear all cached model data
basestr @return The text representation of the value or an empty string if None
_getText(self, index)
Return the default text for the cell
basestr @return The text representation of the value or an empty string if None
_getSelectionText(self, index)
Return the selection text
 
_paintSelection(self, painter, option, index)
Handles painting of cells in the selected state
 
_paintDefault(self, painter, option, index)
Paints the default (non-selected) cell using the specified painter, option, and index
 
paint(self, painter, option, index)

Inherited from PyQt4.QtGui.QStyledItemDelegate: createEditor, displayText, editorEvent, eventFilter, itemEditorFactory, setEditorData, setItemEditorFactory, setModelData, updateEditorGeometry

Inherited from PyQt4.QtGui.QAbstractItemDelegate: closeEditor, commitData, elidedText, 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, senderSignalIndex, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread, timerEvent, tr, trUtf8

Inherited from sip.simplewrapper: __new__

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

Class Variables [hide private]
  ANNOTATION_TYPE = None
hash(x)

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

Inherited from PyQt4.QtCore.QObject: staticMetaObject

Properties [hide private]
  element_height

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kwargs)
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

helpEvent(self, event, view, option, index)

 

See Qt documentation for documentation

Decorators:
  • @qt_utils.delegate_help_event_decorator
Overrides: PyQt4.QtGui.QAbstractItemDelegate.helpEvent

initStyleOption(self, option, index)

 

Initialize the option for the specified index, and cache the results

Parameters:
  • option (QtWidgets.QStyleOptionViewItem) - The option to modify with cached information
  • index (QtCore.QModelIndex) - The index in the model
Overrides: PyQt4.QtGui.QStyledItemDelegate.initStyleOption

sizeHint(self, option, index)

 
Overrides: PyQt4.QtGui.QAbstractItemDelegate.sizeHint

_getText(self, index)

 

Return the default text for the cell

Parameters:
  • index (QtCore.QModelIndex) - The index in the model
Returns: basestr @return The text representation of the value or an empty string if None

_getSelectionText(self, index)

 

Return the selection text

Subclasses can override this for custom selection behavior

Parameters:
  • index (QtCore.QModelIndex) - The index in the model
Returns: basestr @return The text representation of the value or an empty string if None

_paintSelection(self, painter, option, index)

 

Handles painting of cells in the selected state

Parameters:
  • painter (QtGui.QPainter) - The painter for the cell
  • option (QtWidgets.QStyleOptionViewItem) - The option for the cell
  • index (QtCore.QModelIndex) - The index in the table

_paintDefault(self, painter, option, index)

 

Paints the default (non-selected) cell using the specified painter, option, and index

Note: This method is overridden in subclasses and should not be merged into paint().

Parameters:
  • painter (QtGui.QPainter) - The painter for the cell
  • option (QtWidgets.QStyleOptionViewItem) - The option for the cell
  • index (QtCore.QModelIndex) - The index in the table
  • selection_brush (QtGui.QBrush) - The brush to use in painting

paint(self, painter, option, index)

 
Overrides: PyQt4.QtGui.QAbstractItemDelegate.paint

Property Details [hide private]

element_height

Get Method:
unreachable.element_height(self)