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>.
|
Classes | |
struct | ModelInfo |
struct | SourceModelForRowResult |
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 QAbstractItemModel * | staticEmptyModel () |
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 QObjectPrivate * | get (QObject *o) |
static const QObjectPrivate * | get (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) |
Definition at line 12 of file qconcatenatetablesproxymodel.cpp.
QConcatenateTablesProxyModelPrivate::QConcatenateTablesProxyModelPrivate | ( | ) |
Definition at line 77 of file qconcatenatetablesproxymodel.cpp.
int QConcatenateTablesProxyModelPrivate::calculatedColumnCount | ( | ) | const |
Definition at line 707 of file qconcatenatetablesproxymodel.cpp.
Referenced by slotModelReset(), and updateColumnCount().
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().
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().
|
inline |
Definition at line 63 of file qconcatenatetablesproxymodel.cpp.
References findSourceModel(), and m_models.
Referenced by slotModelAboutToBeReset(), and slotModelReset().
|
inline |
Definition at line 57 of file qconcatenatetablesproxymodel.cpp.
References m_models.
Referenced by containsSourceModel().
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().
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().
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().
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().
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().
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().
void QConcatenateTablesProxyModelPrivate::slotModelAboutToBeReset | ( | ) |
Definition at line 688 of file qconcatenatetablesproxymodel.cpp.
References containsSourceModel(), and Q_ASSERT.
Referenced by QConcatenateTablesProxyModel::addSourceModel().
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().
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().
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().
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().
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().
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().
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().
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().
void QConcatenateTablesProxyModelPrivate::updateColumnCount | ( | ) |
Definition at line 719 of file qconcatenatetablesproxymodel.cpp.
References calculatedColumnCount(), and m_columnCount.
QList<QPersistentModelIndex> QConcatenateTablesProxyModelPrivate::layoutChangePersistentIndexes |
Definition at line 73 of file qconcatenatetablesproxymodel.cpp.
Referenced by slotSourceLayoutAboutToBeChanged(), and slotSourceLayoutChanged().
QList<QModelIndex> QConcatenateTablesProxyModelPrivate::layoutChangeProxyIndexes |
Definition at line 74 of file qconcatenatetablesproxymodel.cpp.
Referenced by slotSourceLayoutAboutToBeChanged(), and slotSourceLayoutChanged().
int QConcatenateTablesProxyModelPrivate::m_columnCount |
Definition at line 67 of file qconcatenatetablesproxymodel.cpp.
Referenced by slotColumnsInserted(), slotColumnsRemoved(), slotDataChanged(), slotModelReset(), and updateColumnCount().
Definition at line 55 of file qconcatenatetablesproxymodel.cpp.
Referenced by calculatedColumnCount(), columnCountAfterChange(), computeRowsPrior(), containsSourceModel(), findSourceModel(), mapDropCoordinatesToSource(), and sourceModelForRow().
int QConcatenateTablesProxyModelPrivate::m_newColumnCount |
Definition at line 70 of file qconcatenatetablesproxymodel.cpp.
Referenced by slotColumnsAboutToBeInserted(), slotColumnsAboutToBeRemoved(), slotColumnsInserted(), and slotColumnsRemoved().
int QConcatenateTablesProxyModelPrivate::m_rowCount |
Definition at line 66 of file qconcatenatetablesproxymodel.cpp.
Referenced by mapDropCoordinatesToSource(), slotModelReset(), slotRowsInserted(), and slotRowsRemoved().