runmanager.__main__.AlternatingColorModel
- class runmanager.__main__.AlternatingColorModel(view)[source]
Bases:
QStandardItemModel
Methods
__init__
(view)appendColumn
(self, items)appendRow
()beginInsertColumns
(self, parent, first, last)beginInsertRows
(self, parent, first, last)beginMoveColumns
(self, sourceParent, ...)beginMoveRows
(self, sourceParent, ...)beginRemoveColumns
(self, parent, first, last)beginRemoveRows
(self, parent, first, last)beginResetModel
(self)blockSignals
(self, b)buddy
(self, index)canDropMimeData
(self, data, action, row, ...)canFetchMore
(self, parent)changePersistentIndex
(self, from_, to)changePersistentIndexList
(self, from_, to)checkIndex
(self, index[, options])childEvent
(self, a0)children
(self)clear
(self)clearItemData
(self, index)columnCount
(self[, parent])connectNotify
(self, signal)createIndex
(self, row, column[, object])customEvent
(self, a0)data
(index, role)When background color data is being requested, returns modified colours for every second row, according to the palette of the view.
decodeData
(self, row, column, parent, stream)deleteLater
(self)disconnect
(-> bool)disconnectNotify
(self, signal)dropMimeData
(self, data, action, row, ...)dumpObjectInfo
(self)dumpObjectTree
(self)dynamicPropertyNames
(self)encodeData
(self, indexes, stream)endInsertColumns
(self)endInsertRows
(self)endMoveColumns
(self)endMoveRows
(self)endRemoveColumns
(self)endRemoveRows
(self)endResetModel
(self)event
(self, a0)eventFilter
(self, a0, a1)fetchMore
(self, parent)findChild
(-> QObjectT)findChildren
(...)findItems
(self, text[, flags, column])flags
(self, index)get_bgbrush
(normal_brush, alternate, selected)Get cell colour as a function of its ordinary colour, whether it is on an odd row, and whether it is selected.
hasChildren
(self[, parent])hasIndex
(self, row, column[, parent])headerData
(self, section, orientation[, role])horizontalHeaderItem
(self, column)index
(self, row, column[, parent])indexFromItem
(self, item)inherits
(self, classname)insertColumn
())insertColumns
(self, column, count[, parent])insertRow
(-> None ))insertRows
(self, row, count[, parent])installEventFilter
(self, a0)invisibleRootItem
(self)isSignalConnected
(self, signal)isWidgetType
(self)isWindowType
(self)item
(self, row[, column])itemData
(self, index)itemFromIndex
(self, index)itemPrototype
(self)killTimer
(self, id)match
(self, start, role, value[, hits, flags])metaObject
(self)mimeData
(self, indexes)mimeTypes
(self)moveColumn
(self, sourceParent, sourceColumn, ...)moveColumns
(self, sourceParent, ...)moveRow
(self, sourceParent, sourceRow, ...)moveRows
(self, sourceParent, sourceRow, ...)moveToThread
(self, thread)objectName
(self)parent
(-> QModelIndex)persistentIndexList
(self)property
(self, name)pyqtConfigure
(...)Each keyword argument is either the name of a Qt property or a Qt signal.
receivers
(self, signal)removeColumn
(self, column[, parent])removeColumns
(self, column, count[, parent])removeEventFilter
(self, a0)removeRow
(self, row[, parent])removeRows
(self, row, count[, parent])resetInternalData
(self)revert
(self)roleNames
(self)rowCount
(self[, parent])sender
(self)senderSignalIndex
(self)setColumnCount
(self, columns)setData
(self, index, value[, role])setHeaderData
(self, section, orientation, value)setHorizontalHeaderItem
(self, column, item)setHorizontalHeaderLabels
(self, labels)setItem
()setItemData
(self, index, roles)setItemPrototype
(self, item)setItemRoleNames
(self, roleNames)setObjectName
(self, name)setParent
(self, a0)setProperty
(self, name, value)setRowCount
(self, rows)setSortRole
(self, role)setVerticalHeaderItem
(self, row, item)setVerticalHeaderLabels
(self, labels)sibling
(self, row, column, idx)signalsBlocked
(self)sort
(self, column[, order])sortRole
(self)span
(self, index)startTimer
(self, interval[, timerType])submit
(self)supportedDragActions
(self)supportedDropActions
(self)takeColumn
(self, column)takeHorizontalHeaderItem
(self, column)takeItem
(self, row[, column])takeRow
(self, row)takeVerticalHeaderItem
(self, row)thread
(self)timerEvent
(self, a0)tr
(self, sourceText[, disambiguation, n])verticalHeaderItem
(self, row)Attributes
HorizontalSortHint
NoLayoutChangeHint
VerticalSortHint
columnsAboutToBeInserted
int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
columnsAboutToBeMoved
int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
columnsAboutToBeRemoved
int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
columnsInserted
int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
columnsMoved
int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
columnsRemoved
int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
dataChanged
int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
destroyed
int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
headerDataChanged
int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
itemChanged
int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
layoutAboutToBeChanged
int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
layoutChanged
int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
modelAboutToBeReset
int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
modelReset
int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
objectNameChanged
int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
rowsAboutToBeInserted
int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
rowsAboutToBeMoved
int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
rowsAboutToBeRemoved
int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
rowsInserted
int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
rowsMoved
int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
rowsRemoved
int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
staticMetaObject
- data(index, role)[source]
When background color data is being requested, returns modified colours for every second row, according to the palette of the view. This has the effect of making the alternate colours visible even when custom colors have been set - the same shading will be applied to the custom colours. Only really looks sensible when the normal and alternate colors are similar. Also applies selection highlight colour (using ItemView.COLOR_HIGHLIGHT), similarly with alternate-row shading, for the case of a QTableView.