Qt 4.8
Private Functions | Properties | List of all members
QIdentityProxyModelPrivate Class Reference
Inheritance diagram for QIdentityProxyModelPrivate:
QAbstractProxyModelPrivate QAbstractItemModelPrivate QObjectPrivate QObjectData

Private Functions

void _q_sourceColumnsAboutToBeInserted (const QModelIndex &parent, int start, int end)
 
void _q_sourceColumnsAboutToBeMoved (const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destParent, int dest)
 
void _q_sourceColumnsAboutToBeRemoved (const QModelIndex &parent, int start, int end)
 
void _q_sourceColumnsInserted (const QModelIndex &parent, int start, int end)
 
void _q_sourceColumnsMoved (const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destParent, int dest)
 
void _q_sourceColumnsRemoved (const QModelIndex &parent, int start, int end)
 
void _q_sourceDataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight)
 
void _q_sourceHeaderDataChanged (Qt::Orientation orientation, int first, int last)
 
void _q_sourceLayoutAboutToBeChanged ()
 
void _q_sourceLayoutChanged ()
 
void _q_sourceModelAboutToBeReset ()
 
void _q_sourceModelReset ()
 
void _q_sourceRowsAboutToBeInserted (const QModelIndex &parent, int start, int end)
 
void _q_sourceRowsAboutToBeMoved (const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destParent, int dest)
 
void _q_sourceRowsAboutToBeRemoved (const QModelIndex &parent, int start, int end)
 
void _q_sourceRowsInserted (const QModelIndex &parent, int start, int end)
 
void _q_sourceRowsMoved (const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destParent, int dest)
 
void _q_sourceRowsRemoved (const QModelIndex &parent, int start, int end)
 
 QIdentityProxyModelPrivate ()
 

Properties

bool ignoreNextLayoutAboutToBeChanged
 
bool ignoreNextLayoutChanged
 
QList< QPersistentModelIndexlayoutChangePersistentIndexes
 
QModelIndexList proxyIndexes
 

Additional Inherited Members

- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
- Public Functions inherited from QAbstractProxyModelPrivate
virtual void _q_sourceModelDestroyed ()
 
 QAbstractProxyModelPrivate ()
 
- Public Functions inherited from QAbstractItemModelPrivate
bool allowMove (const QModelIndex &srcParent, int srcFirst, int srcLast, const QModelIndex &destinationParent, int destinationChild, Qt::Orientation orientation)
 Returns whether a move operation is valid. More...
 
void columnsAboutToBeInserted (const QModelIndex &parent, int first, int last)
 
void columnsAboutToBeRemoved (const QModelIndex &parent, int first, int last)
 
void columnsInserted (const QModelIndex &parent, int first, int last)
 
void columnsRemoved (const QModelIndex &parent, int first, int last)
 
QModelIndex createIndex (int row, int column, void *data=0) const
 
QModelIndex createIndex (int row, int column, int id) const
 
bool indexValid (const QModelIndex &index) const
 
void invalidatePersistentIndex (const QModelIndex &index)
 
void invalidatePersistentIndexes ()
 
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)
 
void movePersistentIndexes (QVector< QPersistentModelIndexData *> indexes, int change, const QModelIndex &parent, Qt::Orientation orientation)
 Moves persistent indexes indexes by amount change. More...
 
 QAbstractItemModelPrivate ()
 
void removePersistentIndexData (QPersistentModelIndexData *data)
 
void rowsAboutToBeInserted (const QModelIndex &parent, int first, int last)
 
void rowsAboutToBeRemoved (const QModelIndex &parent, int first, int last)
 
void rowsInserted (const QModelIndex &parent, int first, int last)
 
void rowsRemoved (const QModelIndex &parent, int first, int last)
 
- Public Functions inherited from QObjectPrivate
void _q_reregisterTimers (void *pointer)
 
void addConnection (int signal, Connection *c)
 
void cleanConnectionLists ()
 
void connectNotify (const char *signal)
 
void deleteChildren ()
 
void disconnectNotify (const char *signal)
 
bool isSender (const QObject *receiver, const char *signal) const
 
bool isSignalConnected (uint signalIdx) const
 Returns true if the signal with index signal_index from object sender is connected. More...
 
void moveToThread_helper ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
QObjectList receiverList (const char *signal) const
 
QObjectList senderList () const
 
void setParent_helper (QObject *)
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData)
 
int signalIndex (const char *signalName) const
 Returns the signal index used in the internal connectionLists vector. More...
 
virtual ~QObjectPrivate ()
 
- Public Functions inherited from QObjectData
virtual ~QObjectData ()=0
 
- Static Public Functions inherited from QAbstractItemModelPrivate
static const QHash< int, QByteArray > & defaultRoleNames ()
 
static QAbstractItemModelstaticEmptyModel ()
 
static bool variantLessThan (const QVariant &v1, const QVariant &v2)
 This function is used by our Q{Tree,Widget,Table}WidgetModel classes to sort. More...
 
- Static Public Functions inherited from QObjectPrivate
static void clearGuards (QObject *)
 
static QObjectPrivateget (QObject *o)
 
static void resetCurrentSender (QObject *receiver, Sender *currentSender, Sender *previousSender)
 
static SendersetCurrentSender (QObject *receiver, Sender *sender)
 
static void signalSignature (const QMetaMethod &signal, QVarLengthArray< char > *result)
 
- Public Variables inherited from QAbstractProxyModelPrivate
QAbstractItemModelmodel
 
- Public Variables inherited from QAbstractItemModelPrivate
QStack< Changechanges
 
struct QAbstractItemModelPrivate::Persistent persistent
 
QHash< int, QByteArrayroleNames
 
Qt::DropActions supportedDragActions
 
- Public Variables inherited from QObjectPrivate
union {
   QObject *   currentChildBeingDeleted
 
   QAbstractDeclarativeData *   declarativeData
 
}; 
 
quint32 connectedSignals [2]
 
QObjectConnectionListVectorconnectionLists
 
SendercurrentSender
 
QList< QPointer< QObject > > eventFilters
 
ExtraDataextraData
 
QString objectName
 
Connectionsenders
 
QAtomicPointer< QtSharedPointer::ExternalRefCountData > sharedRefcount
 
QThreadDatathreadData
 
void * unused
 
- Public Variables inherited from QObjectData
uint blockSig: 1
 
QObjectList children
 
uint hasGuards: 1
 
uint inEventHandler: 1
 
uint inThreadChangeEvent: 1
 
uint isWidget: 1
 
QMetaObjectmetaObject
 
uint ownObjectName: 1
 
QObjectparent
 
uint pendTimer: 1
 
int postedEvents
 
QObjectq_ptr
 
uint receiveChildEvents: 1
 
uint sendChildEvents: 1
 
uint unused: 22
 
uint wasDeleted: 1
 

Detailed Description

Definition at line 51 of file qidentityproxymodel.cpp.

Constructors and Destructors

◆ QIdentityProxyModelPrivate()

QIdentityProxyModelPrivate::QIdentityProxyModelPrivate ( )
inlineprivate

Definition at line 53 of file qidentityproxymodel.cpp.

Functions

◆ _q_sourceColumnsAboutToBeInserted()

void QIdentityProxyModelPrivate::_q_sourceColumnsAboutToBeInserted ( const QModelIndex parent,
int  start,
int  end 
)
private

Definition at line 415 of file qidentityproxymodel.cpp.

416 {
417  Q_ASSERT(parent.isValid() ? parent.model() == model : true);
419  q->beginInsertColumns(q->mapFromSource(parent), start, end);
420 }
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
#define Q_Q(Class)
Definition: qglobal.h:2483
const QAbstractItemModel * model() const
Returns a pointer to the model containing the item that this index refers to.
bool isValid() const
Returns true if this model index is valid; otherwise returns false.
The QIdentityProxyModel class proxies its source model unmodified.
static const KeyPair *const end

◆ _q_sourceColumnsAboutToBeMoved()

void QIdentityProxyModelPrivate::_q_sourceColumnsAboutToBeMoved ( const QModelIndex sourceParent,
int  sourceStart,
int  sourceEnd,
const QModelIndex destParent,
int  dest 
)
private

Definition at line 422 of file qidentityproxymodel.cpp.

423 {
424  Q_ASSERT(sourceParent.isValid() ? sourceParent.model() == model : true);
425  Q_ASSERT(destParent.isValid() ? destParent.model() == model : true);
427  q->beginMoveColumns(q->mapFromSource(sourceParent), sourceStart, sourceEnd, q->mapFromSource(destParent), dest);
428 }
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
#define Q_Q(Class)
Definition: qglobal.h:2483
const QAbstractItemModel * model() const
Returns a pointer to the model containing the item that this index refers to.
bool isValid() const
Returns true if this model index is valid; otherwise returns false.
The QIdentityProxyModel class proxies its source model unmodified.

◆ _q_sourceColumnsAboutToBeRemoved()

void QIdentityProxyModelPrivate::_q_sourceColumnsAboutToBeRemoved ( const QModelIndex parent,
int  start,
int  end 
)
private

Definition at line 430 of file qidentityproxymodel.cpp.

431 {
432  Q_ASSERT(parent.isValid() ? parent.model() == model : true);
434  q->beginRemoveColumns(q->mapFromSource(parent), start, end);
435 }
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
#define Q_Q(Class)
Definition: qglobal.h:2483
const QAbstractItemModel * model() const
Returns a pointer to the model containing the item that this index refers to.
bool isValid() const
Returns true if this model index is valid; otherwise returns false.
The QIdentityProxyModel class proxies its source model unmodified.
static const KeyPair *const end

◆ _q_sourceColumnsInserted()

void QIdentityProxyModelPrivate::_q_sourceColumnsInserted ( const QModelIndex parent,
int  start,
int  end 
)
private

Definition at line 437 of file qidentityproxymodel.cpp.

438 {
439  Q_ASSERT(parent.isValid() ? parent.model() == model : true);
441  Q_UNUSED(parent)
442  Q_UNUSED(start)
443  Q_UNUSED(end)
444  q->endInsertColumns();
445 }
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
#define Q_Q(Class)
Definition: qglobal.h:2483
const QAbstractItemModel * model() const
Returns a pointer to the model containing the item that this index refers to.
bool isValid() const
Returns true if this model index is valid; otherwise returns false.
The QIdentityProxyModel class proxies its source model unmodified.
static const KeyPair *const end
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
Definition: qglobal.h:1729

◆ _q_sourceColumnsMoved()

void QIdentityProxyModelPrivate::_q_sourceColumnsMoved ( const QModelIndex sourceParent,
int  sourceStart,
int  sourceEnd,
const QModelIndex destParent,
int  dest 
)
private

Definition at line 447 of file qidentityproxymodel.cpp.

448 {
449  Q_ASSERT(sourceParent.isValid() ? sourceParent.model() == model : true);
450  Q_ASSERT(destParent.isValid() ? destParent.model() == model : true);
452  Q_UNUSED(sourceParent)
453  Q_UNUSED(sourceStart)
454  Q_UNUSED(sourceEnd)
455  Q_UNUSED(destParent)
456  Q_UNUSED(dest)
457  q->endMoveColumns();
458 }
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
#define Q_Q(Class)
Definition: qglobal.h:2483
const QAbstractItemModel * model() const
Returns a pointer to the model containing the item that this index refers to.
bool isValid() const
Returns true if this model index is valid; otherwise returns false.
The QIdentityProxyModel class proxies its source model unmodified.
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
Definition: qglobal.h:1729

◆ _q_sourceColumnsRemoved()

void QIdentityProxyModelPrivate::_q_sourceColumnsRemoved ( const QModelIndex parent,
int  start,
int  end 
)
private

Definition at line 460 of file qidentityproxymodel.cpp.

461 {
462  Q_ASSERT(parent.isValid() ? parent.model() == model : true);
464  Q_UNUSED(parent)
465  Q_UNUSED(start)
466  Q_UNUSED(end)
467  q->endRemoveColumns();
468 }
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
#define Q_Q(Class)
Definition: qglobal.h:2483
const QAbstractItemModel * model() const
Returns a pointer to the model containing the item that this index refers to.
bool isValid() const
Returns true if this model index is valid; otherwise returns false.
The QIdentityProxyModel class proxies its source model unmodified.
static const KeyPair *const end
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
Definition: qglobal.h:1729

◆ _q_sourceDataChanged()

void QIdentityProxyModelPrivate::_q_sourceDataChanged ( const QModelIndex topLeft,
const QModelIndex bottomRight 
)
private

Definition at line 470 of file qidentityproxymodel.cpp.

471 {
472  Q_ASSERT(topLeft.isValid() ? topLeft.model() == model : true);
473  Q_ASSERT(bottomRight.isValid() ? bottomRight.model() == model : true);
475  q->dataChanged(q->mapFromSource(topLeft), q->mapFromSource(bottomRight));
476 }
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
#define Q_Q(Class)
Definition: qglobal.h:2483
const QAbstractItemModel * model() const
Returns a pointer to the model containing the item that this index refers to.
bool isValid() const
Returns true if this model index is valid; otherwise returns false.
The QIdentityProxyModel class proxies its source model unmodified.

◆ _q_sourceHeaderDataChanged()

void QIdentityProxyModelPrivate::_q_sourceHeaderDataChanged ( Qt::Orientation  orientation,
int  first,
int  last 
)
private

Definition at line 478 of file qidentityproxymodel.cpp.

479 {
481  q->headerDataChanged(orientation, first, last);
482 }
#define Q_Q(Class)
Definition: qglobal.h:2483
The QIdentityProxyModel class proxies its source model unmodified.

◆ _q_sourceLayoutAboutToBeChanged()

void QIdentityProxyModelPrivate::_q_sourceLayoutAboutToBeChanged ( )
private

Definition at line 484 of file qidentityproxymodel.cpp.

485 {
487  return;
488 
490 
491  foreach(const QPersistentModelIndex &proxyPersistentIndex, q->persistentIndexList()) {
492  proxyIndexes << proxyPersistentIndex;
493  Q_ASSERT(proxyPersistentIndex.isValid());
494  const QPersistentModelIndex srcPersistentIndex = q->mapToSource(proxyPersistentIndex);
495  Q_ASSERT(srcPersistentIndex.isValid());
496  layoutChangePersistentIndexes << srcPersistentIndex;
497  }
498 
499  q->layoutAboutToBeChanged();
500 }
QList< QPersistentModelIndex > layoutChangePersistentIndexes
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
#define Q_Q(Class)
Definition: qglobal.h:2483
The QPersistentModelIndex class is used to locate data in a data model.
The QIdentityProxyModel class proxies its source model unmodified.

◆ _q_sourceLayoutChanged()

void QIdentityProxyModelPrivate::_q_sourceLayoutChanged ( )
private

Definition at line 502 of file qidentityproxymodel.cpp.

503 {
505  return;
506 
508 
509  for (int i = 0; i < proxyIndexes.size(); ++i) {
510  q->changePersistentIndex(proxyIndexes.at(i), q->mapFromSource(layoutChangePersistentIndexes.at(i)));
511  }
512 
515 
516  q->layoutChanged();
517 }
QList< QPersistentModelIndex > layoutChangePersistentIndexes
#define Q_Q(Class)
Definition: qglobal.h:2483
const T & at(int i) const
Returns the item at index position i in the list.
Definition: qlist.h:468
void clear()
Removes all items from the list.
Definition: qlist.h:764
int size() const
Returns the number of items in the list.
Definition: qlist.h:137
The QIdentityProxyModel class proxies its source model unmodified.

◆ _q_sourceModelAboutToBeReset()

void QIdentityProxyModelPrivate::_q_sourceModelAboutToBeReset ( )
private

Definition at line 519 of file qidentityproxymodel.cpp.

520 {
522  q->beginResetModel();
523 }
#define Q_Q(Class)
Definition: qglobal.h:2483
The QIdentityProxyModel class proxies its source model unmodified.

◆ _q_sourceModelReset()

void QIdentityProxyModelPrivate::_q_sourceModelReset ( )
private

Definition at line 525 of file qidentityproxymodel.cpp.

526 {
528  q->endResetModel();
529 }
#define Q_Q(Class)
Definition: qglobal.h:2483
The QIdentityProxyModel class proxies its source model unmodified.

◆ _q_sourceRowsAboutToBeInserted()

void QIdentityProxyModelPrivate::_q_sourceRowsAboutToBeInserted ( const QModelIndex parent,
int  start,
int  end 
)
private

Definition at line 531 of file qidentityproxymodel.cpp.

532 {
533  Q_ASSERT(parent.isValid() ? parent.model() == model : true);
535  q->beginInsertRows(q->mapFromSource(parent), start, end);
536 }
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
#define Q_Q(Class)
Definition: qglobal.h:2483
const QAbstractItemModel * model() const
Returns a pointer to the model containing the item that this index refers to.
bool isValid() const
Returns true if this model index is valid; otherwise returns false.
The QIdentityProxyModel class proxies its source model unmodified.
static const KeyPair *const end

◆ _q_sourceRowsAboutToBeMoved()

void QIdentityProxyModelPrivate::_q_sourceRowsAboutToBeMoved ( const QModelIndex sourceParent,
int  sourceStart,
int  sourceEnd,
const QModelIndex destParent,
int  dest 
)
private

Definition at line 538 of file qidentityproxymodel.cpp.

539 {
540  Q_ASSERT(sourceParent.isValid() ? sourceParent.model() == model : true);
541  Q_ASSERT(destParent.isValid() ? destParent.model() == model : true);
543  q->beginMoveRows(q->mapFromSource(sourceParent), sourceStart, sourceEnd, q->mapFromSource(destParent), dest);
544 }
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
#define Q_Q(Class)
Definition: qglobal.h:2483
const QAbstractItemModel * model() const
Returns a pointer to the model containing the item that this index refers to.
bool isValid() const
Returns true if this model index is valid; otherwise returns false.
The QIdentityProxyModel class proxies its source model unmodified.

◆ _q_sourceRowsAboutToBeRemoved()

void QIdentityProxyModelPrivate::_q_sourceRowsAboutToBeRemoved ( const QModelIndex parent,
int  start,
int  end 
)
private

Definition at line 546 of file qidentityproxymodel.cpp.

547 {
548  Q_ASSERT(parent.isValid() ? parent.model() == model : true);
550  q->beginRemoveRows(q->mapFromSource(parent), start, end);
551 }
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
#define Q_Q(Class)
Definition: qglobal.h:2483
const QAbstractItemModel * model() const
Returns a pointer to the model containing the item that this index refers to.
bool isValid() const
Returns true if this model index is valid; otherwise returns false.
The QIdentityProxyModel class proxies its source model unmodified.
static const KeyPair *const end

◆ _q_sourceRowsInserted()

void QIdentityProxyModelPrivate::_q_sourceRowsInserted ( const QModelIndex parent,
int  start,
int  end 
)
private

Definition at line 553 of file qidentityproxymodel.cpp.

554 {
555  Q_ASSERT(parent.isValid() ? parent.model() == model : true);
557  Q_UNUSED(parent)
558  Q_UNUSED(start)
559  Q_UNUSED(end)
560  q->endInsertRows();
561 }
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
#define Q_Q(Class)
Definition: qglobal.h:2483
const QAbstractItemModel * model() const
Returns a pointer to the model containing the item that this index refers to.
bool isValid() const
Returns true if this model index is valid; otherwise returns false.
The QIdentityProxyModel class proxies its source model unmodified.
static const KeyPair *const end
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
Definition: qglobal.h:1729

◆ _q_sourceRowsMoved()

void QIdentityProxyModelPrivate::_q_sourceRowsMoved ( const QModelIndex sourceParent,
int  sourceStart,
int  sourceEnd,
const QModelIndex destParent,
int  dest 
)
private

Definition at line 563 of file qidentityproxymodel.cpp.

564 {
565  Q_ASSERT(sourceParent.isValid() ? sourceParent.model() == model : true);
566  Q_ASSERT(destParent.isValid() ? destParent.model() == model : true);
568  Q_UNUSED(sourceParent)
569  Q_UNUSED(sourceStart)
570  Q_UNUSED(sourceEnd)
571  Q_UNUSED(destParent)
572  Q_UNUSED(dest)
573  q->endMoveRows();
574 }
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
#define Q_Q(Class)
Definition: qglobal.h:2483
const QAbstractItemModel * model() const
Returns a pointer to the model containing the item that this index refers to.
bool isValid() const
Returns true if this model index is valid; otherwise returns false.
The QIdentityProxyModel class proxies its source model unmodified.
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
Definition: qglobal.h:1729

◆ _q_sourceRowsRemoved()

void QIdentityProxyModelPrivate::_q_sourceRowsRemoved ( const QModelIndex parent,
int  start,
int  end 
)
private

Definition at line 576 of file qidentityproxymodel.cpp.

577 {
578  Q_ASSERT(parent.isValid() ? parent.model() == model : true);
580  Q_UNUSED(parent)
581  Q_UNUSED(start)
582  Q_UNUSED(end)
583  q->endRemoveRows();
584 }
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
#define Q_Q(Class)
Definition: qglobal.h:2483
const QAbstractItemModel * model() const
Returns a pointer to the model containing the item that this index refers to.
bool isValid() const
Returns true if this model index is valid; otherwise returns false.
The QIdentityProxyModel class proxies its source model unmodified.
static const KeyPair *const end
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
Definition: qglobal.h:1729

Properties

◆ ignoreNextLayoutAboutToBeChanged

bool QIdentityProxyModelPrivate::ignoreNextLayoutAboutToBeChanged
private

Definition at line 62 of file qidentityproxymodel.cpp.

◆ ignoreNextLayoutChanged

bool QIdentityProxyModelPrivate::ignoreNextLayoutChanged
private

Definition at line 63 of file qidentityproxymodel.cpp.

◆ layoutChangePersistentIndexes

QList<QPersistentModelIndex> QIdentityProxyModelPrivate::layoutChangePersistentIndexes
private

Definition at line 64 of file qidentityproxymodel.cpp.

◆ proxyIndexes

QModelIndexList QIdentityProxyModelPrivate::proxyIndexes
private

Definition at line 65 of file qidentityproxymodel.cpp.


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