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
qidentityproxymodel_p.h
Go to the documentation of this file.
1// Copyright (C) 2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com, author Stephen Kelly <stephen.kelly@kdab.com>
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QIDENTITYPROXYMODEL_P_H
5#define QIDENTITYPROXYMODEL_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists for the convenience
12// of QAbstractItemModel*. This header file may change from version
13// to version without notice, or even be removed.
14//
15// We mean it.
16//
17//
18
19#include <QtCore/private/qabstractproxymodel_p.h>
20#include <QtCore/qidentityproxymodel.h>
21
23
25{
26 Q_DECLARE_PUBLIC(QIdentityProxyModel)
27
28public:
32
33 QList<QPersistentModelIndex> layoutChangePersistentIndexes;
35
36 void sourceRowsAboutToBeInserted(const QModelIndex &parent, int start, int end);
37 void sourceRowsInserted(const QModelIndex &parent, int start, int end);
38 void sourceRowsAboutToBeRemoved(const QModelIndex &parent, int start, int end);
39 void sourceRowsRemoved(const QModelIndex &parent, int start, int end);
40 void sourceRowsAboutToBeMoved(const QModelIndex &sourceParent, int sourceStart, int sourceEnd,
41 const QModelIndex &destParent, int dest);
42 void sourceRowsMoved(const QModelIndex &sourceParent, int sourceStart, int sourceEnd,
43 const QModelIndex &destParent, int dest);
44
45 void sourceColumnsAboutToBeInserted(const QModelIndex &parent, int start, int end);
46 void sourceColumnsInserted(const QModelIndex &parent, int start, int end);
47 void sourceColumnsAboutToBeRemoved(const QModelIndex &parent, int start, int end);
48 void sourceColumnsRemoved(const QModelIndex &parent, int start, int end);
49 void sourceColumnsAboutToBeMoved(const QModelIndex &sourceParent, int sourceStart,
50 int sourceEnd, const QModelIndex &destParent, int dest);
51 void sourceColumnsMoved(const QModelIndex &sourceParent, int sourceStart, int sourceEnd,
52 const QModelIndex &destParent, int dest);
53
54 void sourceDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight,
55 const QList<int> &roles);
56 void sourceHeaderDataChanged(Qt::Orientation orientation, int first, int last);
57
58 void sourceLayoutAboutToBeChanged(const QList<QPersistentModelIndex> &sourceParents,
60 void sourceLayoutChanged(const QList<QPersistentModelIndex> &sourceParents,
62 void sourceModelAboutToBeReset();
63 void sourceModelReset();
64
65private:
66 bool m_handleLayoutChanges = true;
67 QVarLengthArray<QMetaObject::Connection, 18> m_sourceModelConnections;
68};
69
71
72#endif // QIDENTITYPROXYMODEL_P_H
LayoutChangeHint
This enum describes the way the model changes layout.
QList< QPersistentModelIndex > layoutChangePersistentIndexes
The QIdentityProxyModel class proxies its source model unmodified.
\inmodule QtCore
Combined button and popup list for selecting options.
Orientation
Definition qnamespace.h:98
GLuint GLuint end
GLuint start
GLint first
static QT_BEGIN_NAMESPACE QVariant hint(QPlatformIntegration::StyleHint h)