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

Class AbstractSingleElementHeightDelegate

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

A delegate for rows that are SSA_ELEMENT_HEIGHT pixels high.

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
QSizeHint
sizeHint(self, option, index)
Return the size hint for the element at the specified index
 
heightHint(self, option, index)
Return the sizeHint's height for the specified cell.

Inherited from AbstractBaseRowDelegate: paint

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]

Inherited from AbstractBaseRowDelegate: ANNOTATION_TYPE, SAMPLE_DATA

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

Inherited from PyQt5.QtCore.QObject: staticMetaObject

Properties [hide private]
  element_height
Return the height of the element.

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 - Sample data for this class. Used to determine appropriate column widths.
Overrides: object.__init__
(inherited documentation)

sizeHint(self, option, index)

 

Return the size hint for the element at the specified index

Note that this is only called if the view resizes rows to fit elements

Parameters:
  • option (QtWidgets.QStyleOptionViewItem) - The option to modify with cached information
  • index (QtCore.QModelIndex) - The index in the model
Returns: QSizeHint
The size hint for the element with height appropriately adjusted
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.

Overrides: AbstractBaseRowDelegate.heightHint
(inherited documentation)

Property Details [hide private]

element_height

Return the height of the element.

rtype: float return: The height of the element

Get Method:
unreachable.element_height(self) - Return the height of the element.