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
4#ifndef QQMLFUNCTIONFILTER_P_H
5#define QQMLFUNCTIONFILTER_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
18#include <QList>
19#include <QQmlScriptString>
20#include <QtQmlModels/private/qqmlfilterbase_p.h>
21
22QT_BEGIN_NAMESPACE
23
24class QQmlSortFilterProxyModel;
26
27class Q_QMLMODELS_EXPORT QQmlFunctionFilter : public QQmlFilterBase, public QQmlParserStatus
28{
29 Q_OBJECT
30 Q_INTERFACES(QQmlParserStatus)
31 QML_NAMED_ELEMENT(FunctionFilter)
32 QML_ADDED_IN_VERSION(6, 10)
33
34public:
35 explicit QQmlFunctionFilter(QObject *parent = nullptr);
36 ~QQmlFunctionFilter() override;
37
38 bool filterAcceptsRowInternal(int row, const QModelIndex& sourceIndex, const QQmlSortFilterProxyModel *) const override;
39
40private:
41 void classBegin() override {};
42 void componentComplete() override;
43
44private:
45 Q_DECLARE_PRIVATE(QQmlFunctionFilter)
46};
47
49{
50 Q_DECLARE_PUBLIC (QQmlFunctionFilter)
51
52public:
55};
56
57QT_END_NAMESPACE
58
59#endif // QQMLFUNCTIONFILTER_P_H