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
qquickfiledialogimpl_p_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
QQUICKFILEDIALOG_P_P_H
6
#
define
QQUICKFILEDIALOG_P_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
/
qquickcombobox_p
.
h
>
20
#
include
<
QtQuickTemplates2
/
private
/
qquickdialog_p_p
.
h
>
21
#
include
<
QtQuickTemplates2
/
private
/
qquickdialogbuttonbox_p
.
h
>
22
#
include
<
QtQuickTemplates2
/
private
/
qquicklabel_p
.
h
>
23
#
include
<
QtQuickTemplates2
/
private
/
qquicktextfield_p
.
h
>
24
25
#
include
"qquickfiledialogimpl_p.h"
26
27
#
include
<
QtCore
/
qpointer
.
h
>
28
29
QT_BEGIN_NAMESPACE
30
31
class
QQuickFileNameFilter;
32
33
class
Q_QUICKDIALOGS2QUICKIMPL_EXPORT
QQuickFileDialogImplPrivate
:
public
QQuickDialogPrivate
34
{
35
public
:
36
Q_DECLARE_PUBLIC(QQuickFileDialogImpl)
37
38
QQuickFileDialogImplPrivate();
39
40
static
QQuickFileDialogImplPrivate *get(QQuickFileDialogImpl *dialog)
41
{
42
return
dialog->d_func();
43
}
44
45
QQuickFileDialogImplAttached *attachedOrWarn();
46
47
void
setNameFilters(
const
QStringList &filters);
48
49
void
updateEnabled();
50
void
updateSelectedFile(
const
QString &oldFolderPath);
51
void
updateFileNameTextEdit();
52
static
QDir::SortFlags fileListSortFlags();
53
static
QFileInfoList fileList(
const
QDir &dir);
54
void
setFileDialogListViewCurrentIndex(
int
newCurrentIndex);
55
void
tryUpdateFileDialogListViewCurrentIndex(
int
newCurrentIndex);
56
void
fileDialogListViewCountChanged();
57
58
void
handleAccept() override;
59
void
handleClick(QQuickAbstractButton *button) override;
60
void
selectFile();
61
62
QSharedPointer<QFileDialogOptions> options;
63
QUrl currentFolder;
64
QUrl selectedFile;
65
QQuickAbstractButton *lastButtonClicked =
nullptr
;
66
QStringList nameFilters;
67
mutable
QQuickFileNameFilter *selectedNameFilter =
nullptr
;
68
QString acceptLabel;
69
QString rejectLabel;
70
bool
setCurrentIndexToInitiallySelectedFile =
false
;
71
QFileInfoList cachedFileList;
72
int
pendingCurrentIndexToSet = -1;
73
};
74
75
class
QQuickFileDialogImplAttachedPrivate
:
public
QObjectPrivate
76
{
77
void
nameFiltersComboBoxItemActivated(
int
index);
78
void
fileDialogListViewCurrentIndexChanged();
79
void
fileNameEditedByUser();
80
void
fileNameEditingByUserFinished();
81
82
public
:
83
Q_DECLARE_PUBLIC(QQuickFileDialogImplAttached)
84
85
QPointer
<
QQuickDialogButtonBox
>
buttonBox
;
86
QPointer
<
QQuickComboBox
>
nameFiltersComboBox
;
87
QPointer
<
QQuickLabel
>
filterLabel
;
88
QPointer
<
QQuickListView
>
fileDialogListView
;
89
QPointer
<
QQuickFolderBreadcrumbBar
>
breadcrumbBar
;
90
QPointer
<
QQuickLabel
>
fileNameLabel
;
91
QPointer
<
QQuickTextField
>
fileNameTextField
;
92
QPointer
<
QQuickDialog
>
overwriteConfirmationDialog
;
93
QPointer
<
QQuickSideBar
>
sideBar
;
94
};
95
96
QT_END_NAMESPACE
97
98
#
endif
// QQUICKFILEDIALOG_P_P_H
QQuickFileDialogDelegatePrivate
Definition
qquickfiledialogdelegate_p_p.h:73
QQuickFileDialogDelegatePrivate::handleLongPress
void handleLongPress()
Definition
qquickfiledialogdelegate.cpp:179
QQuickFileDialogDelegatePrivate::dialog
QQuickDialog * dialog
Definition
qquickfiledialogdelegate_p_p.h:90
QQuickFileDialogDelegatePrivate::fileDialog
QQuickFileDialogImpl * fileDialog
Definition
qquickfiledialogdelegate_p_p.h:91
QQuickFileDialogDelegatePrivate::destroyTapHandler
void destroyTapHandler()
Definition
qquickfiledialogdelegate.cpp:173
QQuickFileDialogDelegatePrivate::chooseFile
void chooseFile()
Definition
qquickfiledialogdelegate.cpp:48
QQuickFileDialogDelegatePrivate::get
static QQuickFileDialogDelegatePrivate * get(QQuickFileDialogDelegate *delegate)
Definition
qquickfiledialogdelegate_p_p.h:77
QQuickFileDialogDelegatePrivate::initTapHandler
void initTapHandler()
Definition
qquickfiledialogdelegate.cpp:162
QQuickFileDialogDelegatePrivate::highlightFile
void highlightFile()
Definition
qquickfiledialogdelegate.cpp:25
QQuickFileDialogDelegatePrivate::folderDialog
QQuickFolderDialogImpl * folderDialog
Definition
qquickfiledialogdelegate_p_p.h:92
QQuickFileDialogDelegatePrivate::acceptKeyClick
bool acceptKeyClick(Qt::Key key) const override
Definition
qquickfiledialogdelegate.cpp:75
QQuickFileDialogDelegatePrivate::file
QUrl file
Definition
qquickfiledialogdelegate_p_p.h:94
QQuickFileDialogDelegatePrivate::tapHandler
QQuickFileDialogTapHandler * tapHandler
Definition
qquickfiledialogdelegate_p_p.h:93
QQuickFileDialogDelegate
Definition
qquickfiledialogdelegate_p.h:29
QQuickFileDialogImplAttachedPrivate
Definition
qquickfiledialogimpl_p_p.h:76
QQuickFileDialogImplAttachedPrivate::fileNameLabel
QPointer< QQuickLabel > fileNameLabel
Definition
qquickfiledialogimpl_p_p.h:90
QQuickFileDialogImplAttachedPrivate::fileNameTextField
QPointer< QQuickTextField > fileNameTextField
Definition
qquickfiledialogimpl_p_p.h:91
QQuickFileDialogImplAttachedPrivate::filterLabel
QPointer< QQuickLabel > filterLabel
Definition
qquickfiledialogimpl_p_p.h:87
QQuickFileDialogImplAttachedPrivate::overwriteConfirmationDialog
QPointer< QQuickDialog > overwriteConfirmationDialog
Definition
qquickfiledialogimpl_p_p.h:92
QQuickFileDialogImplAttachedPrivate::sideBar
QPointer< QQuickSideBar > sideBar
Definition
qquickfiledialogimpl_p_p.h:93
QQuickFileDialogImplAttachedPrivate::fileDialogListView
QPointer< QQuickListView > fileDialogListView
Definition
qquickfiledialogimpl_p_p.h:88
QQuickFileDialogImplAttachedPrivate::breadcrumbBar
QPointer< QQuickFolderBreadcrumbBar > breadcrumbBar
Definition
qquickfiledialogimpl_p_p.h:89
QQuickFileDialogImplAttachedPrivate::nameFiltersComboBox
QPointer< QQuickComboBox > nameFiltersComboBox
Definition
qquickfiledialogimpl_p_p.h:86
QQuickFileDialogImplAttached
Definition
qquickfiledialogimpl_p.h:108
QQuickFileDialogImplPrivate
Definition
qquickfiledialogimpl_p_p.h:34
QQuickFileDialogImpl
Definition
qquickfiledialogimpl_p.h:39
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::state
State state()
Definition
qquickfiledialogdelegate_p_p.h:46
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::State
State
Definition
qquickfiledialogdelegate_p_p.h:38
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
qquickfiledialogimpl_p_p.h
Generated on
for Qt by
1.18.0