![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qrangemodel_impl.h>
Classes | |
| struct | EmptyRowGenerator |
| struct | ItemReader |
| struct | unordered |
| struct | Compare |
Public Member Functions | |
| QRangeModelImpl (Range &&model, Protocol &&protocol, QRangeModel *itemModel) | |
| void | interfaceVersion (int &versionNumber) const |
| void | invalidateCaches () |
| bool | setHeaderData (int, Qt::Orientation, const QVariant &, int) |
| QModelIndex | index (int row, int column, const QModelIndex &parent) const |
| QModelIndex | sibling (int row, int column, const QModelIndex &index) const |
| Qt::ItemFlags | flags (const QModelIndex &index) const |
| QVariant | headerData (int section, Qt::Orientation orientation, int role) const |
| QVariant | data (const QModelIndex &index, int role) const |
| QMap< int, QVariant > | itemData (const QModelIndex &index) const |
| void | multiData (const QModelIndex &index, QModelRoleDataSpan roleDataSpan) const |
| bool | setData (const QModelIndex &index, const QVariant &data, int role) |
| template<typename LHS, typename RHS> | |
| void | updateTarget (LHS &org, RHS &©) noexcept |
| template<typename LHS, typename RHS> | |
| void | updateTarget (LHS *org, RHS &©) noexcept |
| bool | setItemData (const QModelIndex &index, const QMap< int, QVariant > &data) |
| bool | clearItemData (const QModelIndex &index) |
| QHash< int, QByteArray > | roleNames () const |
| bool | autoConnectPropertiesInRow (const row_type &row, int rowIndex, const QModelIndex &parent) const |
| void | clearConnectionInRow (const row_type &row, int rowIndex, const QModelIndex &parent) const |
| void | setAutoConnectPolicy () |
| void | sort (int column, Qt::SortOrder order) |
| template<typename LessThan> | |
| void | sortSubRange (range_type &range, row_ptr expectedParent, const LessThan &lessThan) |
| QModelIndexList | match (const QModelIndex &start, int role, const QVariant &value, int hits, Qt::MatchFlags flags) const |
| bool | matchRow (const_row_reference row, const QModelIndex &index, int role, const QVariant &value, Qt::MatchFlags flags) const |
| template<typename InsertFn> | |
| bool | doInsertColumns (int column, int count, const QModelIndex &parent, InsertFn insertFn) |
| bool | insertColumns (int column, int count, const QModelIndex &parent) |
| bool | removeColumns (int column, int count, const QModelIndex &parent) |
| bool | moveColumns (const QModelIndex &sourceParent, int sourceColumn, int count, const QModelIndex &destParent, int destColumn) |
| template<typename InsertFn> | |
| bool | doInsertRows (int row, int count, const QModelIndex &parent, InsertFn &&insertFn) |
| bool | insertRows (int row, int count, const QModelIndex &parent) |
| bool | removeRows (int row, int count, const QModelIndex &parent={}) |
| bool | moveRows (const QModelIndex &sourceParent, int sourceRow, int count, const QModelIndex &destParent, int destRow) |
| const protocol_type & | protocol () const |
| protocol_type & | protocol () |
| QModelIndex | parent (const QModelIndex &child) const |
| int | rowCount (const QModelIndex &parent) const |
| int | columnCount (const QModelIndex &parent) const |
| void | destroy () |
| Public Member Functions inherited from Interface | |
| Interface ()=default | |
| Interface (const QCborValue &cbor) | |
Static Public Member Functions | |
| static constexpr bool | isMutable () |
| static constexpr bool | dynamicRows () |
| static constexpr bool | dynamicColumns () |
| static constexpr bool | isRangeModelRole (int role) |
| static constexpr bool | isPrimaryRole (int role) |
| static constexpr int | fixedColumnCount () |
Static Public Attributes | |
| static constexpr bool | itemsAreQObjects |
| static constexpr bool | rowsAreQObjects |
Protected Types | |
| using | Self = QRangeModelImpl<Structure, Range, Protocol> |
| using | Ancestor = QtPrivate::QQuasiVirtualSubclass<Self, QRangeModelImplBase> |
| using | row_ptr = wrapped_row_type * |
| using | const_row_ptr = const wrapped_row_type * |
| using | AutoConnectPolicy = typename Ancestor::AutoConnectPolicy |
Protected Member Functions | |
| Structure & | that () |
| const Structure & | that () const |
| auto | maybeBlockDataChangedDispatch () |
| ~QRangeModelImpl () | |
| void | deleteOwnedRows () |
| template<typename F> | |
| bool | writeAt (const QModelIndex &index, F &&writer) |
| template<typename F> | |
| bool | readAt (const QModelIndex &index, F &&reader) const |
| template<typename ItemType> | |
| QMetaProperty | roleProperty (int role) const |
| void | connectPropertyOnRead (const QModelIndex &index, int role, const QObject *gadget, const QMetaProperty &prop) const |
| template<typename ItemType> | |
| QVariant | readRole (const QModelIndex &index, int role, ItemType *gadget) const |
| template<typename ItemType> | |
| QVariant | readRole (const QModelIndex &index, int role, const ItemType &gadget) const |
| template<typename ItemType> | |
| QVariant | readProperty (const QModelIndex &index, ItemType *gadget) const |
| template<typename ItemType> | |
| QVariant | readProperty (const QModelIndex &index, const ItemType &gadget) const |
| template<typename ItemType> | |
| bool | writeRole (int role, ItemType *gadget, const QVariant &data) |
| template<typename ItemType> | |
| bool | writeRole (int role, ItemType &&gadget, const QVariant &data) |
| const_row_reference | rowData (const QModelIndex &index) const |
| row_reference | rowData (const QModelIndex &index) |
| const range_type * | childRange (const QModelIndex &index) const |
| range_type * | childRange (const QModelIndex &index) |
| Protected Member Functions inherited from QtPrivate::QQuasiVirtualSubclass< Subclass, Interface > | |
| template<typename... Args> | |
| QQuasiVirtualSubclass (Args &&... args) | |
Static Protected Member Functions | |
| template<typename C> | |
| static constexpr int | size (const C &c) |
| static constexpr bool | canInsertRows () |
| static constexpr bool | canRemoveRows () |
| template<typename Value> | |
| static QVariant | read (const Value &value) |
| template<typename Value> | |
| static QVariant | read (Value *value) |
| template<typename Target> | |
| static bool | write (Target &target, const QVariant &value) |
| template<typename Target> | |
| static bool | write (Target *target, const QVariant &value) |
| template<typename ItemType> | |
| static QVariant | readProperty (const QMetaProperty &prop, ItemType *gadget) |
| template<typename ItemType> | |
| static bool | writeProperty (const QMetaProperty &prop, ItemType *gadget, const QVariant &data) |
| template<typename ItemType> | |
| static bool | writeProperty (int property, ItemType *gadget, const QVariant &data) |
| template<typename ItemType> | |
| static bool | writeProperty (int property, ItemType &&gadget, const QVariant &data) |
| template<typename ItemType> | |
| static bool | resetProperty (int property, ItemType *object) |
| template<typename ItemType> | |
| static bool | resetProperty (int property, ItemType &&object) |
Protected Attributes | |
| ModelData | m_data |
Static Protected Attributes | |
| static constexpr int | static_row_count = QRangeModelDetails::static_size_v<range_type> |
| static constexpr bool | rows_are_raw_pointers = std::is_pointer_v<row_type> |
| static constexpr bool | rows_are_owning_or_raw_pointers |
| static constexpr int | static_column_count = QRangeModelDetails::static_size_v<row_type> |
| static constexpr bool | one_dimensional_range = static_column_count == 0 |
| template<typename T> | |
| static constexpr bool | has_metaobject |
Friends | |
| template<typename, typename, typename> | |
| class | QRangeModelAdapter |
Additional Inherited Members | |
| Public Attributes inherited from Interface | |
| QAnyStringView | className |
Definition at line 1152 of file qrangemodel_impl.h.
|
protected |
Definition at line 1194 of file qrangemodel_impl.h.
|
protected |
Definition at line 1278 of file qrangemodel_impl.h.
| using QRangeModelImpl< Structure, Range, Protocol >::ClearItemData = Override<QRangeModelImplBase::ClearItemData, &Self::clearItemData> |
Definition at line 2539 of file qrangemodel_impl.h.
| using QRangeModelImpl< Structure, Range, Protocol >::ColumnCount = Override<QRangeModelImplBase::ColumnCount, &Self::columnCount> |
Definition at line 2528 of file qrangemodel_impl.h.
|
protected |
Definition at line 1241 of file qrangemodel_impl.h.
| using QRangeModelImpl< Structure, Range, Protocol >::const_row_reference = decltype(*std::declval<typename ModelData::const_iterator&>()) |
Definition at line 1183 of file qrangemodel_impl.h.
| using QRangeModelImpl< Structure, Range, Protocol >::Data = Override<QRangeModelImplBase::Data, &Self::data> |
Definition at line 2532 of file qrangemodel_impl.h.
| using QRangeModelImpl< Structure, Range, Protocol >::Destroy = Override<QRangeModelImplBase::Destroy, &Self::destroy> |
Definition at line 2523 of file qrangemodel_impl.h.
| using QRangeModelImpl< Structure, Range, Protocol >::Flags = Override<QRangeModelImplBase::Flags, &Self::flags> |
Definition at line 2529 of file qrangemodel_impl.h.
| using QRangeModelImpl< Structure, Range, Protocol >::HeaderData = Override<QRangeModelImplBase::HeaderData, &Self::headerData> |
Definition at line 2530 of file qrangemodel_impl.h.
| using QRangeModelImpl< Structure, Range, Protocol >::Index = Override<QRangeModelImplBase::Index, &Self::index> |
Definition at line 2524 of file qrangemodel_impl.h.
| using QRangeModelImpl< Structure, Range, Protocol >::InsertColumns = Override<QRangeModelImplBase::InsertColumns, &Self::insertColumns> |
Definition at line 2540 of file qrangemodel_impl.h.
| using QRangeModelImpl< Structure, Range, Protocol >::InsertRows = Override<QRangeModelImplBase::InsertRows, &Self::insertRows> |
Definition at line 2543 of file qrangemodel_impl.h.
| using QRangeModelImpl< Structure, Range, Protocol >::InterfaceVersion = Override<QRangeModelImplBase::InterfaceVersion, &Self::interfaceVersion> |
Definition at line 2551 of file qrangemodel_impl.h.
| using QRangeModelImpl< Structure, Range, Protocol >::InvalidateCaches = Override<QRangeModelImplBase::InvalidateCaches, &Self::invalidateCaches> |
Definition at line 2535 of file qrangemodel_impl.h.
| using QRangeModelImpl< Structure, Range, Protocol >::ItemData = Override<QRangeModelImplBase::ItemData, &Self::itemData> |
Definition at line 2533 of file qrangemodel_impl.h.
| using QRangeModelImpl< Structure, Range, Protocol >::Match = Override<QRangeModelImplBase::Match, &Self::match> |
Definition at line 2553 of file qrangemodel_impl.h.
| using QRangeModelImpl< Structure, Range, Protocol >::ModelData |
Definition at line 1173 of file qrangemodel_impl.h.
| using QRangeModelImpl< Structure, Range, Protocol >::MoveColumns = Override<QRangeModelImplBase::MoveColumns, &Self::moveColumns> |
Definition at line 2542 of file qrangemodel_impl.h.
| using QRangeModelImpl< Structure, Range, Protocol >::MoveRows = Override<QRangeModelImplBase::MoveRows, &Self::moveRows> |
Definition at line 2545 of file qrangemodel_impl.h.
| using QRangeModelImpl< Structure, Range, Protocol >::MultiData = Override<QRangeModelImplBase::MultiData, &Self::multiData> |
Definition at line 2547 of file qrangemodel_impl.h.
| using QRangeModelImpl< Structure, Range, Protocol >::Override = typename Ancestor::template Override<BaseMethod, overridden> |
Definition at line 2521 of file qrangemodel_impl.h.
| using QRangeModelImpl< Structure, Range, Protocol >::Parent = Override<QRangeModelImplBase::Parent, &Self::parent> |
Definition at line 2525 of file qrangemodel_impl.h.
| using QRangeModelImpl< Structure, Range, Protocol >::protocol_traits = QRangeModelDetails::protocol_traits<Range, protocol_type> |
Definition at line 1166 of file qrangemodel_impl.h.
| using QRangeModelImpl< Structure, Range, Protocol >::protocol_type = QRangeModelDetails::wrapped_t<Protocol> |
Definition at line 1165 of file qrangemodel_impl.h.
| using QRangeModelImpl< Structure, Range, Protocol >::ProtocolStorage = QtPrivate::CompactStorage<Protocol> |
Definition at line 1181 of file qrangemodel_impl.h.
| using QRangeModelImpl< Structure, Range, Protocol >::range_features = QRangeModelDetails::range_traits<range_type> |
Definition at line 1159 of file qrangemodel_impl.h.
| using QRangeModelImpl< Structure, Range, Protocol >::range_type = QRangeModelDetails::wrapped_t<Range> |
Definition at line 1158 of file qrangemodel_impl.h.
| using QRangeModelImpl< Structure, Range, Protocol >::RemoveColumns = Override<QRangeModelImplBase::RemoveColumns, &Self::removeColumns> |
Definition at line 2541 of file qrangemodel_impl.h.
| using QRangeModelImpl< Structure, Range, Protocol >::RemoveRows = Override<QRangeModelImplBase::RemoveRows, &Self::removeRows> |
Definition at line 2544 of file qrangemodel_impl.h.
| using QRangeModelImpl< Structure, Range, Protocol >::RoleNames = Override<QRangeModelImplBase::RoleNames, &Self::roleNames> |
Definition at line 2534 of file qrangemodel_impl.h.
| using QRangeModelImpl< Structure, Range, Protocol >::row_features = QRangeModelDetails::range_traits<wrapped_row_type> |
Definition at line 1163 of file qrangemodel_impl.h.
|
protected |
Definition at line 1240 of file qrangemodel_impl.h.
| using QRangeModelImpl< Structure, Range, Protocol >::row_reference = decltype(*QRangeModelDetails::adl_begin(std::declval<range_type&>())) |
Definition at line 1160 of file qrangemodel_impl.h.
| using QRangeModelImpl< Structure, Range, Protocol >::row_traits = QRangeModelDetails::row_traits<std::remove_cv_t<wrapped_row_type>> |
Definition at line 1164 of file qrangemodel_impl.h.
| using QRangeModelImpl< Structure, Range, Protocol >::row_type = std::remove_reference_t<row_reference> |
Definition at line 1161 of file qrangemodel_impl.h.
| using QRangeModelImpl< Structure, Range, Protocol >::RowCount = Override<QRangeModelImplBase::RowCount, &Self::rowCount> |
Definition at line 2527 of file qrangemodel_impl.h.
|
protected |
Definition at line 1193 of file qrangemodel_impl.h.
| using QRangeModelImpl< Structure, Range, Protocol >::SetAutoConnectPolicy |
Definition at line 2548 of file qrangemodel_impl.h.
| using QRangeModelImpl< Structure, Range, Protocol >::SetData = Override<QRangeModelImplBase::SetData, &Self::setData> |
Definition at line 2537 of file qrangemodel_impl.h.
| using QRangeModelImpl< Structure, Range, Protocol >::SetHeaderData = Override<QRangeModelImplBase::SetHeaderData, &Self::setHeaderData> |
Definition at line 2536 of file qrangemodel_impl.h.
| using QRangeModelImpl< Structure, Range, Protocol >::SetItemData = Override<QRangeModelImplBase::SetItemData, &Self::setItemData> |
Definition at line 2538 of file qrangemodel_impl.h.
| using QRangeModelImpl< Structure, Range, Protocol >::Sibling = Override<QRangeModelImplBase::Sibling, &Self::sibling> |
Definition at line 2526 of file qrangemodel_impl.h.
| using QRangeModelImpl< Structure, Range, Protocol >::Sort = Override<QRangeModelImplBase::Sort, &Self::sort> |
Definition at line 2552 of file qrangemodel_impl.h.
| using QRangeModelImpl< Structure, Range, Protocol >::wrapped_row_type = QRangeModelDetails::wrapped_t<row_type> |
Definition at line 1162 of file qrangemodel_impl.h.
|
inlineexplicit |
Definition at line 1290 of file qrangemodel_impl.h.
Referenced by QRangeModelImpl().
|
inlineprotected |
Definition at line 2555 of file qrangemodel_impl.h.
|
inline |
Definition at line 1888 of file qrangemodel_impl.h.
|
inlinestaticconstexprprotected |
Definition at line 2594 of file qrangemodel_impl.h.
Referenced by insertRows().
|
inlinestaticconstexprprotected |
Definition at line 2614 of file qrangemodel_impl.h.
|
inlineprotected |
Definition at line 2865 of file qrangemodel_impl.h.
|
inlineprotected |
Definition at line 2856 of file qrangemodel_impl.h.
|
inline |
Definition at line 1902 of file qrangemodel_impl.h.
|
inline |
Definition at line 1846 of file qrangemodel_impl.h.
|
inline |
Definition at line 2516 of file qrangemodel_impl.h.
|
inlineprotected |
Definition at line 2709 of file qrangemodel_impl.h.
|
inline |
Definition at line 1429 of file qrangemodel_impl.h.
|
inlineprotected |
Definition at line 2560 of file qrangemodel_impl.h.
Referenced by ~QRangeModelImpl().
|
inline |
Definition at line 2518 of file qrangemodel_impl.h.
|
inline |
Definition at line 2235 of file qrangemodel_impl.h.
|
inline |
Definition at line 2354 of file qrangemodel_impl.h.
|
inlinestaticconstexpr |
Definition at line 1288 of file qrangemodel_impl.h.
Referenced by moveColumns().
|
inlinestaticconstexpr |
Definition at line 1287 of file qrangemodel_impl.h.
|
inlinestaticconstexpr |
Definition at line 2509 of file qrangemodel_impl.h.
|
inline |
Definition at line 1339 of file qrangemodel_impl.h.
|
inline |
Definition at line 1405 of file qrangemodel_impl.h.
|
inline |
Definition at line 1311 of file qrangemodel_impl.h.
|
inline |
Definition at line 2272 of file qrangemodel_impl.h.
|
inline |
Definition at line 2389 of file qrangemodel_impl.h.
|
inline |
Definition at line 1300 of file qrangemodel_impl.h.
|
inline |
Definition at line 1305 of file qrangemodel_impl.h.
|
inlinestaticconstexpr |
Definition at line 1281 of file qrangemodel_impl.h.
|
inlinestaticconstexpr |
Definition at line 1445 of file qrangemodel_impl.h.
|
inlinestaticconstexpr |
Definition at line 1439 of file qrangemodel_impl.h.
|
inline |
Definition at line 1450 of file qrangemodel_impl.h.
|
inline |
Definition at line 2193 of file qrangemodel_impl.h.
|
inline |
Definition at line 2200 of file qrangemodel_impl.h.
|
inlineprotected |
Definition at line 1230 of file qrangemodel_impl.h.
Referenced by setData(), and setItemData().
|
inline |
Definition at line 2321 of file qrangemodel_impl.h.
|
inline |
Definition at line 2468 of file qrangemodel_impl.h.
|
inline |
Definition at line 1579 of file qrangemodel_impl.h.
|
inline |
Definition at line 2505 of file qrangemodel_impl.h.
|
inline |
Definition at line 2503 of file qrangemodel_impl.h.
|
inline |
Definition at line 2502 of file qrangemodel_impl.h.
|
inlinestaticprotected |
Definition at line 2646 of file qrangemodel_impl.h.
|
inlinestaticprotected |
Definition at line 2654 of file qrangemodel_impl.h.
|
inlineprotected |
Definition at line 2638 of file qrangemodel_impl.h.
|
inlinestaticprotected |
Definition at line 2751 of file qrangemodel_impl.h.
|
inlineprotected |
Definition at line 2773 of file qrangemodel_impl.h.
|
inlineprotected |
Definition at line 2760 of file qrangemodel_impl.h.
|
inlineprotected |
Definition at line 2745 of file qrangemodel_impl.h.
|
inlineprotected |
Definition at line 2726 of file qrangemodel_impl.h.
|
inline |
Definition at line 2284 of file qrangemodel_impl.h.
|
inline |
Definition at line 2412 of file qrangemodel_impl.h.
|
inlinestaticprotected |
Definition at line 2838 of file qrangemodel_impl.h.
|
inlinestaticprotected |
Definition at line 2818 of file qrangemodel_impl.h.
|
inline |
Definition at line 1880 of file qrangemodel_impl.h.
|
inlineprotected |
Definition at line 2687 of file qrangemodel_impl.h.
|
inline |
Definition at line 2507 of file qrangemodel_impl.h.
|
inlineprotected |
Definition at line 2850 of file qrangemodel_impl.h.
|
inlineprotected |
Definition at line 2844 of file qrangemodel_impl.h.
|
inline |
Definition at line 1916 of file qrangemodel_impl.h.
|
inline |
Definition at line 1587 of file qrangemodel_impl.h.
|
inline |
Definition at line 1308 of file qrangemodel_impl.h.
|
inline |
Definition at line 1736 of file qrangemodel_impl.h.
|
inline |
Definition at line 1321 of file qrangemodel_impl.h.
|
inlinestaticconstexprprotected |
Definition at line 1200 of file qrangemodel_impl.h.
|
inline |
Definition at line 2078 of file qrangemodel_impl.h.
|
inline |
Definition at line 2114 of file qrangemodel_impl.h.
|
inlineprotected |
Definition at line 1196 of file qrangemodel_impl.h.
|
inlineprotected |
Definition at line 1197 of file qrangemodel_impl.h.
|
inlinenoexcept |
Definition at line 1721 of file qrangemodel_impl.h.
|
inlinenoexcept |
Definition at line 1731 of file qrangemodel_impl.h.
|
inlinestaticprotected |
Definition at line 2666 of file qrangemodel_impl.h.
|
inlinestaticprotected |
Definition at line 2679 of file qrangemodel_impl.h.
|
inlineprotected |
Definition at line 2620 of file qrangemodel_impl.h.
|
inlinestaticprotected |
Definition at line 2796 of file qrangemodel_impl.h.
|
inlinestaticprotected |
Definition at line 2812 of file qrangemodel_impl.h.
|
inlinestaticprotected |
Definition at line 2804 of file qrangemodel_impl.h.
|
inlineprotected |
Definition at line 2790 of file qrangemodel_impl.h.
|
inlineprotected |
Definition at line 2779 of file qrangemodel_impl.h.
|
friend |
Definition at line 2874 of file qrangemodel_impl.h.
|
staticconstexprprotected |
Definition at line 1244 of file qrangemodel_impl.h.
|
staticconstexpr |
Definition at line 1168 of file qrangemodel_impl.h.
Referenced by doInsertColumns(), doInsertRows(), maybeBlockDataChangedDispatch(), removeColumns(), setAutoConnectPolicy(), and setData().
|
protected |
Definition at line 2876 of file qrangemodel_impl.h.
|
staticconstexprprotected |
Definition at line 1228 of file qrangemodel_impl.h.
Referenced by fixedColumnCount().
|
staticconstexprprotected |
Definition at line 1225 of file qrangemodel_impl.h.
Referenced by insertRows().
|
staticconstexprprotected |
Definition at line 1224 of file qrangemodel_impl.h.
Referenced by deleteOwnedRows().
|
staticconstexpr |
Definition at line 1170 of file qrangemodel_impl.h.
Referenced by doInsertRows(), maybeBlockDataChangedDispatch(), setAutoConnectPolicy(), and setData().
|
staticconstexprprotected |
Definition at line 1227 of file qrangemodel_impl.h.
Referenced by dynamicColumns(), fixedColumnCount(), and flags().
|
staticconstexprprotected |
Definition at line 1223 of file qrangemodel_impl.h.
Referenced by dynamicRows().