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
str @return The text representation of the value or an empty string if None
_getText(self, value)
float or int or str
_getValue(self, index)
Returns: The data from the underlying model at the specified index
 
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
 
_paintSelection(self, painter, option, index, selection_brush)
Paints the selected cells
 
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:
  • @QtCore.pyqtSlot(QtGui.QHelpEvent, QtGui.QAbstractItemView, QtGui.QStyleOptionViewItem, QtCore.QModelIndex, result= bool)
Overrides: PyQt4.QtGui.QAbstractItemDelegate.helpEvent

_getText(self, value)

 
Parameters:
  • value (float or int or str) - The value from the model
Returns: str @return The text representation of the value or an empty string if None

_getValue(self, index)

 
Parameters:
  • value (float or int or str) - The value from the model
Returns: float or int or str
The data from the underlying model at the specified index

initStyleOption(self, option, index)

 

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

Parameters:
  • option (QtGui.QStyleOptionViewItemV4) - 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

_paintSelection(self, painter, option, index, selection_brush)

 

Paints the selected cells

Parameters:
  • painter (QtGui.QPainter) - The painter for the cell
  • option (QtGui.QStyleOptionViewItemV4) - The option for the cell
  • index (QtGui.QIndex) - 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)