Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QConcatenateTablesProxyModelPrivate Class Reference
+ Inheritance diagram for QConcatenateTablesProxyModelPrivate:
+ Collaboration diagram for QConcatenateTablesProxyModelPrivate:

Classes

struct  ModelInfo
 
struct  SourceModelForRowResult
 

Public Member Functions

 QConcatenateTablesProxyModelPrivate ()
 
int computeRowsPrior (const QAbstractItemModel *sourceModel) const
 
SourceModelForRowResult sourceModelForRow (int row) const
 
void slotRowsAboutToBeInserted (const QModelIndex &, int start, int end)
 
void slotRowsInserted (const QModelIndex &, int start, int end)
 
void slotRowsAboutToBeRemoved (const QModelIndex &, int start, int end)
 
void slotRowsRemoved (const QModelIndex &, int start, int end)
 
void slotColumnsAboutToBeInserted (const QModelIndex &parent, int start, int end)
 
void slotColumnsInserted (const QModelIndex &parent, int, int)
 
void slotColumnsAboutToBeRemoved (const QModelIndex &parent, int start, int end)
 
void slotColumnsRemoved (const QModelIndex &parent, int, int)
 
void slotDataChanged (const QModelIndex &from, const QModelIndex &to, const QList< int > &roles)
 
void slotSourceLayoutAboutToBeChanged (const QList< QPersistentModelIndex > &sourceParents, QAbstractItemModel::LayoutChangeHint hint)
 
void slotSourceLayoutChanged (const QList< QPersistentModelIndex > &sourceParents, QAbstractItemModel::LayoutChangeHint hint)
 
void slotModelAboutToBeReset ()
 
void 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
 
QList< ModelInfo >::const_iterator findSourceModel (const QAbstractItemModel *m) const
 
bool containsSourceModel (const QAbstractItemModel *m) 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)
 
QObjectList receiverList (const char *signal) 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
 
virtual void writeToDebugStream (QDebug &) const
 
QtPrivate::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
 
- Public Member Functions inherited from QObjectData
 QObjectData ()=default
 
virtual ~QObjectData ()=0
 
QMetaObjectdynamicMetaObject () const
 

Public Attributes

QList< ModelInfom_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 receiveParentEvents: 1
 
uint unused: 20
 
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 77 of file qconcatenatetablesproxymodel.cpp.

Member Function Documentation

◆ calculatedColumnCount()

int QConcatenateTablesProxyModelPrivate::calculatedColumnCount ( ) const

Definition at line 707 of file qconcatenatetablesproxymodel.cpp.

References it, and m_models.

Referenced by slotModelReset(), and updateColumnCount().

+ Here is the caller graph for this function:

◆ columnCountAfterChange()

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

Definition at line 736 of file qconcatenatetablesproxymodel.cpp.

References QSqlQueryModel::columnCount(), i, m_models, model, and qMin().

Referenced by slotColumnsAboutToBeInserted(), and 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 750 of file qconcatenatetablesproxymodel.cpp.

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

Referenced by slotModelReset(), slotRowsAboutToBeInserted(), and slotRowsAboutToBeRemoved().

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

◆ containsSourceModel()

bool QConcatenateTablesProxyModelPrivate::containsSourceModel ( const QAbstractItemModel * m) const
inline

Definition at line 63 of file qconcatenatetablesproxymodel.cpp.

References findSourceModel(), and m_models.

Referenced by slotModelAboutToBeReset(), and slotModelReset().

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

◆ findSourceModel()

QList< ModelInfo >::const_iterator QConcatenateTablesProxyModelPrivate::findSourceModel ( const QAbstractItemModel * m) const
inline

Definition at line 57 of file qconcatenatetablesproxymodel.cpp.

References m_models.

Referenced by containsSourceModel().

+ 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 345 of file qconcatenatetablesproxymodel.cpp.

References m_models, m_rowCount, QObjectData::parent, Q_ASSERT, and sourceModelForRow().

+ Here is the call graph for this function:

◆ slotColumnsAboutToBeInserted()

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

Definition at line 568 of file qconcatenatetablesproxymodel.cpp.

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

Referenced by QConcatenateTablesProxyModel::addSourceModel().

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

◆ slotColumnsAboutToBeRemoved()

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

Definition at line 599 of file qconcatenatetablesproxymodel.cpp.

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

Referenced by QConcatenateTablesProxyModel::addSourceModel().

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

◆ slotColumnsInserted()

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

Definition at line 585 of file qconcatenatetablesproxymodel.cpp.

References m_columnCount, m_newColumnCount, QObjectData::parent, and Q_UNUSED.

Referenced by QConcatenateTablesProxyModel::addSourceModel().

+ Here is the caller graph for this function:

◆ slotColumnsRemoved()

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

Definition at line 614 of file qconcatenatetablesproxymodel.cpp.

References m_columnCount, m_newColumnCount, QObjectData::parent, and Q_UNUSED.

Referenced by QConcatenateTablesProxyModel::addSourceModel().

+ Here is the caller graph for this function:

◆ slotDataChanged()

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

Definition at line 628 of file qconcatenatetablesproxymodel.cpp.

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

Referenced by QConcatenateTablesProxyModel::addSourceModel().

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

◆ slotModelAboutToBeReset()

void QConcatenateTablesProxyModelPrivate::slotModelAboutToBeReset ( )

Definition at line 688 of file qconcatenatetablesproxymodel.cpp.

References containsSourceModel(), and Q_ASSERT.

Referenced by QConcatenateTablesProxyModel::addSourceModel().

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

◆ slotModelReset()

void QConcatenateTablesProxyModelPrivate::slotModelReset ( )

Definition at line 698 of file qconcatenatetablesproxymodel.cpp.

References calculatedColumnCount(), computeRowsPrior(), containsSourceModel(), m_columnCount, m_rowCount, and Q_ASSERT.

Referenced by QConcatenateTablesProxyModel::addSourceModel().

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

◆ slotRowsAboutToBeInserted()

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

Definition at line 527 of file qconcatenatetablesproxymodel.cpp.

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

Referenced by QConcatenateTablesProxyModel::addSourceModel().

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

◆ slotRowsAboutToBeRemoved()

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

Definition at line 548 of file qconcatenatetablesproxymodel.cpp.

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

Referenced by QConcatenateTablesProxyModel::addSourceModel().

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

◆ slotRowsInserted()

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

Definition at line 538 of file qconcatenatetablesproxymodel.cpp.

References m_rowCount, and QObjectData::parent.

Referenced by QConcatenateTablesProxyModel::addSourceModel().

+ Here is the caller graph for this function:

◆ slotRowsRemoved()

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

Definition at line 559 of file qconcatenatetablesproxymodel.cpp.

References m_rowCount, and QObjectData::parent.

Referenced by QConcatenateTablesProxyModel::addSourceModel().

+ Here is the caller graph for this function:

◆ slotSourceLayoutAboutToBeChanged()

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

Definition at line 647 of file qconcatenatetablesproxymodel.cpp.

References QList< T >::append(), emit, hint(), layoutChangePersistentIndexes, layoutChangeProxyIndexes, Q_ASSERT, QList< T >::reserve(), and QList< T >::size().

Referenced by QConcatenateTablesProxyModel::addSourceModel().

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

◆ slotSourceLayoutChanged()

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

Definition at line 670 of file qconcatenatetablesproxymodel.cpp.

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

Referenced by QConcatenateTablesProxyModel::addSourceModel().

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

◆ sourceModelForRow()

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

Definition at line 761 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 719 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: