Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
QConcatenateTablesProxyModelPrivate Class Reference
+ Inheritance diagram for QConcatenateTablesProxyModelPrivate:
+ Collaboration diagram for QConcatenateTablesProxyModelPrivate:

Classes

struct  SourceModelForRowResult
 

Public Member Functions

 QConcatenateTablesProxyModelPrivate ()
 
int computeRowsPrior (const QAbstractItemModel *sourceModel) const
 
SourceModelForRowResult sourceModelForRow (int row) const
 
void _q_slotRowsAboutToBeInserted (const QModelIndex &, int start, int end)
 
void _q_slotRowsInserted (const QModelIndex &, int start, int end)
 
void _q_slotRowsAboutToBeRemoved (const QModelIndex &, int start, int end)
 
void _q_slotRowsRemoved (const QModelIndex &, int start, int end)
 
void _q_slotColumnsAboutToBeInserted (const QModelIndex &parent, int start, int end)
 
void _q_slotColumnsInserted (const QModelIndex &parent, int, int)
 
void _q_slotColumnsAboutToBeRemoved (const QModelIndex &parent, int start, int end)
 
void _q_slotColumnsRemoved (const QModelIndex &parent, int, int)
 
void _q_slotDataChanged (const QModelIndex &from, const QModelIndex &to, const QList< int > &roles)
 
void _q_slotSourceLayoutAboutToBeChanged (const QList< QPersistentModelIndex > &sourceParents, QAbstractItemModel::LayoutChangeHint hint)
 
void _q_slotSourceLayoutChanged (const QList< QPersistentModelIndex > &sourceParents, QAbstractItemModel::LayoutChangeHint hint)
 
void _q_slotModelAboutToBeReset ()
 
void _q_slotModelReset ()
 
int columnCountAfterChange (const QAbstractItemModel *model, int newCount) const
 
int calculatedColumnCount () const
 
void updateColumnCount ()
 
bool mapDropCoordinatesToSource (int row, int column, const QModelIndex &parent, int *sourceRow, int *sourceColumn, QModelIndex *sourceParent, QAbstractItemModel **sourceModel) const
 
- Public Member Functions inherited from QAbstractItemModelPrivate
 QAbstractItemModelPrivate ()
 
 ~QAbstractItemModelPrivate ()
 
void removePersistentIndexData (QPersistentModelIndexData *data)
 
void movePersistentIndexes (const QList< QPersistentModelIndexData * > &indexes, int change, const QModelIndex &parent, Qt::Orientation orientation)
 
void rowsAboutToBeInserted (const QModelIndex &parent, int first, int last)
 
void rowsInserted (const QModelIndex &parent, int first, int last)
 
void rowsAboutToBeRemoved (const QModelIndex &parent, int first, int last)
 
void rowsRemoved (const QModelIndex &parent, int first, int last)
 
void columnsAboutToBeInserted (const QModelIndex &parent, int first, int last)
 
void columnsInserted (const QModelIndex &parent, int first, int last)
 
void columnsAboutToBeRemoved (const QModelIndex &parent, int first, int last)
 
void columnsRemoved (const QModelIndex &parent, int first, int last)
 
void itemsAboutToBeMoved (const QModelIndex &srcParent, int srcFirst, int srcLast, const QModelIndex &destinationParent, int destinationChild, Qt::Orientation)
 
void itemsMoved (const QModelIndex &srcParent, int srcFirst, int srcLast, const QModelIndex &destinationParent, int destinationChild, Qt::Orientation orientation)
 
bool allowMove (const QModelIndex &srcParent, int srcFirst, int srcLast, const QModelIndex &destinationParent, int destinationChild, Qt::Orientation orientation)
 Returns whether a move operation is valid.
 
virtual void executePendingOperations () const
 
QModelIndex createIndex (int row, int column, void *data=nullptr) const
 
QModelIndex createIndex (int row, int column, int id) const
 
bool indexValid (const QModelIndex &index) const
 
void invalidatePersistentIndexes ()
 
void invalidatePersistentIndex (const QModelIndex &index)
 
- Public Member Functions inherited from QObjectPrivate
void ensureExtraData ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
virtual ~QObjectPrivate ()
 
void deleteChildren ()
 
void clearBindingStorage ()
 
void checkForIncompatibleLibraryVersion (int version) const
 
void setParent_helper (QObject *)
 
void moveToThread_helper ()
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData, QBindingStatus *status)
 
void _q_reregisterTimers (void *pointer)
 
bool isSender (const QObject *receiver, const char *signal) const
 
QObjectList receiverList (const char *signal) const
 
QObjectList senderList () const
 
void ensureConnectionData ()
 
void addConnection (int signal, Connection *c)
 
int signalIndex (const char *signalName, const QMetaObject **meta=nullptr) const
 
bool isSignalConnected (uint signalIdx, bool checkDeclarative=true) const
 
bool maybeSignalConnected (uint signalIndex) const
 
bool isDeclarativeSignalConnected (uint signalIdx) const
 
void connectNotify (const QMetaMethod &signal)
 
void disconnectNotify (const QMetaMethod &signal)
 
void reinitBindingStorageAfterThreadMove ()
 
virtual std::string flagsForDumping () const
 
QtPrivate::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
 
- Public Member Functions inherited from QObjectData
 QObjectData ()=default
 
virtual ~QObjectData ()=0
 
QMetaObjectdynamicMetaObject () const
 

Public Attributes

QList< QAbstractItemModel * > m_models
 
int m_rowCount
 
int m_columnCount
 
int m_newColumnCount
 
QList< QPersistentModelIndexlayoutChangePersistentIndexes
 
QList< QModelIndexlayoutChangeProxyIndexes
 
- Public Attributes inherited from QAbstractItemModelPrivate
QStack< Changechanges
 
struct QAbstractItemModelPrivate::Persistent persistent
 
- Public Attributes inherited from QObjectPrivate
ExtraDataextraData
 
QAtomicPointer< QThreadDatathreadData
 
QAtomicPointer< ConnectionDataconnections
 
union { 
 
   QObject *   currentChildBeingDeleted 
 
   QAbstractDeclarativeData *   declarativeData 
 
};  
 
QAtomicPointer< QtSharedPointer::ExternalRefCountDatasharedRefcount
 
- Public Attributes inherited from QObjectData
QObjectq_ptr
 
QObjectparent
 
QObjectList children
 
uint isWidget: 1
 
uint blockSig: 1
 
uint wasDeleted: 1
 
uint isDeletingChildren: 1
 
uint sendChildEvents: 1
 
uint receiveChildEvents: 1
 
uint isWindow: 1
 
uint deleteLaterCalled: 1
 
uint isQuickItem: 1
 
uint willBeWidget: 1
 
uint wasWidget: 1
 
uint unused: 21
 
QAtomicInt postedEvents
 
QDynamicMetaObjectDatametaObject
 
QBindingStorage bindingStorage
 

Additional Inherited Members

- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
using ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData >
 
- Static Public Member Functions inherited from QAbstractItemModelPrivate
static QAbstractItemModelstaticEmptyModel ()
 
static bool variantLessThan (const QVariant &v1, const QVariant &v2)
 
static const QHash< int, QByteArray > & defaultRoleNames ()
 
static bool isVariantLessThan (const QVariant &left, const QVariant &right, Qt::CaseSensitivity cs=Qt::CaseSensitive, bool isLocaleAware=false)
 
- Static Public Member Functions inherited from QObjectPrivate
static bool removeConnection (Connection *c)
 
static QObjectPrivateget (QObject *o)
 
static const QObjectPrivateget (const QObject *o)
 
template<typename Func1 , typename Func2 >
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot)
 
static QMetaObject::Connection connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject)
 
static QMetaObject::Connection connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
 
static QMetaObject::Connection connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
 
static bool disconnect (const QObject *sender, int signal_index, void **slot)
 
static bool disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot)
 

Detailed Description

Definition at line 12 of file qconcatenatetablesproxymodel.cpp.

Constructor & Destructor Documentation

◆ QConcatenateTablesProxyModelPrivate()

QConcatenateTablesProxyModelPrivate::QConcatenateTablesProxyModelPrivate ( )

Definition at line 60 of file qconcatenatetablesproxymodel.cpp.

Member Function Documentation

◆ _q_slotColumnsAboutToBeInserted()

void QConcatenateTablesProxyModelPrivate::_q_slotColumnsAboutToBeInserted ( const QModelIndex parent,
int  start,
int  end 
)

Definition at line 529 of file qconcatenatetablesproxymodel.cpp.

References QSqlQueryModel::columnCount(), columnCountAfterChange(), m_newColumnCount, model, QObjectData::parent, Q_ASSERT, and qMin().

+ Here is the call graph for this function:

◆ _q_slotColumnsAboutToBeRemoved()

void QConcatenateTablesProxyModelPrivate::_q_slotColumnsAboutToBeRemoved ( const QModelIndex parent,
int  start,
int  end 
)

Definition at line 558 of file qconcatenatetablesproxymodel.cpp.

References QSqlQueryModel::columnCount(), columnCountAfterChange(), m_newColumnCount, model, QObjectData::parent, Q_ASSERT, and qMax().

+ Here is the call graph for this function:

◆ _q_slotColumnsInserted()

void QConcatenateTablesProxyModelPrivate::_q_slotColumnsInserted ( const QModelIndex parent,
int  start,
int  end 
)

◆ _q_slotColumnsRemoved()

void QConcatenateTablesProxyModelPrivate::_q_slotColumnsRemoved ( const QModelIndex parent,
int  start,
int  end 
)

◆ _q_slotDataChanged()

void QConcatenateTablesProxyModelPrivate::_q_slotDataChanged ( const QModelIndex from,
const QModelIndex to,
const QList< int > &  roles 
)

Definition at line 585 of file qconcatenatetablesproxymodel.cpp.

References QModelIndex::column(), emit, QAbstractItemModel::IndexIsValid, QModelIndex::isValid(), m_columnCount, Q_ASSERT, and QModelIndex::siblingAtColumn().

+ Here is the call graph for this function:

◆ _q_slotModelAboutToBeReset()

void QConcatenateTablesProxyModelPrivate::_q_slotModelAboutToBeReset ( )

Definition at line 641 of file qconcatenatetablesproxymodel.cpp.

References QListSpecialMethodsBase< T >::contains(), m_models, and Q_ASSERT.

+ Here is the call graph for this function:

◆ _q_slotModelReset()

void QConcatenateTablesProxyModelPrivate::_q_slotModelReset ( )

Definition at line 651 of file qconcatenatetablesproxymodel.cpp.

References calculatedColumnCount(), computeRowsPrior(), QListSpecialMethodsBase< T >::contains(), m_columnCount, m_models, m_rowCount, and Q_ASSERT.

+ Here is the call graph for this function:

◆ _q_slotRowsAboutToBeInserted()

void QConcatenateTablesProxyModelPrivate::_q_slotRowsAboutToBeInserted ( const QModelIndex parent,
int  start,
int  end 
)

Definition at line 491 of file qconcatenatetablesproxymodel.cpp.

References computeRowsPrior(), model, and QObjectData::parent.

+ Here is the call graph for this function:

◆ _q_slotRowsAboutToBeRemoved()

void QConcatenateTablesProxyModelPrivate::_q_slotRowsAboutToBeRemoved ( const QModelIndex parent,
int  start,
int  end 
)

Definition at line 510 of file qconcatenatetablesproxymodel.cpp.

References computeRowsPrior(), model, and QObjectData::parent.

+ Here is the call graph for this function:

◆ _q_slotRowsInserted()

void QConcatenateTablesProxyModelPrivate::_q_slotRowsInserted ( const QModelIndex parent,
int  start,
int  end 
)

Definition at line 501 of file qconcatenatetablesproxymodel.cpp.

References m_rowCount, and QObjectData::parent.

◆ _q_slotRowsRemoved()

void QConcatenateTablesProxyModelPrivate::_q_slotRowsRemoved ( const QModelIndex parent,
int  start,
int  end 
)

Definition at line 520 of file qconcatenatetablesproxymodel.cpp.

References m_rowCount, and QObjectData::parent.

◆ _q_slotSourceLayoutAboutToBeChanged()

void QConcatenateTablesProxyModelPrivate::_q_slotSourceLayoutAboutToBeChanged ( const QList< QPersistentModelIndex > &  sourceParents,
QAbstractItemModel::LayoutChangeHint  hint 
)

Definition at line 602 of file qconcatenatetablesproxymodel.cpp.

References QList< T >::append(), QListSpecialMethodsBase< T >::contains(), emit, hint(), QList< T >::isEmpty(), QPersistentModelIndex::isValid(), layoutChangePersistentIndexes, layoutChangeProxyIndexes, Q_ASSERT, QList< T >::reserve(), and QList< T >::size().

+ Here is the call graph for this function:

◆ _q_slotSourceLayoutChanged()

void QConcatenateTablesProxyModelPrivate::_q_slotSourceLayoutChanged ( const QList< QPersistentModelIndex > &  sourceParents,
QAbstractItemModel::LayoutChangeHint  hint 
)

Definition at line 624 of file qconcatenatetablesproxymodel.cpp.

References QList< T >::at(), QList< T >::clear(), QListSpecialMethodsBase< T >::contains(), emit, hint(), i, QList< T >::isEmpty(), layoutChangePersistentIndexes, layoutChangeProxyIndexes, and QList< T >::size().

+ Here is the call graph for this function:

◆ calculatedColumnCount()

int QConcatenateTablesProxyModelPrivate::calculatedColumnCount ( ) const

Definition at line 660 of file qconcatenatetablesproxymodel.cpp.

References QList< T >::begin(), QList< T >::end(), QList< T >::isEmpty(), it, and m_models.

Referenced by _q_slotModelReset(), and updateColumnCount().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ columnCountAfterChange()

int QConcatenateTablesProxyModelPrivate::columnCountAfterChange ( const QAbstractItemModel model,
int  newCount 
) const

Definition at line 688 of file qconcatenatetablesproxymodel.cpp.

References QList< T >::at(), QAbstractItemModel::columnCount(), i, m_models, model, qMin(), and QList< T >::size().

Referenced by _q_slotColumnsAboutToBeInserted(), and _q_slotColumnsAboutToBeRemoved().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ computeRowsPrior()

int QConcatenateTablesProxyModelPrivate::computeRowsPrior ( const QAbstractItemModel sourceModel) const

Definition at line 702 of file qconcatenatetablesproxymodel.cpp.

References m_models, model, and QSqlQueryModel::rowCount().

Referenced by _q_slotModelReset(), _q_slotRowsAboutToBeInserted(), and _q_slotRowsAboutToBeRemoved().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mapDropCoordinatesToSource()

bool QConcatenateTablesProxyModelPrivate::mapDropCoordinatesToSource ( int  row,
int  column,
const QModelIndex parent,
int *  sourceRow,
int *  sourceColumn,
QModelIndex sourceParent,
QAbstractItemModel **  sourceModel 
) const

Definition at line 328 of file qconcatenatetablesproxymodel.cpp.

References QList< T >::constLast(), m_models, m_rowCount, QObjectData::parent, Q_ASSERT, and sourceModelForRow().

+ Here is the call graph for this function:

◆ sourceModelForRow()

QConcatenateTablesProxyModelPrivate::SourceModelForRowResult QConcatenateTablesProxyModelPrivate::sourceModelForRow ( int  row) const

Definition at line 713 of file qconcatenatetablesproxymodel.cpp.

References m_models, model, QSqlQueryModel::rowCount(), and QAbstractItemModel::sourceRow.

Referenced by mapDropCoordinatesToSource().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateColumnCount()

void QConcatenateTablesProxyModelPrivate::updateColumnCount ( )

Definition at line 671 of file qconcatenatetablesproxymodel.cpp.

References calculatedColumnCount(), and m_columnCount.

+ Here is the call graph for this function:

Member Data Documentation

◆ layoutChangePersistentIndexes

QList<QPersistentModelIndex> QConcatenateTablesProxyModelPrivate::layoutChangePersistentIndexes

◆ layoutChangeProxyIndexes

QList<QModelIndex> QConcatenateTablesProxyModelPrivate::layoutChangeProxyIndexes

◆ m_columnCount

int QConcatenateTablesProxyModelPrivate::m_columnCount

◆ m_models

◆ m_newColumnCount

int QConcatenateTablesProxyModelPrivate::m_newColumnCount

◆ m_rowCount

int QConcatenateTablesProxyModelPrivate::m_rowCount

The documentation for this class was generated from the following file: