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

Class CommitMultipleDelegate

PyQt4.QtGui.QStyledItemDelegate --+
                                  |
                                 CommitMultipleDelegate

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.)

Instance Methods [hide private]
 
eventFilter(self, editor, event)
Handle Ctrl+Enter
Instance Variables [hide private]
PyQt4.QtCore.pyqtSignal commitDataToSelected = QtCore.pyqtSignal(QtGui.QWidget, QtCore...
Commit the data from the current editor to all selected cells.
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.
Type:
PyQt4.QtCore.pyqtSignal
Value:
QtCore.pyqtSignal(QtGui.QWidget, QtCore.QModelIndex, QtGui.QAbstractIt\
emDelegate)