aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/platform/qquickplatformdialog.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Welcome to 2017J-P Nurmi2017-01-091-1/+1
| | | | | Change-Id: If68cff4efacc7dc5719c8b8e61937e85e9076870 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Fix FileDialog::selectedNameFilter review findingsJ-P Nurmi2016-09-141-0/+6
| | | | | | | | | | | | | | | | FileDialog::nameFilters contains an array of name filter strings that combine the name and extensions. For example: - "Text files (*.txt)" - "HTML files (*.html *.htm)" When dealing with multiple name filters, it is quite clumsy to use a string type of 'selectedNameFilter' which is one of the above full file name filter string values. Make it possible to read/write the index of the selected name filter, and provide the filter's name and extensions separately. Change-Id: Ie416cc4ab3dcde93c10769b6f7ac44915307f194 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Platform: offload widget fallback creation to qwidgetplatform_p.hJ-P Nurmi2016-08-151-32/+2
| | | | | Change-Id: If51b359fa44a539c236e1a070e69451c75e190f7 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* Platform: align logging outputJ-P Nurmi2016-08-151-1/+6
| | | | | Change-Id: I3438e1da864f6d7c710e4770f12aa2596f091a9d Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* Platform dialogs: handle QPlatformTheme::usePlatformNativeDialog()J-P Nurmi2016-08-151-1/+2
| | | | | Change-Id: Iee7c700666d866ac28b8102a17ee86121af1af4e Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* Platform dialogs: respect Qt::AA_DontUseNativeDialogsJ-P Nurmi2016-08-151-1/+1
| | | | | Change-Id: I107d51c9e3a874b92c627735dc88c7d296ec799f Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* Platform dialogs: cleanup creationJ-P Nurmi2016-08-151-1/+47
| | | | | | | | Now that we know the type and whether it should be native, it can be all done in the base class to reduce a lot of code duplication. Change-Id: I7d7d7057fa499df75b72914d2b505bfa0288048d Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* Add QQuickPlatformDialog::useNativeDialog()J-P Nurmi2016-08-151-0/+5
| | | | | Change-Id: Id1699a6045eb9066a80ebdbb3cb5d3a01e58a36f Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* Platform dialogs: pass the dialog type to QQuickPlatformDialog ctorJ-P Nurmi2016-08-151-1/+2
| | | | | Change-Id: I42b5e403e6cb16e607d9ce0d0e9f624b150bec03 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* Platform dialogs: revise the names of the protected helper methodsJ-P Nurmi2016-08-151-4/+4
| | | | | Change-Id: I4b65c7623a34d016243e626146437d2fa20fd93b Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* Platform: add Dialog::done(int) and Dialog::resultJ-P Nurmi2016-08-141-3/+46
| | | | | | | A more generic replacement for MessageDialog.clickedButton. Change-Id: I060f70a48ab258485e3155188e483c4cf24210e0 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* Platform dialogs: apply the optionsJ-P Nurmi2016-08-141-2/+3
| | | | | Change-Id: I6bccfebcbb32dcafeea0814d88f7882857a62a85 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* Platform dialogs: postpone the platform handle creation furtherJ-P Nurmi2016-08-141-2/+0
| | | | | | | | It is no longer necessary to force the creation when accessing the handle, because all places where it is used have a fallback member. Change-Id: I7051b79e12c48aff0065a5a478c9c6c0c3ad2559 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* Platform: create platform dialog instances lazily on demandJ-P Nurmi2016-08-141-19/+22
| | | | | Change-Id: Ie963cb5c082b49205f7b7244ace3b88254ec37c7 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* Doc: fix linking errors in platform dialogsJ-P Nurmi2016-08-131-2/+2
| | | | | Change-Id: I1c90622135d4fc5156aa40b258fd79de72c21331 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* Platform: add missing Dialog::visibleJ-P Nurmi2016-08-131-5/+30
| | | | | | | To be more in line with QtQuick.Dialogs 1.x. Change-Id: Ied68abee9574ff8705c4abfc1940081ab3686a2b Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* Add QQuickPlatformDialogJ-P Nurmi2016-06-201-0/+305
The base class of the upcoming platform dialogs: ColorDialog, FileDialog, FontDialog, and MessageDialog. Change-Id: I2d4918b5d4f8a7f453aa8f314e13540cb2a8e2b5 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>