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

Class AbstractBaseRowDelegate

               object --+                    
                        |                    
        sip.simplewrapper --+                
                            |                
                  sip.wrapper --+            
                                |            
             PyQt5.QtCore.QObject --+        
                                    |        
PyQt5.QtWidgets.QAbstractItemDelegate --+    
                                        |    
      PyQt5.QtWidgets.QStyledItemDelegate --+
                                            |
                                           AbstractBaseRowDelegate
Known Subclasses:

Base delegate class.

Nested Classes [hide private]

Inherited from PyQt5.QtWidgets.QAbstractItemDelegate: EndEditHint

Instance Methods [hide private]
 
__init__(self, *args, **kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature
 
sizeHint(self, option, index)
 
_sizeHintHeight(self, font_metrics)
 
heightHint(self, option, index)
Return the sizeHint's height for the specified cell.
str None
_getSampleData(self, index)
Return sample data associated with this class.
basestr @return The text representation of the value or an empty string if None
_getText(self, index, option)
Return the default text for the cell
 
_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, pen_color_role)
Paints specified cell using the given pen color role.
 
paint(self, painter, option, index)

Inherited from PyQt5.QtWidgets.QStyledItemDelegate: createEditor, displayText, editorEvent, eventFilter, initStyleOption, itemEditorFactory, setEditorData, setItemEditorFactory, setModelData, updateEditorGeometry

Inherited from PyQt5.QtWidgets.QAbstractItemDelegate: closeEditor, commitData, destroyEditor, helpEvent, sizeHintChanged

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

Inherited from sip.simplewrapper: __new__

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

Class Variables [hide private]
enum.Enum or None ANNOTATION_TYPE = None
The annotation type associated with this class
  SAMPLE_DATA = None
hash(x)

Inherited from PyQt5.QtWidgets.QAbstractItemDelegate: EditNextItem, EditPreviousItem, NoHint, RevertModelCache, SubmitModelCache

Inherited from PyQt5.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

Parameters:
  • SAMPLE_DATA (str or None) - Sample data for this class. Used to determine appropriate column widths.
Overrides: object.__init__
(inherited documentation)

sizeHint(self, option, index)

 
Overrides: PyQt5.QtWidgets.QAbstractItemDelegate.sizeHint

heightHint(self, option, index)

 

Return the sizeHint's height for the specified cell.

See QAbstractItemDelegate.sizeHint documentation for argument documentation.

_getSampleData(self, index)

 

Return sample data associated with this class.

Parameters:
  • index (QtCore.QModelIndex) - Index to get the sample data for
Returns: str None
Sample data for this class

_getText(self, index, option)

 

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

_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

_paint(self, painter, option, index, pen_color_role)

 

Paints specified cell using the given pen color role.

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.
  • pen_color_role (QtGui.QPalette.ColorRole) - The color role to use for the text color.

paint(self, painter, option, index)

 
Overrides: PyQt5.QtWidgets.QAbstractItemDelegate.paint

Property Details [hide private]

element_height

Get Method:
unreachable.element_height(self)