Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
21
QT_BEGIN_NAMESPACE
22
23
class
QQmlSortFilterProxyModel;
24
class
QQmlFunctionSorterPrivate
;
25
26
class
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
33
public
:
34
explicit
QQmlFunctionSorter(QObject *parent =
nullptr
);
35
~QQmlFunctionSorter() override;
36
37
virtual
QPartialOrdering compare(
const
QModelIndex&,
const
QModelIndex&,
const
QQmlSortFilterProxyModel *)
const
override;
38
39
private
:
40
void
classBegin() override {};
41
void
componentComplete() override;
42
43
private
:
44
Q_DECLARE_PRIVATE(QQmlFunctionSorter)
45
};
46
47
class
QQmlFunctionSorterPrivate
:
public
QQmlRoleSorterPrivate
48
{
49
Q_DECLARE_PUBLIC (QQmlFunctionSorter)
50
51
public
:
52
QMetaMethod
m_method
;
53
mutable
QVariant
m_lhsParameterData
;
54
mutable
QVariant
m_rhsParameterData
;
55
};
56
57
QT_END_NAMESPACE
58
59
#
endif
// QQMLFUNCTIONSORTER_P_H
QQmlFunctionSorterPrivate
Definition
qqmlfunctionsorter_p.h:48
QQmlFunctionSorterPrivate::m_lhsParameterData
QVariant m_lhsParameterData
Definition
qqmlfunctionsorter_p.h:53
QQmlFunctionSorterPrivate::m_rhsParameterData
QVariant m_rhsParameterData
Definition
qqmlfunctionsorter_p.h:54
QQmlFunctionSorter
Definition
qqmlfunctionsorter_p.h:27
qtdeclarative
src
qmlmodels
sfpm
sorters
qqmlfunctionsorter_p.h
Generated on
for Qt by
1.18.0