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

Class DoubleElementHeightDelegate

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

Each element is double the height of a row for regular residues.

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

Inherited from BaseRowDelegate: clearCache, helpEvent, initStyleOption, paint

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]

Inherited from BaseRowDelegate: ANNOTATION_TYPE

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

Inherited from PyQt4.QtCore.QObject: staticMetaObject

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

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)

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 (QtGui.QStyleOptionViewItemV4) - 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: PyQt4.QtGui.QAbstractItemDelegate.sizeHint

Property Details [hide private]

element_height

Return the height of the element, twice the default.

rtype: float return: The height of the element

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