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
qquickfiledialogdelegate_p.h
Go to the documentation of this file.
1
// Copyright (C) 2021 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
QQUICKFILEDIALOGDELEGATE_P_H
6
#
define
QQUICKFILEDIALOGDELEGATE_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
<
QtQuickTemplates2
/
private
/
qquickitemdelegate_p
.
h
>
20
21
#
include
"qtquickdialogs2quickimplglobal_p.h"
22
23
QT_BEGIN_NAMESPACE
24
25
class
QQuickDialog;
26
class
QQuickFileDialogDelegatePrivate
;
27
28
class
Q_QUICKDIALOGS2QUICKIMPL_EXPORT
QQuickFileDialogDelegate
:
public
QQuickItemDelegate
29
{
30
Q_OBJECT
31
Q_PROPERTY(QQuickDialog *dialog READ dialog WRITE setDialog NOTIFY dialogChanged)
32
Q_PROPERTY(QUrl file READ file WRITE setFile NOTIFY fileChanged)
33
QML_NAMED_ELEMENT(FileDialogDelegate)
34
QML_ADDED_IN_VERSION(6, 2)
35
36
public
:
37
explicit
QQuickFileDialogDelegate(QQuickItem *parent =
nullptr
);
38
39
QQuickDialog *dialog()
const
;
40
void
setDialog(QQuickDialog *dialog);
41
42
QUrl file()
const
;
43
void
setFile(
const
QUrl &file);
44
45
Q_SIGNALS:
46
void
dialogChanged();
47
void
fileChanged();
48
49
protected
:
50
void
keyReleaseEvent(QKeyEvent *event) override;
51
52
private
:
53
Q_DISABLE_COPY(QQuickFileDialogDelegate)
54
Q_DECLARE_PRIVATE(QQuickFileDialogDelegate)
55
};
56
57
QT_END_NAMESPACE
58
59
#
endif
// QQUICKFILEDIALOGDELEGATE_P_H
QQuickFileDialogDelegatePrivate
Definition
qquickfiledialogdelegate_p_p.h:73
QQuickFileDialogDelegatePrivate::handleLongPress
void handleLongPress()
Definition
qquickfiledialogdelegate.cpp:179
QQuickFileDialogDelegatePrivate::destroyTapHandler
void destroyTapHandler()
Definition
qquickfiledialogdelegate.cpp:173
QQuickFileDialogDelegatePrivate::chooseFile
void chooseFile()
Definition
qquickfiledialogdelegate.cpp:48
QQuickFileDialogDelegatePrivate::initTapHandler
void initTapHandler()
Definition
qquickfiledialogdelegate.cpp:162
QQuickFileDialogDelegatePrivate::highlightFile
void highlightFile()
Definition
qquickfiledialogdelegate.cpp:25
QQuickFileDialogDelegatePrivate::acceptKeyClick
bool acceptKeyClick(Qt::Key key) const override
Definition
qquickfiledialogdelegate.cpp:75
QQuickFileDialogDelegatePrivate::tapHandler
QQuickFileDialogTapHandler * tapHandler
Definition
qquickfiledialogdelegate_p_p.h:93
QQuickFileDialogDelegate
Definition
qquickfiledialogdelegate_p.h:29
QQuickFileDialogTapHandler
Definition
qquickfiledialogdelegate_p_p.h:32
QQuickFileDialogTapHandler::getFolderUrlAtPress
QUrl getFolderUrlAtPress() const
Definition
qquickfiledialogdelegate.cpp:249
QQuickFileDialogTapHandler::handleEventPoint
void handleEventPoint(QPointerEvent *event, QEventPoint &point) override
Definition
qquickfiledialogdelegate.cpp:351
QQuickFileDialogTapHandler::handleContainsDragChanged
void handleContainsDragChanged()
Definition
qquickfiledialogdelegate.cpp:313
QQuickFileDialogTapHandler::grabFolder
void grabFolder()
Definition
qquickfiledialogdelegate.cpp:210
QQuickFileDialogTapHandler::handleDrag
void handleDrag(QQuickDragEvent *event)
Definition
qquickfiledialogdelegate.cpp:255
QQuickFileDialogTapHandler::getFileDialogImpl
QQuickFileDialogImpl * getFileDialogImpl() const
Definition
qquickfiledialogdelegate.cpp:203
QQuickFileDialogTapHandler::wantsEventPoint
bool wantsEventPoint(const QPointerEvent *event, const QEventPoint &point) override
Returns true if the given point (as part of event) could be relevant at all to this handler,...
Definition
qquickfiledialogdelegate.cpp:426
QQuickFileDialogTapHandler::DraggingStarted
@ DraggingStarted
Definition
qquickfiledialogdelegate_p_p.h:41
QQuickFileDialogTapHandler::Tracking
@ Tracking
Definition
qquickfiledialogdelegate_p_p.h:40
QQuickFileDialogTapHandler::Listening
@ Listening
Definition
qquickfiledialogdelegate_p_p.h:39
QQuickFileDialogTapHandler::Dragging
@ Dragging
Definition
qquickfiledialogdelegate_p_p.h:42
QQuickFileDialogTapHandler::DraggingFinished
@ DraggingFinished
Definition
qquickfiledialogdelegate_p_p.h:43
QQuickFileDialogTapHandler::handleDrop
void handleDrop(QQuickDragEvent *event)
Definition
qquickfiledialogdelegate.cpp:290
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtdeclarative
src
quickdialogs
quickdialogsquickimpl
qquickfiledialogdelegate_p.h
Generated on
for Qt by
1.18.0