Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qtransposeproxymodel_p.h
Go to the documentation of this file.
1// Copyright (C) 2018 Luca Beldi <v.ronin@yahoo.it>
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QTRANSPOSEPROXYMODEL_P_H
6#define QTRANSPOSEPROXYMODEL_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
20#include <private/qabstractproxymodel_p.h>
21
23
25{
26 Q_DECLARE_PUBLIC(QTransposeProxyModel)
28private:
30 QList<QMetaObject::Connection> sourceConnections;
31 QList<QPersistentModelIndex> layoutChangePersistentIndexes;
32 QModelIndexList layoutChangeProxyIndexes;
33 QModelIndex uncheckedMapToSource(const QModelIndex &proxyIndex) const;
34 QModelIndex uncheckedMapFromSource(const QModelIndex &sourceIndex) const;
35 void onLayoutChanged(const QList<QPersistentModelIndex> &parents, QAbstractItemModel::LayoutChangeHint hint);
36 void onLayoutAboutToBeChanged(const QList<QPersistentModelIndex> &parents, QAbstractItemModel::LayoutChangeHint hint);
37 void onDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QList<int> &roles);
38 void onHeaderDataChanged(Qt::Orientation orientation, int first, int last);
39 void onColumnsAboutToBeInserted(const QModelIndex &parent, int first, int last);
40 void onColumnsAboutToBeRemoved(const QModelIndex &parent, int first, int last);
41 void onColumnsAboutToBeMoved(const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destinationParent, int destinationColumn);
42 void onRowsAboutToBeInserted(const QModelIndex &parent, int first, int last);
43 void onRowsAboutToBeRemoved(const QModelIndex &parent, int first, int last);
44 void onRowsAboutToBeMoved(const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destinationParent, int destinationRow);
45};
46
47QT_END_NAMESPACE
48
49#endif //QTRANSPOSEPROXYMODEL_P_H