Trees | Indices | Help |
|
---|
|
object --+ | GroupExpansionProxyMixin --+ | object --+ | | | ui.qt.table_speed_up.MultipleRolesRoleProxyPassthroughMixin --+ | | | ProxyMixin --+ | | | PostReorderingProxyMixin --+ | PostAnnotationProxyMixin --+ | object --+ | | | sip.simplewrapper --+ | | | sip.wrapper --+ | | | PyQt5.QtCore.QObject --+ | | | PyQt5.QtCore.QAbstractItemModel --+ | | | PyQt5.QtCore.QAbstractProxyModel --+ | | | NestedProxy --+ | RowWrapProxyModel
A proxy model that wraps rows to a specified column count. A blank spacer row will be inserted between each wrap. (Note that there's no spacer row before the first wrap or after the last wrap.)
|
|||
Inherited from Inherited from |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
int |
|
||
|
|||
|
|||
|
|||
tuple |
|
||
|
|||
tuple |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
|
|||
Inherited from Inherited from Inherited from |
|
|||
int |
_column_count The current number of columns in this proxy. |
||
RowWrapInsertingChildRows or NoneType |
_inserting_child_rows If we're in the process of inserting child rows into the model, this will be a RowWrapInsertingChildRows object describing the insertion. |
||
RowWrapInsertingRows or NoneType |
_inserting_rows If we're in the process of inserting top-level rows into the model, this will be a RowWrapInsertingRows object describing the insertion. |
||
RowWrapRemovingChildRows or NoneType |
_removing_child_rows If we're in the process of removing child rows from the model, this will be a RowWrapRemovingChildRows object describing the removal. |
||
RowWrapRemovingRows or NoneType |
_removing_rows If we're in the process of removing top-level rows from the model, this will be a RowWrapRemovingRows object describing the removal. |
||
list |
_source_child_row_count The number of child rows for each top-level row of the source model. |
||
int |
_source_column_count The current number of columns in this proxy's source model. |
||
int |
_top_level_row_count The current number of top-level row in this proxy (i.e. |
||
RowWrapInsertingRows or NoneType |
_updating_inserted_rows If we're in the process of updating top-level rows that were just inserted into the model, this will be a RowWrapInsertingRows object describing the updating. |
||
_width The current width of the table view, measured in number of columns. |
|||
int |
_wrap_count The number of times the rows are wrapped to fit within _width columns.
|
|
|||
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
Wrap the table to the specified number of columns.
|
|
Reset all row-related bookkeeping data using the current source model row counts. Note: If resetting both column- and row-related bookkeeping data, _resetColumnCount must be run before _resetRowCounts, as this function uses _wrap_count, which gets reset in {_resetColumnCount}. |
Calculate the number of times that a table would need to be wrapped to fit into the current width.
|
|
|
|
Map a top-level index from the source model.
|
|
Map a top-level index to the source model.
|
|
|
Respond to the rowsAboutToBeInserted signal from the source model. This method will completely insert (i.e. rowsAboutToBeInserted and rowsInserted) dummy rows into each wrap of this proxy. After the source model finishes the insertion, the dummy rows will be updated (dataChanged and inserting child rows) in _sourceRowsInserted. This allows us to avoid nesting the row insertions (i.e. emitting multiple rowsAboutToBeInserted signals followed by multiple rowsInserted signals), as nested signals are more complicated for higher proxies to handle and sometimes lead to errors from QSortFilterProxyModels. See |
Respond to the rowsInserted signal from the source model. Note that
new rows were already inserted in _sourceRowsAboutToBeInserted,
so this method updates the new rows by emitting See |
Respond to the rowsAboutToBeRemoved signal from the source model. Note that this method completely removes (i.e. rowsAboutToBeRemoved and rowsRemoved) rows from all wraps of this proxy. See |
Respond to the rowsRemoved signal from the source model. Note that the rows were already removed in _sourceRowsAboutToBeRemoved, so this method just clears the row removal bookkeeping. See |
Respond to the columnsAboutToBeInserted signal from the source model.
See |
Respond to the columnsAboutToBeRemoved signal from the source model.
See |
Respond to a dataChanged signal from the source model by emitting
dataChanged for all affected cells. See
|
Pass along a groupExpansionChanged signal from the source model after mapping the indices to be expanded or collapsed.
|
|
_inserting_child_rowsIf we're in the process of inserting child rows into the model, this will be a RowWrapInsertingChildRows object describing the insertion. Will be None at all other times.
|
_inserting_rowsIf we're in the process of inserting top-level rows into the model, this will be a RowWrapInsertingRows object describing the insertion. Will be None at all other times.
|
_removing_child_rowsIf we're in the process of removing child rows from the model, this will be a RowWrapRemovingChildRows object describing the removal. Will be None at all other times.
|
_removing_rowsIf we're in the process of removing top-level rows from the model, this will be a RowWrapRemovingRows object describing the removal. Will be None at all other times.
|
_source_child_row_countThe number of child rows for each top-level row of the source model. Note that the length of this list is always equal to the number of top-level rows in the source model.
|
_top_level_row_countThe current number of top-level row in this proxy (i.e. excluding children rows).
|
_updating_inserted_rowsIf we're in the process of updating top-level rows that were just inserted into the model, this will be a RowWrapInsertingRows object describing the updating. Will be None at all other times.
|
_widthThe current width of the table view, measured in number of columns. The is the width that this proxy will wrap to. |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue May 2 06:33:22 2017 | http://epydoc.sourceforge.net |