aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/platform/qquickplatformmessagedialog.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>
* Platform dialogs: cleanup creationJ-P Nurmi2016-08-151-20/+1
| | | | | | | | 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-1/+3
| | | | | 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-3/+3
| | | | | Change-Id: I4b65c7623a34d016243e626146437d2fa20fd93b Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* Platform: add Dialog::done(int) and Dialog::resultJ-P Nurmi2016-08-141-30/+4
| | | | | | | 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-1/+3
| | | | | Change-Id: I6bccfebcbb32dcafeea0814d88f7882857a62a85 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* Platform: create platform dialog instances lazily on demandJ-P Nurmi2016-08-141-12/+16
| | | | | Change-Id: Ie963cb5c082b49205f7b7244ace3b88254ec37c7 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* Platform: add MessageDialog.clickedButtonJ-P Nurmi2016-08-131-3/+22
| | | | | | | To be more in line with QtQuick.Dialogs 1.x. Change-Id: Ic512222a88a376ebc142563dceccbbb1c3b98a75 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* Platform.MessageDialog: add button-specific clicked signalsJ-P Nurmi2016-08-131-0/+131
| | | | | | | | This is similar to what MessageDialog from QtQuick Dialogs 1.x does, and evidently very convenient and intuitive to use. Change-Id: I8f7e0f98cfbc256e0dd398471b63ecf04d884314 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* Platform: add logging categories to help with debuggingJ-P Nurmi2016-08-131-0/+5
| | | | | | | | | | | | | | | | | | | | | | | Available categories: - qt.labs.platform.dialogs - qt.labs.platform.menus - qt.labs.platform.tray The output shows which implementation is used. Example: $ QT_LOGGING_RULES=qt.labs.platform.*=true ./texteditor qt.labs.platform.menus: MenuBar: QCocoaMenuBar(0x7fe27bdf7730) qt.labs.platform.menus: Menu: QPlatformMenu(0x7fe27bdf8450) qt.labs.platform.menus: Menu: QPlatformMenu(0x7fe27bdfa510) qt.labs.platform.menus: Menu: QPlatformMenu(0x7fe27e500000) qt.labs.platform.dialogs: FileDialog: QPlatformFileDialogHelper(0x7fe27e500f30) qt.labs.platform.dialogs: FileDialog: QPlatformFileDialogHelper(0x7fe27e501ac0) qt.labs.platform.dialogs: ColorDialog: QPlatformColorDialogHelper(0x7fe27e502920) qt.labs.platform.dialogs: MessageDialog: QWidgetPlatformMessageDialog(0x7fe27e523b40) qt.labs.platform.menus: Menu: QPlatformMenu(0x7fe27bcd9c30) Change-Id: I07fc8b13f05f365337bc171149bb848639b3fbd0 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* Platform.MessageDialog: fix accepted and rejected signalsJ-P Nurmi2016-08-131-2/+14
| | | | | | | | The clicked signal from the platform dialog cannot be wired to the close slot. We must check the role and act accordingly. Change-Id: I2cb9e106814f9b901d76dd79ff8eeeafe98d4d46 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* Platform dialogs: set the options on constructionJ-P Nurmi2016-06-271-2/+1
| | | | | | | | | | | | Platform dialogs hold a shared pointer to an options structure. Dialog implementations may access the options in various places (eg. QGtk3FileDialogHelper::selectFile()) and seem to rely that the options are not null at this point. Thus, pass the options pointer right away on construction instead of unnecessarily delaying to applyOptions(), to avoid potential crashes. Change-Id: I14b0801eb58a9834867dd302a6610e64adeea0cd Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Platform: add MessageDialogJ-P Nurmi2016-06-221-0/+253
Change-Id: I89f67fa4f620dc81dd9e7fe848f37ea5c12d5db7 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>