Package schrodinger :: Package application :: Package jaguar :: Package gui :: Module input_tab_widgets :: Class CommitMultipleDelegate
[hide private]
[frames] | no frames]

Class CommitMultipleDelegate

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

A delegate where Ctrl+Enter will cause the value to be committed to all selected rows. Note that the editor must have an index attribute containing the index being edited. (This index is needed for view.commitDataToSelected(). Qt itself uses QAbstractItemViewPrivate.indexForEditor() to retrieve the index. We don't have access to the QAbstractItemViewPrivate class, though, so we have store the index in the editor instead.)

Nested Classes [hide private]

Inherited from PyQt5.QtWidgets.QAbstractItemDelegate: EndEditHint

Instance Methods [hide private]
 
eventFilter(self, editor, event)
Handle Ctrl+Enter

Inherited from PyQt5.QtWidgets.QStyledItemDelegate: createEditor, displayText, editorEvent, initStyleOption, itemEditorFactory, paint, setEditorData, setItemEditorFactory, setModelData, sizeHint, 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: __init__, __new__

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

Class Variables [hide private]

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

Inherited from PyQt5.QtCore.QObject: staticMetaObject

Instance Variables [hide private]
 
commitDataToSelected(...)
Commit the data from the current editor to all selected cells.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

eventFilter(self, editor, event)

 

Handle Ctrl+Enter

Overrides: PyQt5.QtCore.QObject.eventFilter

Instance Variable Details [hide private]

commitDataToSelected(...)

 
Commit the data from the current editor to all selected cells. This signal is emitted with the editor, the current index, and the delegate.