6#include <QtCore/qfileinfo.h>
7#include <QtGui/qpa/qplatformtheme.h>
8#include <QtQml/QQmlFile>
9#include <QtQml/qqmlexpression.h>
10#include <QtQuick/private/qquicklistview_p.h>
11#include <QtQuickTemplates2/private/qquickitemdelegate_p_p.h>
38 qmlAttachedPropertiesObject<QQuickListView>(
q));
46 bool converted =
false;
47 const int index =
q->property(
"index").toInt(&converted);
60 if (fileInfo.
isDir()) {
106 d->fileDialog = qobject_cast<QQuickFileDialogImpl*>(
dialog);
107 d->folderDialog = qobject_cast<QQuickFolderDialogImpl*>(
dialog);
125 if (driveColonIndex == 2) {
130 if (adjustedFile ==
d->file)
133 d->file = adjustedFile;
152#include "moc_qquickfiledialogdelegate_p.cpp"
\inmodule QtCore \reentrant
bool isDir() const
Returns true if this object points to a directory or to a symbolic link to a directory.
The QKeyEvent class describes a key event.
static QMetaObject::Connection connect(const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
The QQmlContext class defines a context within a QML engine.
static QString urlToLocalFileOrQrc(const QString &)
If url is a local file returns a path suitable for passing to QFile.
void setFocusPolicy(Qt::FocusPolicy policy)
virtual void accept()
\qmlmethod void QtQuick.Controls::Dialog::accept()
QQuickFileDialogImpl * fileDialog
QQuickFolderDialogImpl * folderDialog
bool acceptKeyClick(Qt::Key key) const override
void setFile(const QUrl &file)
void setDialog(QQuickDialog *dialog)
void keyReleaseEvent(QKeyEvent *event) override
This event handler can be reimplemented in a subclass to receive key release events for an item.
QQuickFileDialogDelegate(QQuickItem *parent=nullptr)
void setSelectedFile(const QUrl &file)
void setCurrentFolder(const QUrl ¤tFolder, SetReason setReason=SetReason::External)
void setSelectedFolder(const QUrl &selectedFolder)
void setCurrentFolder(const QUrl &folder)
void setCurrentIndex(int idx)
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
virtual void keyReleaseEvent(QKeyEvent *event)
This event handler can be reimplemented in a subclass to receive key release events for an item.
\macro QT_RESTRICTED_CAST_FROM_ASCII
QString & replace(qsizetype i, qsizetype len, QChar after)
static QString static QString qsizetype indexOf(QChar c, qsizetype from=0, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
void setPath(const QString &path, ParsingMode mode=DecodedMode)
Sets the path of the URL to path.
QString path(ComponentFormattingOptions options=FullyDecoded) const
Returns the path of the URL.
Combined button and popup list for selecting options.
DBusConnection * connection
GLdouble GLdouble GLdouble GLdouble q
GLsizei const GLchar *const * path
QQmlContext * qmlContext(const QObject *obj)
myObject disconnect()
[26]
QFileDialog dialog(this)
[1]
\inmodule QtCore \reentrant
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent