|
Multi diag tools
|
RowRange represents a range of rows in item models. More...
#include <RowRange.h>
Inheritance diagram for Mdt::ItemModel::RowRange:
Collaboration diagram for Mdt::ItemModel::RowRange:Public Member Functions | |
| constexpr void | setFirstRow (int row) noexcept |
| Set first row. | |
| constexpr void | setFirstIndex (const QModelIndex &index) noexcept |
| Set first model index. | |
| constexpr int | firstRow () const noexcept |
| Get first row. More... | |
| constexpr void | setLastRow (int row) noexcept |
| Set last row. | |
| constexpr void | setLastIndex (const QModelIndex &index) noexcept |
| Set last model index. | |
| constexpr int | lastRow () const noexcept |
| Get last row. More... | |
| constexpr void | setRowCount (int count) noexcept |
| Set row count. More... | |
| constexpr int | rowCount () const noexcept |
| Get row count. More... | |
| constexpr bool | containsRow (int row) const noexcept |
| Check if this range contains row. | |
Public Member Functions inherited from Mdt::ItemModel::Range | |
| constexpr void | clear () noexcept |
| Clear range. | |
| constexpr bool | isValid () const noexcept |
| Check if range is valid. More... | |
| constexpr bool | isEmpty () const noexcept |
| Check if range is empty. | |
| constexpr bool | isNull () const noexcept |
| Check if range is null. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Mdt::ItemModel::Range | |
| constexpr void | setFirst (int f) noexcept |
| Set first. | |
| constexpr int | first () const noexcept |
| Get first. More... | |
| constexpr void | setLast (int l) noexcept |
| Set last. | |
| constexpr int | last () const noexcept |
| Get last. More... | |
| constexpr void | setCount (int count) noexcept |
| Set count. More... | |
| constexpr int | count () const noexcept |
| Get count. More... | |
| constexpr bool | contains (int e) const noexcept |
| Check if this range contains a element. | |
RowRange represents a range of rows in item models.
Definition at line 31 of file RowRange.h.
|
inlinenoexcept |
Get first row.
Definition at line 57 of file RowRange.h.
|
inlinenoexcept |
Get last row.
Definition at line 84 of file RowRange.h.
|
inlinenoexcept |
Get row count.
Returns row count of this range if it is valid, otherwise 0.
Definition at line 105 of file RowRange.h.
|
inlinenoexcept |
Set row count.
Definition at line 93 of file RowRange.h.
1.8.11