Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qquicklabsplatformfolderdialog_p.h
Go to the documentation of this file.
1// Copyright (C) 2017 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
4#ifndef QQUICKLABSPLATFORMFOLDERDIALOG_P_H
5#define QQUICKLABSPLATFORMFOLDERDIALOG_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This folder is not part of the Qt API. It exists purely as an
12// implementation detail. This header folder may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
19#include <QtCore/qurl.h>
20#include <QtQml/qqml.h>
21
23
25{
31 Q_PROPERTY(QFileDialogOptions::FileDialogOptions options READ options WRITE setOptions RESET resetOptions NOTIFY optionsChanged FINAL)
34
35public:
37
38 QUrl folder() const;
39 void setFolder(const QUrl &folder);
40
41 QUrl currentFolder() const;
42 void setCurrentFolder(const QUrl &folder);
43
44 QFileDialogOptions::FileDialogOptions options() const;
45 void setOptions(QFileDialogOptions::FileDialogOptions options);
46 void resetOptions();
47
48 QString acceptLabel() const;
49 void setAcceptLabel(const QString &label);
50 void resetAcceptLabel();
51
52 QString rejectLabel() const;
53 void setRejectLabel(const QString &label);
54 void resetRejectLabel();
55
62
63protected:
64 bool useNativeDialog() const override;
66 void onShow(QPlatformDialogHelper *dialog) override;
67 void accept() override;
68
70 QUrl m_folder;
72};
73
75
76#endif // QQUICKLABSPLATFORMFOLDERDIALOG_P_H
\inmodule QtCore
Definition qobject.h:103
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
The QPlatformDialogHelper class allows for platform-specific customization of dialogs.
void setOptions(QFileDialogOptions::FileDialogOptions options)
void accept() override
\qmlmethod void Qt.labs.platform::Dialog::accept()
QFileDialogOptions::FileDialogOptions options
void onCreate(QPlatformDialogHelper *dialog) override
void onShow(QPlatformDialogHelper *dialog) override
\inmodule QtCore
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
\inmodule QtCore
Definition qurl.h:94
Combined button and popup list for selecting options.
GLuint GLsizei const GLchar * label
[43]
#define QML_NAMED_ELEMENT(NAME)
#define QML_EXTENDED_NAMESPACE(EXTENDED_NAMESPACE)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_SIGNALS
#define explicit
QFileDialog dialog(this)
[1]