Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qabstractproxymodel_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
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 QABSTRACTPROXYMODEL_P_H
5#define QABSTRACTPROXYMODEL_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 "qabstractproxymodel.h"
20#include "private/qabstractitemmodel_p.h"
21#include "private/qproperty_p.h"
22
24
26
28{
29 Q_DECLARE_PUBLIC(QAbstractProxyModel)
30public:
33 sourceHadZeroRows(false),
34 sourceHadZeroColumns(false)
35 {}
37 {
38 q_func()->setSourceModel(sourceModel);
39 }
41 {
42 Q_EMIT q_func()->sourceModelChanged(QAbstractProxyModel::QPrivateSignal());
43 }
44 QAbstractItemModel *getModelForwarder() const { return q_func()->sourceModel(); }
45
50 virtual void _q_sourceModelDestroyed();
51 void _q_sourceModelRowsAboutToBeInserted(const QModelIndex &parent, int first, int last);
52 void _q_sourceModelRowsInserted(const QModelIndex &parent, int first, int last);
53 void _q_sourceModelRowsRemoved(const QModelIndex &parent, int first, int last);
54 void _q_sourceModelColumnsAboutToBeInserted(const QModelIndex &parent, int first, int last);
55 void _q_sourceModelColumnsInserted(const QModelIndex &parent, int first, int last);
56 void _q_sourceModelColumnsRemoved(const QModelIndex &parent, int first, int last);
57
58 void mapDropCoordinatesToSource(int row, int column, const QModelIndex &parent,
59 int *source_row, int *source_column, QModelIndex *source_parent) const;
60
61 unsigned int sourceHadZeroRows : 1;
62 unsigned int sourceHadZeroColumns : 1;
63};
64
66
67#endif // QABSTRACTPROXYMODEL_P_H
QAbstractItemModel * getModelForwarder() const
void setModelForwarder(QAbstractItemModel *sourceModel)
Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS(QAbstractProxyModelPrivate, QAbstractItemModel *, model, &QAbstractProxyModelPrivate::setModelForwarder, &QAbstractProxyModelPrivate::modelChangedForwarder, &QAbstractProxyModelPrivate::getModelForwarder, nullptr) virtual void _q_sourceModelDestroyed()
The QAbstractProxyModel class provides a base class for proxy item models that can do sorting,...
\inmodule QtCore
Combined button and popup list for selecting options.
GLint first
GLenum GLenum GLsizei void GLsizei void * column
GLenum GLenum GLsizei void * row
#define QT_REQUIRE_CONFIG(feature)
#define Q_EMIT
QSqlQueryModel * model
[16]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent