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
qquicktableviewdelegate_p.h
Go to the documentation of this file.
1
// Copyright (C) 2024 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
QQUICKTABLEVIEWDELEGATE_P_H
6
#
define
QQUICKTABLEVIEWDELEGATE_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
<
QtQuick
/
qquickitem
.
h
>
20
#
include
<
QtQuickTemplates2
/
private
/
qtquicktemplates2global_p
.
h
>
21
#
include
<
QtQuickTemplates2
/
private
/
qquickitemdelegate_p
.
h
>
22
23
QT_BEGIN_NAMESPACE
24
25
class
QQuickTableView;
26
class
QQuickTableViewDelegatePrivate
;
27
28
class
Q_QUICKTEMPLATES2_EXPORT
QQuickTableViewDelegate
:
public
QQuickItemDelegate
29
{
30
Q_OBJECT
31
32
// Required properties
33
Q_PROPERTY(QQuickTableView *tableView READ tableView WRITE setTableView NOTIFY tableViewChanged REQUIRED FINAL)
34
Q_PROPERTY(
bool
current READ current WRITE setCurrent NOTIFY currentChanged REQUIRED FINAL)
35
Q_PROPERTY(
bool
selected READ selected WRITE setSelected NOTIFY selectedChanged REQUIRED FINAL)
36
Q_PROPERTY(
bool
editing READ editing WRITE setEditing NOTIFY editingChanged REQUIRED FINAL)
37
38
QML_NAMED_ELEMENT(TableViewDelegate)
39
QML_ADDED_IN_VERSION(6, 9)
40
41
public
:
42
explicit
QQuickTableViewDelegate(QQuickItem *parent =
nullptr
);
43
44
bool
current()
const
;
45
void
setCurrent(
bool
current);
46
47
bool
selected()
const
;
48
void
setSelected(
bool
selected);
49
50
bool
editing()
const
;
51
void
setEditing(
bool
editing);
52
53
QQuickTableView *tableView()
const
;
54
void
setTableView(QQuickTableView *tableView);
55
56
Q_SIGNALS:
57
void
tableViewChanged();
58
void
currentChanged();
59
void
selectedChanged();
60
void
editingChanged();
61
62
protected
:
63
QQuickTableViewDelegate(QQuickTableViewDelegatePrivate &dd, QQuickItem *parent);
64
65
QFont defaultFont()
const
override;
66
void
mousePressEvent(QMouseEvent *event) override;
67
68
private
:
69
Q_DISABLE_COPY(QQuickTableViewDelegate)
70
Q_DECLARE_PRIVATE(QQuickTableViewDelegate)
71
};
72
73
QT_END_NAMESPACE
74
75
#
endif
// QQUICKTABLEVIEWDELEGATE_P_H
QQuickTableViewDelegatePrivate
Definition
qquicktableviewdelegate_p_p.h:24
QQuickTableViewDelegate
Definition
qquicktableviewdelegate_p.h:29
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtdeclarative
src
quicktemplates
qquicktableviewdelegate_p.h
Generated on
for Qt by
1.18.0