QtMvvm  1.1.0
A mvvm oriented library for Qt, to create Projects for Widgets and Quick in parallel
Signals | Properties | List of all members
de::skycoder42::QtMvvm::Quick::FileDialog Class Reference

A file dialog implementation based on the labs file dialog. More...

+ Inheritance diagram for de::skycoder42::QtMvvm::Quick::FileDialog:

Signals

void closed ()
 Is emitted when the dialog has been closed for any reason.
 
- Signals inherited from de::skycoder42::QtMvvm::Quick::FileChooser
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...
 
- Properties inherited from de::skycoder42::QtMvvm::Quick::FileChooser
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

- Public Types inherited from de::skycoder42::QtMvvm::Quick::FileChooser
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...
 
- Public Member Functions inherited from de::skycoder42::QtMvvm::Quick::FileChooser
void open ()
 Opens the file chooser by sending the show intent.
 

Detailed Description

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

Note
On Android, the dialog extends the FileChooser. For all other platforms, it extends the Qt labs FileDialog - an experimental module, and thus might not always function perfectly or break after Qt updates

Definition at line 19 of file FileDialog.qml.

Property Documentation

◆ mimeTypes

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
MEMBERmimeTypes
NOTIFYmimeTypesChanged()

Definition at line 62 of file FileDialog.qml.

◆ msgConfig

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
MEMBERmsgConfig
NOTIFYmsgConfigChanged()
See also
QtMvvm::MessageConfig

Definition at line 34 of file FileDialog.qml.

◆ msgResult

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
MEMBERmsgResult
NOTIFYmsgResultChanged()
See also
QtMvvm::MessageResult

Definition at line 48 of file FileDialog.qml.


The documentation for this class was generated from the following file: