From db2c0781218b7dfa03f7bc39b1e2115dbf4a0fb0 Mon Sep 17 00:00:00 2001 From: Pierre Rossi Date: Mon, 16 Dec 2013 20:48:08 +0100 Subject: Qt Quick File Picker Change-Id: I6195c49f1647c78b16d9d47770ab37ba998a61a5 Reviewed-by: Jocelyn Turcotte --- src/webengine/ui_delegates_manager.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/webengine/ui_delegates_manager.h') diff --git a/src/webengine/ui_delegates_manager.h b/src/webengine/ui_delegates_manager.h index eeece895c..a6d15a530 100644 --- a/src/webengine/ui_delegates_manager.h +++ b/src/webengine/ui_delegates_manager.h @@ -44,6 +44,7 @@ #include "qglobal.h" #include "web_contents_adapter.h" +#include "web_contents_adapter_client.h" #include #include @@ -58,7 +59,8 @@ F(MenuSeparator, menuSeparator) SEPARATOR \ F(AlertDialog, alertDialog) SEPARATOR \ F(ConfirmDialog, confirmDialog) SEPARATOR \ - F(PromptDialog, promptDialog) SEPARATOR + F(PromptDialog, promptDialog) SEPARATOR \ + F(FilePicker, filePicker) SEPARATOR #define COMMA_SEPARATOR , #define SEMICOLON_SEPARATOR ; @@ -123,6 +125,8 @@ public: QObject *addMenu(QObject *parentMenu, const QString &title, const QPoint &pos = QPoint()); QQmlContext *creationContextForComponent(QQmlComponent *); void showDialog(QSharedPointer); + void showFilePicker(WebContentsAdapterClient::FileChooserMode, const QString &defaultFileName, const QStringList &acceptedMimeTypes + , const QExplicitlySharedDataPointer &); private: bool ensureComponentLoaded(ComponentType); -- cgit v1.2.3