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
qqmlfunctionsorter_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 QQMLFUNCTIONSORTER_P_H
6#define QQMLFUNCTIONSORTER_P_H
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 <QtQmlModels/private/qqmlrolesorter_p.h>
19#include <QtQmlModels/private/qqmlsorterbase_p.h>
20
21QT_BEGIN_NAMESPACE
22
23class QQmlSortFilterProxyModel;
25
26class Q_QMLMODELS_EXPORT QQmlFunctionSorter : public QQmlSorterBase, public QQmlParserStatus
27{
28 Q_OBJECT
29 Q_INTERFACES(QQmlParserStatus)
30 QML_NAMED_ELEMENT(FunctionSorter)
31 QML_ADDED_IN_VERSION(6, 10)
32
33public:
34 explicit QQmlFunctionSorter(QObject *parent = nullptr);
35 ~QQmlFunctionSorter() override;
36
37 virtual QPartialOrdering compare(const QModelIndex&, const QModelIndex&, const QQmlSortFilterProxyModel *) const override;
38
39private:
40 void classBegin() override {};
41 void componentComplete() override;
42
43private:
44 Q_DECLARE_PRIVATE(QQmlFunctionSorter)
45};
46
48{
49 Q_DECLARE_PUBLIC (QQmlFunctionSorter)
50
51public:
55};
56
57QT_END_NAMESPACE
58
59#endif // QQMLFUNCTIONSORTER_P_H