summaryrefslogtreecommitdiff
path: root/src/dialogs/qquickplatformfiledialog.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add support for the defaultSuffix property in FileDialogAndy Shaw2017-09-171-0/+14
| | | | | | | | [ChangeLog][FileDialog] Added defaultSuffix property Task-number: QTBUG-39230 Change-Id: I7dc73c332ad62129d7158b6f6f5a614b8582ffbc Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* Only remember the folder for the next time if the dialog is acceptedAndy Shaw2017-02-211-1/+6
| | | | | | | | | | | If the dialog is not accepted then it should not remember the last folder that was used. This should only happen if the user clicks on OK. [ChangeLog][FileDialogs] Remember the folder only when the file dialog is accepted. Change-Id: I69957e56e887affcab9933562274013fee686063 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Merge remote-tracking branch 'origin/5.6' into 5.75.7.1Liang Qi2016-11-121-1/+1
|\ | | | | | | Change-Id: Idef60aa2d7b55600cca618f0f622e8e18e77f3de
| * Make FileDialog remember the folderJ-P Nurmi2016-10-071-1/+1
| | | | | | | | | | | | Task-number: QTBUG-54310 Change-Id: I9beef4d983c5fcea4e969cae5090686dfc1d37c6 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* | Merge remote-tracking branch 'origin/5.6' into 5.7Liang Qi2016-05-101-1/+1
|\ \ | |/ | | | | | | | | | | | | Conflicts: examples/quickcontrols/extras/flat/main.cpp src/controls/Private/qquickcontrolsettings.cpp Change-Id: I9eb9342a2ee994611f3cb18daab6dd89eb924ccc
| * Doc: Rename conflicting groupTopi Reinio2016-04-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | A group name 'dialogs' conflicts with a page elsewhere in the documentation. Renamed to be more specific, and removed the \group command - it's not required for generating annotated lists, and was not linked to. Change-Id: I571702ece13d5eb57a984cec47811b7d58cc0121 Reviewed-by: Shawn Rutledge <shawn.rutledge@theqtcompany.com> Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com>
* | Unify license header usageAntti Kokko2016-02-041-12/+15
|/ | | | | | | Update old header.LGPL3 to header.LGPL Change-Id: I3c851bc24da89f6300b94199387d1adf16ca4f48 Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
* FileDialog: ensure that options are set early enoughShawn Rutledge2015-06-261-0/+1
| | | | | | | | | | A QPlatformFileDialogHelper with null options should never be allowed, otherwise a crash is possible. Task-number: QTBUG-46688 Change-Id: Ibe452876d38c0ca3b1b30560f06f837f7ac860b1 Reviewed-by: Timur Pocheptsov <Timur.Pocheptsov@digia.com> Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@theqtcompany.com>
* doc: document how FileDialog can be used to pick photos on iOSRichard Moe Gustavsen2015-05-071-0/+6
| | | | | Change-Id: If183e73d601b6c0bfcac6213e6118e6859884448 Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
* docs: document the FileDialog shortcuts propertyShawn Rutledge2015-03-181-8/+50
| | | | | | | Also made other minor doc corrections. Change-Id: Ied1bf38ee54d793df675e3e437d5fcd055ac0f15 Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
* Dialogs: override selectedUrls in QQPlatformfiledialogRichard Moe Gustavsen2015-03-181-0/+7
| | | | | | | | | | Rather than checking if a dialog helper is in use in QAbstractFileDialog, we override selectedUrls in QQuickPlatformFileDialog. Otherwise the version in QQuickFileDialog will be called first, which tries to return selectedUrls from the QML version (which might not be in use). Change-Id: If61647078ed2dd535384dcea67767bfc729edfe0 Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
* Dialogs: implement QML backup support for native file dialogRichard Moe Gustavsen2015-03-181-1/+1
| | | | | | | | | | | | | | | | | | | | QtQuickAbstractDialog will fall back to use QML version of a dialog if a dialog helper returns false on show. We will utilize this for file dialogs by letting a platform be selective about when to show a native dialog. A platform can use this to e.g show specific native dialogs for certain dialog configurations, and otherwise return false to signal that the caller should fall back to use the QML/widgets version. This patch will change the class structure to the following: QQAbstractDialog <- QQAbstractFileDialog <- QQFileDialog <- QQPlatformFileDialog and then register QQPlatformFileDialog as the abstract dialog that DefaultFileDialog.qml intantiates. This means that a file dialog will have QML contents ready for backup if the platform file dialog fails. Change-Id: I65d0fb9c49c501501e441873d6b858475fef5522 Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
* Doc: Fix qtdoc warningsCaroline Chao2015-03-061-3/+3
| | | | | | | | | Mostly link errors and missing documentation. And removed useless references to {QtQuick.Controls.Styles} in the doc. Change-Id: Iad211a574c0bd23c84e067e0cbcc18c3e719cde7 Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
* Dialogs: update license headersJ-P Nurmi2015-02-111-16/+19
| | | | | | Change-Id: I1abdce308929507416b5f24b4442d0b978886a46 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com> Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
* Remove unnecessary \inqmlmodule parameterAlejandro Exojo2014-12-081-1/+1
| | | | | Change-Id: I1eb87e2037ecf36b7d313d11bf3215fa70d26b59 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* Dialogs: FileDialog can only be modal on WindowsShawn Rutledge2014-10-301-0/+15
| | | | | | | The autotest has been failing on Windows because of this. Change-Id: I6ec42a256455d7a71a522fa7e75dc44f93b741ea Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* FileDialog: add sidebarVisible property and buttonShawn Rutledge2014-09-041-0/+11
| | | | | | | | | | | | | | | The sidebar takes up too much space on some devices, so now it is possible for the application author to hide it by default. The user can also toggle it with a button similar to that used for the Qt Creator sidebar, and this state is stored as a setting; however if the application sets sidebarVisible: false, that overrides the setting. [ChangeLog][QtQuick.Dialogs] FileDialog: added sidebarVisible property and button Task-number: QTBUG-39231 Change-Id: Ie8b379da02f4b12764732b2c01b79039722778ab Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* FileDialog: add documentation about the use of SettingsShawn Rutledge2014-09-031-0/+22
| | | | | | | | | | Since the introduction of the sidebar, DefaultFileDialog.qml has used Qt.labs.settings to store user-adjustable state. It's important to note that applications should control the location of these settings by setting the name, organization and domain. Change-Id: Ia5dd5ce5d172c345738b48b41e945d834cc143a5 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Update license headers and add new license filesAntti Kokko2014-08-251-19/+11
| | | | | | | | | - Renamed LICENSE.LGPL to LICENSE.LGPLv21 - Added LICENSE.LGPLv3 & LICENSE.GPLv2 - Removed LICENSE.GPL Change-Id: I470909ba0980db33ab551790d619c59a35978590 Reviewed-by: Jani Heikkinen <jani.heikkinen@digia.com>
* Doc: modified wrong default valueNico Vertriest2014-05-081-1/+1
| | | | | | | Task-number: QTBUG-38772 Change-Id: I8e9c0c6e510e264f1bd262961056489c75fddf83 Reviewed-by: Martin Smith <martin.smith@digia.com> Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
* Import QtQuick 2.2J-P Nurmi2014-04-071-1/+1
| | | | | Change-Id: Ifc9719ec6fbbd80b866c01eebc471d0ed121bd16 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Doc: Append handler names to \qmlsignal documentationSze Howe Koh2014-03-181-0/+4
| | | | | Change-Id: I5e06bdf03ba1ba8e5fe7669f690420dc9a039129 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* Doc: Document signals (not handlers) under \qmlsignalSze Howe Koh2014-03-181-2/+2
| | | | | | | Task-number: QTBUG-35846 Change-Id: I358c3427429b669425f0065686da7e202568c84d Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
* move QtQuick.Dialogs from qtdeclarative to qtquickcontrolsShawn Rutledge2014-01-031-0/+314
This will enable using Controls in the QML dialog implementations. For now, Controls are used only as drop-in replacements for the Button, Checkbox, and TextField which were custom implementations in the qtdeclarative module before. Change-Id: Ic79e9e8e5715a72ce51f4c724bfdfd33653300f2 Reviewed-by: Liang Qi <liang.qi@digia.com>