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
qqmlfunctionfilter_p.h
Go to the documentation of this file.
1// Copyright (C) 2025 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// Qt-Security score:significant reason:default
4
5#ifndef QQMLFUNCTIONFILTER_P_H
6#define QQMLFUNCTIONFILTER_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
19#include <QList>
20#include <QQmlScriptString>
21#include <QtQmlModels/private/qqmlfilterbase_p.h>
22
23QT_BEGIN_NAMESPACE
24
25class QQmlSortFilterProxyModel;
27
28class Q_QMLMODELS_EXPORT QQmlFunctionFilter : public QQmlFilterBase, public QQmlParserStatus
29{
30 Q_OBJECT
31 Q_INTERFACES(QQmlParserStatus)
32 QML_NAMED_ELEMENT(FunctionFilter)
33 QML_ADDED_IN_VERSION(6, 10)
34
35public:
36 explicit QQmlFunctionFilter(QObject *parent = nullptr);
37 ~QQmlFunctionFilter() override;
38
39 bool filterAcceptsRowInternal(int row, const QModelIndex& sourceIndex, const QQmlSortFilterProxyModel *) const override;
40
41private:
42 void classBegin() override {};
43 void componentComplete() override;
44
45private:
46 Q_DECLARE_PRIVATE(QQmlFunctionFilter)
47};
48
50{
51 Q_DECLARE_PUBLIC (QQmlFunctionFilter)
52
53public:
56};
57
58QT_END_NAMESPACE
59
60#endif // QQMLFUNCTIONFILTER_P_H