A file dialog implementation based on the labs file dialog. More...
Signals | |
void | closed () |
Is emitted when the dialog has been closed for any reason. | |
![]() | |
void | accepted () |
Emitted when the user select a url (or multiple) | |
void | rejected () |
Emitted when the user cancels without selecting a url. | |
void | titleChanged (const QString &title) |
NOTIFY accessor for FileChooser::title. | |
void | folderUrlChanged (const QUrl &folderUrl) |
NOTIFY accessor for FileChooser::folderUrl. | |
void | typeChanged (ChooserType type) |
NOTIFY accessor for FileChooser::type. | |
void | mimeTypesChanged (const QStringList &mimeTypes) |
NOTIFY accessor for FileChooser::mimeTypes. | |
void | chooserFlagsChanged (ChooserFlags chooserFlags) |
NOTIFY accessor for FileChooser::chooserFlags. | |
void | resultChanged (QVariant result) |
NOTIFY accessor for FileChooser::result. | |
Properties | |
var | msgConfig |
The QtMvvm::MessageConfig to configure the dialog with. More... | |
MessageResult | msgResult |
The QtMvvm::MessageResult to report the result to. More... | |
var | mimeTypes |
A QStringList of mime type names to use as filter. More... | |
![]() | |
QString | title |
The activity title/description of the file chooser. More... | |
QUrl | folderUrl |
The URL of the place to show the dialog from. More... | |
ChooserType | type |
The type of URL to get. More... | |
QStringList | mimeTypes |
A list of acceptable mimetypes. Can contain wildcards. More... | |
ChooserFlags | chooserFlags |
Additional flags to configure the chooser. More... | |
QVariant | result |
The chooser result url(s) the user selected. More... | |
Additional Inherited Members | |
![]() | |
enum | ChooserType { GetContent = 0, OpenDocument = 1, OpenMultipleDocuments = 2, CreateDocument = 3, OpenDocumentTree = 4 } |
The different modes the chooser can return urls for. More... | |
enum | ChooserFlag { OpenableFlag = 0x01, LocalOnlyFlag = 0x02, AlwaysGrantWriteFlag = 0x04, PersistPermissionsFlag = 0x08 } |
Extra flags to configure how to open the URLs. More... | |
![]() | |
void | open () |
Opens the file chooser by sending the show intent. | |
A file dialog implementation based on the labs file dialog.
It is used internally by the DialogPresenter to create a file dialog for the file dialog message type
Definition at line 19 of file FileDialog.qml.
var de::skycoder42::QtMvvm::Quick::FileDialog::mimeTypes |
A QStringList of mime type names to use as filter.
Default: Empty
Can be set as view property in the message config to limit the selectable files to the ones that match the given list of mimetypes. Unlike the android variant, normal file dialogs do not accept wildcard mime types.
Accessors | |
---|---|
MEMBER | mimeTypes |
NOTIFY | mimeTypesChanged() |
Definition at line 62 of file FileDialog.qml.
var de::skycoder42::QtMvvm::Quick::FileDialog::msgConfig |
The QtMvvm::MessageConfig to configure the dialog with.
Default: undefined
Various properties are bound to the config to create the dialogs appearance from it.
Accessors | |
---|---|
MEMBER | msgConfig |
NOTIFY | msgConfigChanged() |
Definition at line 34 of file FileDialog.qml.
MessageResult de::skycoder42::QtMvvm::Quick::FileDialog::msgResult |
The QtMvvm::MessageResult to report the result to.
Default: undefined
The dialogs results are reported back to the core app via this result
Accessors | |
---|---|
MEMBER | msgResult |
NOTIFY | msgResultChanged() |
Definition at line 48 of file FileDialog.qml.