summaryrefslogtreecommitdiff
path: root/examples/quick/dialogs
Commit message (Collapse)AuthorAgeFilesLines
* fix example installsOswald Buddenhagen2016-04-2812-1364/+0
| | | | | | | this includes renaming the first-level subdir of examples/. Change-Id: Idf14164533c247e5c0cc5acdb405ac97f7c33ac5 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* Make examples return -1 on load failures.Friedemann Kleint2015-08-251-0/+2
| | | | | | | | Avoid hanging processes and empty windows in case some module is not installed. Change-Id: Ib220a6251076fd1fdbd126524a723d5c3f94bfb9 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>
* FileDialog: expose several QStandardPaths in the shortcuts propertyShawn Rutledge2015-03-181-11/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | QStandardPaths::PicturesLocation is a specialized kind of file URL on iOS; if this folder is set, then when the dialog is opened, it will be the new dialog helper which uses the native picture gallery picker interface. This will always work, so we do not need to check whether the path exists. The application developer needs to have a way to get that platform-specific (and odd-looking) URL by name, so the FileDialog.shortcuts property is now public API: a map from programmatic names (similar to those in QStandardPaths) to URLs. But DefaultFileDialog.qml should not display the names from this map, because they are not translated to the user's language. So __shortcuts is added as a private property providing a map from programmatic name to an object containing the translated name and the URL. This makes possible setting FileDialog { folder: shortcuts.pictures } which will open the special image gallery browser on iOS; and several other paths from QStandardPaths can be set in the same way. [ChangeLog][QtQuick.Dialogs] added FileDialog.shortcuts to enable setting the starting folder to a standard system path. Setting folder to shortcuts.pictures will result in a special image gallery dialog on iOS. Change-Id: I14f04712eb4f44ff422ac91a8720b9e3ff8fb920 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@theqtcompany.com>
* Update BSD license headersJ-P Nurmi2015-02-137-21/+21
| | | | | Change-Id: Ia95c64b333416568fe6a88607d802fe7239dba35 Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com>
* Examples: update license headersJ-P Nurmi2015-02-117-35/+35
| | | | | Change-Id: I41096c464db4e1513db1d4ffe7311be3c902d973 Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com>
* Docs: update license headersJ-P Nurmi2015-02-111-6/+7
| | | | | | Change-Id: I2c181d880e88c16a169c87b9260423db093d9ce8 Reviewed-by: Topi Reiniö <topi.reinio@digia.com> Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com>
* QtQuick.Dialogs examples: use controls and layouts; visual tweaksShawn Rutledge2014-10-236-284/+301
| | | | | | | | | | | | | | | Make tab and button labels shorter so that they fit even on very-small- screen devices (like iOS). Make the content of some tabs scrollable. Background color of the Font tab matches the others. Use RowLayout to make baseline alignment of checkboxes and associated text fields possible. Use ColumnLayout because it works better inside a ScrollView. Use Label instead of Text so that the renderType is consistent. Change-Id: Ie2d07153532f35d108a0b6ad0bb4f10326f79d24 Task-number: QTBUG-41999 Reviewed-by: Jan Arve Sæther <jan-arve.saether@theqtcompany.com>
* CustomDialogs example: add Apply, Reset and Restore Defaults buttonsShawn Rutledge2014-10-221-0/+18
| | | | | | | A custom dialog might have a use for these. Change-Id: Ibef05dd63d65476e1225477d2e7ed9d24fbba9ed Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* Dialog examples: handle keys for accept, and more feedbackShawn Rutledge2014-10-201-0/+6
| | | | | | | | All dialogs populate the label showing how they were accepted or rejected. Change-Id: I0bad4af0864bdf24e56c18aeecd8ca8f6536b6b0 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Custom filled dialog example: handle back button to closeShawn Rutledge2014-10-131-2/+3
| | | | | | | | | | On Android, it should prefer to close the dialog rather than get stuck or exit the application. (It was already possible to close the dialog by tapping outside, though.) The back button can also be used on other platforms which have them (e.g. multimedia keyboards on desktop). Change-Id: I19d2ad62ff370fa467d80d51d73cb95fd5830bed Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* FileDialog: add sidebarVisible property and buttonShawn Rutledge2014-09-041-0/+7
| | | | | | | | | | | | | | | 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>
* Merge remote-tracking branch 'origin/5.3' into 5.4Frederik Gladhorn2014-08-281-1/+23
|\ | | | | | | Change-Id: I4aa5c960a03616d95f9e1d10b4c8ba222997a24d
| * Dialogs: buttonless fully-filled dialog exampleShawn Rutledge2014-08-241-1/+23
| | | | | | | | | | | | | | | | | | | | The default property "contentItem" is normally the parent of the added content, but you can set the content directly into the property to avoid having any buttons or margins. Task-number: QTBUG-38056 Change-Id: Ie0e96969b3e35f079b29a9f3f57eaaf16236d4c1 Reviewed-by: Liang Qi <liang.qi@digia.com>
* | Migrate to QSurfaceFormat::setDefaultFormat()Laszlo Agocs2014-08-081-2/+2
| | | | | | | | | | | | | | | | setDefaultFormat() is being moved form QQuickWindow to QSurfaceFormat. Change-Id: Id76c2c332c837e2e988a2e8f4da2975065938e32 Reviewed-by: J-P Nurmi <jpnurmi@digia.com> Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
* | Merge remote-tracking branch 'origin/5.3' into devJ-P Nurmi2014-07-191-1/+1
|\ \ | |/ | | | | Change-Id: Icc15fe685e94dd043979b6b9c6a624f18f2d1e4c
| * Centralize determination of "no desktop" configurationsJ-P Nurmi2014-07-181-1/+1
| | | | | | | | | | | | Change-Id: I030012f48668db4f01737ef92fdb7e6e0426e025 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Liang Qi <liang.qi@digia.com>
* | Merge remote-tracking branch 'origin/5.3' into devJ-P Nurmi2014-07-171-1/+1
|\ \ | |/ | | | | | | | | | | Conflicts: src/controls/Styles/Base/MenuStyle.qml Change-Id: I95c8b4f348260b958f158ae28c0984d54af973a8
| * Dialog: Add missing docsShawn Rutledge2014-07-091-1/+1
| | | | | | | | | | | | | | Also fixed a qWarning and updated example import statement. Change-Id: I873b52e297bbefe66c6c131573804eee98c40a2f Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* | Merge remote-tracking branch 'origin/5.3' into devJ-P Nurmi2014-06-251-1/+1
|\ \ | |/ | | | | | | | | | | | | Conflicts: .qmake.conf src/controls/Styles/Desktop/SpinBoxStyle.qml Change-Id: Ia501c1388a2af9f273ec2742abbfc766717ad9e6
| * Cleanup whitespaceJ-P Nurmi2014-06-241-1/+1
| | | | | | | | | | Change-Id: I9e84ce56e853a18205aa180cef1ee8ff4f2f678c Reviewed-by: Caroline Chao <caroline.chao@digia.com>
| * Remove QtWidgets dependency for WinRTJ-P Nurmi2014-06-241-1/+1
| | | | | | | | | | Change-Id: Ifacceae8690d2ab4dfaed0d5439b9e29804c1943 Reviewed-by: Andrew Knight <andrew.knight@digia.com>
| * Remove Widgets dependency for QNXAndreas Holzammer2014-06-241-1/+1
| | | | | | | | | | | | | | | | | | Changes.txt says that with Qt 5.2.0 dependency for Widgets have been removed for touch based platforms. But QNX is also a touch based platform and its missing. Change-Id: I140842d4501422537175ac5acb07beebe994f0eb Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* | Merge remote-tracking branch 'origin/stable' into devFrederik Gladhorn2014-04-116-9/+9
|\ \ | |/ | | | | | | | | | | Conflicts: src/controls/ApplicationWindow.qml Change-Id: I2ab8efb4e04006724410da0f6ed03bd2672c5eb6
| * Bump QtQuick.Controls import version to 1.2J-P Nurmi2014-04-075-5/+5
| | | | | | | | | | Change-Id: Idc0b93cbfc2fe23e8be3bcaece672d06555a81f6 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
| * Import QtQuick 2.2J-P Nurmi2014-04-074-4/+4
| | | | | | | | | | Change-Id: Ifc9719ec6fbbd80b866c01eebc471d0ed121bd16 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* | Merge "Merge remote-tracking branch 'origin/stable' into dev" into ↵Shawn Rutledge2014-03-251-1/+27
|\ \ | |/ | | | | refs/staging/dev
| * CustomDialogs example: add an example using CalendarShawn Rutledge2014-02-251-1/+27
| | | | | | | | | | | | | | | | Also the spinbox exmample will accept when the user presses enter. Change-Id: I47765899acfbc435e2409f7a30e54e8f041b6e73 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com> Reviewed-by: Liang Qi <liang.qi@digia.com>
* | Fix shaders for OpenGL core profilesLaszlo Agocs2014-03-241-0/+8
|/ | | | | | | | | | | | Add also a --coreprofile command-line parameter to the gallery and systemdialogs examples to allow testing Quick Controls with an OpenGL 3.2+ core profile. This depends on the new features introduced to qtdeclarative in I75a47182 and I41b513e9. Change-Id: I408263a108a71df221943915849a4c3e18e0d3e4 Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
* Dialogs: add new CustomDialogs example to the qrc resourcesShawn Rutledge2014-02-201-0/+1
| | | | | | | Forgot to do this in change ccb088a6beaff01419ec9325dbd19040f279b6ea Change-Id: I00a2dc81a3f99937dbbab1d9dda1a393588124f2 Reviewed-by: Liang Qi <liang.qi@digia.com>
* FontDialog: new version of DefaultFontDialog.qmlLiang Qi2014-02-151-1/+2
| | | | | | | | | | | | Use Controls and Layouts in new DefaultFontDialog.qml. Use a TextInput for sample text, and the dialog supports tab key navigation. [ChangeLog][QtQuickDialogs][FontDialog] The FontDialog fallback QML implementation now uses QtQuick.Controls and QtQuick.Layouts. Change-Id: I133368b14c958c7231dc0ed9a4777b0712eb3670 Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
* QtQuick.Dialogs: added Dialog: wrapper for arbitrary contentShawn Rutledge2014-02-153-1/+268
| | | | | | | | | | | | It provides only a button box, so the application developer can supply the rest of the dialog contents. This is useful for various kinds of dialogs that prompt the user for input. [ChangeLog][QtQuickDialogs][Dialog] Dialog is a new wrapper component for dialogs with standard buttons and custom content items. Change-Id: I0434bed5f504820dc0a668cb993a94980f99852a Reviewed-by: Liang Qi <liang.qi@digia.com>
* Add currentFont property to FontDialog.Liang Qi2014-02-031-0/+2
| | | | | | | | | | | | | | | | | QFontDialog has this property. This patch effectively means that the font property will be set when the dialog closes, instead of whenever the current font in the dialog changes, so pressing cancel will revert the font to what it was before the dialog was opened. Align with e73d503b84be12e7bf28491356b459ca309e7c95 in qtdelarative, the similar change for color dialog. [ChangeLog][QtQuickControls][FontDialog] Added currentFont property. Task-number: QTBUG-36574 Change-Id: I4140966543a677d8e654dbaac170a2fe8d3579a1 Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com> Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* move QtQuick.Dialogs from qtdeclarative to qtquickcontrolsShawn Rutledge2014-01-0311-0/+988
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>