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
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
4#ifndef QTRANSPOSEPROXYMODEL_P_H
5#define QTRANSPOSEPROXYMODEL_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 purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
19#include <private/qabstractproxymodel_p.h>
20
22
24{
25 Q_DECLARE_PUBLIC(QTransposeProxyModel)
26 Q_DISABLE_COPY(QTransposeProxyModelPrivate)
27private:
29 QList<QMetaObject::Connection> sourceConnections;
30 QList<QPersistentModelIndex> layoutChangePersistentIndexes;
31 QModelIndexList layoutChangeProxyIndexes;
32 QModelIndex uncheckedMapToSource(const QModelIndex &proxyIndex) const;
33 QModelIndex uncheckedMapFromSource(const QModelIndex &sourceIndex) const;
34 void onLayoutChanged(const QList<QPersistentModelIndex> &parents, QAbstractItemModel::LayoutChangeHint hint);
35 void onLayoutAboutToBeChanged(const QList<QPersistentModelIndex> &parents, QAbstractItemModel::LayoutChangeHint hint);
36 void onDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QList<int> &roles);
37 void onHeaderDataChanged(Qt::Orientation orientation, int first, int last);
38 void onColumnsAboutToBeInserted(const QModelIndex &parent, int first, int last);
39 void onColumnsAboutToBeRemoved(const QModelIndex &parent, int first, int last);
40 void onColumnsAboutToBeMoved(const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destinationParent, int destinationColumn);
41 void onRowsAboutToBeInserted(const QModelIndex &parent, int first, int last);
42 void onRowsAboutToBeRemoved(const QModelIndex &parent, int first, int last);
43 void onRowsAboutToBeMoved(const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destinationParent, int destinationRow);
44};
45
47
48#endif //QTRANSPOSEPROXYMODEL_P_H
LayoutChangeHint
This enum describes the way the model changes layout.
\inmodule QtCore
QObject * parent
Definition qobject.h:73
This proxy transposes the source model.
Combined button and popup list for selecting options.
Orientation
Definition qnamespace.h:98
GLint first
static QT_BEGIN_NAMESPACE QVariant hint(QPlatformIntegration::StyleHint h)