summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Styling improvements for CalendarJens Bache-Wiig2014-03-123-21/+41
| | | | | | | | | Also - added the property Calendar::frameVisible. - moved the gridVisible property to CalendarStyle Change-Id: I57da65af130098ac5d0b858c9f964e52e3ba6922 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* Fix some typosSergio Ahumada2014-03-031-1/+1
| | | | | Change-Id: Ic2e2060b57b0d74e96d6aad0ceff4679d986a26c Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* 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>
* Calendar example: sql module requiredCaroline Chao2014-02-211-1/+4
| | | | | | Change-Id: I75eb50a053f429135d1d49d1769b85a247c30311 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com> Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Calendar example: add needed QTPLUGIN for static buildsCaroline Chao2014-02-211-0/+2
| | | | | | Change-Id: Ieea1b38f5213f54c8e7de5fc572dcf2de6dfed18 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com> Reviewed-by: J-P Nurmi <jpnurmi@digia.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>
* Merge "Merge remote-tracking branch 'origin/stable' into dev" into ↵Frederik Gladhorn2014-02-171-10/+6
|\ | | | | | | refs/staging/dev
| * Merge remote-tracking branch 'origin/stable' into devFrederik Gladhorn2014-02-121-10/+6
| |\ | | | | | | | | | | | | | | | | | | Conflicts: src/layouts/qquicklinearlayout.cpp Change-Id: Ib24dab43c37fc0f3f6a85398766f102a1ac833c3
| | * Touch example: Fix back navigationCaroline Chao2014-02-031-10/+6
| | | | | | | | | | | | | | | | | | | | | The Key event needs to be in a item that has focus. Change-Id: I6f7293ac74b477e37c200dbb7ee8629d4f769d05 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@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 Calendar to Qt Quick Controls.Mitch Curtis2014-02-1410-0/+594
|/ / | | | | | | | | | | | | | | | | | | | | Task-number: QTBUG-29948 [ChangeLog][QtQuickControls] Calendar was added. Calendar allows selection of dates from a grid of days, similar to QCalendarWidget. Change-Id: I279130e704bc0dfd8dfe114ec9b6b49e111faf96 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* | Accessible slider should not have value as nameFrederik Gladhorn2014-02-071-0/+1
| | | | | | | | | | | | | | | | The value is provided though the value interface which works already. Having the value as name as well leads to the value being read twice. Change-Id: I97483567c120aa149b52ba35f430aa5c63ad08b7 Reviewed-by: Jan Arve Sæther <jan-arve.saether@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>
* | Merge remote-tracking branch 'origin/stable' into devFrederik Gladhorn2014-01-061-3/+3
|\ \ | |/ | | | | Change-Id: I1c758e93a570b3b522c64b9d2f6e482a6cf0d48a
| * Make Label accessibleFrederik Gladhorn2014-01-031-3/+3
| | | | | | | | | | Change-Id: If364332017669732fa429efe90c26000b01b0580 Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
* | move QtQuick.Dialogs from qtdeclarative to qtquickcontrolsShawn Rutledge2014-01-0312-0/+989
|/ | | | | | | | | | 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>
* gallery: run particles only when visibleJ-P Nurmi2013-12-051-1/+1
| | | | | | Change-Id: I7c0f5565161719905e973d3fd1a75b3c9d8a4007 Reviewed-by: David Edmundson <davidedmundson@kde.org> Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Merge remote-tracking branch 'origin/release' into stableFrederik Gladhorn2013-12-031-1/+1
|\ | | | | | | Change-Id: I1b4f7508ead5631abb70b4cdf29d6efa05f33b5b
| * Fix typo in tableview example.Mitch Curtis2013-11-301-1/+1
| | | | | | | | | | | | | | Sortindicator => Sort indicator Change-Id: Id9897268bb21e9ba0dc14de2c4cc9e7f9f9a66d4 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* | Revise main() in examplesJ-P Nurmi2013-11-2820-56/+69
|/ | | | | | | | | | | | Replace the inconvenient QT_QUICK_CONTROLS_EXAMPLE_MAIN macro with a simpler macro that merely defines the actual application type. This way it's easier to do tweaks to main() when for example testing a different application font size. Moreover, browsing the example code becomes more convenient (especially online). Task-number: QTBUG-35083 Change-Id: I8203816a9112bf29b4661baa86bf4a196554db05 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* TextEditor example: use the MessageDialog for the About boxShawn Rutledge2013-11-151-30/+6
| | | | | | Change-Id: I0813b7d392dfe7143d438b4057c5d787d223ad5e Reviewed-by: J-P Nurmi <jpnurmi@digia.com> Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
* Gallery example: add an About boxShawn Rutledge2013-11-134-0/+62
| | | | | Change-Id: Ie683c9d6dca577193f6a5a2cee40916b263719d6 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* More styling improvements for Base StyleJens Bache-Wiig2013-10-311-4/+0
| | | | | | | | | | - Better scalability - Retina support - Added glow filter to Private - Added focus rects Change-Id: I2ec36a9db546c21e20408429c5e17fde8d67b7c3 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
* Don't add any extra space to RadioButton and CheckBox by defaultJens Bache-Wiig2013-10-241-0/+6
| | | | | | | | | We instead do this in the layout code. It seems to make sense to support the use case where only the indicator is visible without adding extra padding to it. Change-Id: Ib55c3a97d7c23a52a14121b46be84299d1ad2132 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Fix custom styled transient scrollbarsJ-P Nurmi2013-10-234-0/+88
| | | | | Change-Id: I41d86f2f27e4250361c4fad21dd37995e5cbbc3d Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* Remove widget dependency on touch platformsJens Bache-Wiig2013-10-178-21/+16
| | | | | | | | We don't want native styling on touch enabled devices and there is no reason to link against widgets there. Change-Id: I70116a0a94227cb58ae25980b97c4177da75a3c8 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Fix some issues in the modelview exampleJens Bache-Wiig2013-10-161-8/+1
| | | | | | | | | | The edit menu was never implemented and should not be exposed. Fading out the combo box is not really intuitive and doesnt actually disable the control. task-number: QTBUG-33818 Change-Id: I76190b675fd9400caac2754277ba9960b7f6dd06 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Improved font scalability for Base styleJens Bache-Wiig2013-10-152-38/+41
| | | | | | | | | | This should make it useable on hight dpi tablets and desktops where font sizes are larger. Change-Id: I8c8e7688927a0b54e3f95c276c743aaa31e8a4d9 Reviewed-by: J-P Nurmi <jpnurmi@digia.com> Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
* Add a basic Switch controlJens Bache-Wiig2013-09-221-2/+58
| | | | | | | | | This is a very simple switch. I left out text label as this is very mobile oriented. A clicked signal is also debatable as you dont really click on a switch. Change-Id: I84269297cba48f0e81af8f25af5b97acadecdd6a Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* ComboBox: Make popup scrollableGabriel de Dietrich2013-09-191-0/+5
| | | | | | | | | | | | | | | | We factor out part the menu item container logic from Menu into ColumnMenuContent, which takes care of scrolling and mouse hovering, and selection. This makes possible to extend the menu items layout. The pop-over and pull-down look is specified by the menu style component by overriding the ScrollView style. The popup's maximum height is also specified by the menu style. The gallery example can finally use a font families combo box. Task-number: QTBUG-31568 Change-Id: I34a7278f476471c0eb51ef51dde3dd83e13002fe Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Merge branch 'stable' into devGabriel de Dietrich2013-09-181-9/+9
|\ | | | | | | | | | | | | Conflicts: src/controls/qquickaction.cpp Change-Id: I85255ba5c27c0d8ea023d0867e5963d43f8f1ddb
| * Menu: Enable mnemonic menu navigationGabriel de Dietrich2013-09-131-9/+9
| | | | | | | | | | | | | | | | | | | | | | We also added a new mnemonic specific shortcut context matcher. This prevents two menu items with the same mnemonic but within different menus to be reported as ambiguous. Task-number: QTBUG-33030 ChangeLog: Added mnemonic navigation for menus Change-Id: I192c9aacba4d15851fe65bf9201251962fe976d5 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* | Make ComboBox editableJens Bache-Wiig2013-09-171-4/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In addition - Added text completion - Added validator - Added accepted signal - Added activated signal - Added textAt function - Added find function - Added keyboard indexing for non-editable as well Note that we do not support adding values to the model, but leave this up to the user to handle in onAccepted. Change-Id: I1d76fa83aea0e488959c418d22ce7b6027675d86 Reviewed-by: Caroline Chao <caroline.chao@digia.com> Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* | Add TableViewColumn::movableJ-P Nurmi2013-09-171-1/+8
| | | | | | | | | | Change-Id: Ibf1b68d4c63ca02c603d5203128bb94984a809f2 Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* | Rename Control tab to Controls.Mitch Curtis2013-09-131-1/+1
| | | | | | | | | | Change-Id: I009877b3ab19302aa7eb951acb4668371aa60b38 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* | Update imports to 1.1 and remove version from qmlmodule definitionJens Bache-Wiig2013-09-1015-21/+21
| | | | | | | | | | Change-Id: Icb4c6d78225c072da787e4646a55d8cf71a5db7a Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* | BusyIndicatorJens Bache-Wiig2013-09-092-2/+13
| | | | | | | | | | | | | | | | A basic BusyIndicator to indicate activity while blocking the UI. Change-Id: Iec88b6a4c7f23b630ebdf445c4cb288684c24cb7 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* | Example: Rename Text example to TextEditorCaroline Chao2013-08-2730-2/+2
| | | | | | | | | | | | | | | | | | Text is too generic. Change-Id: I68d304345d2982a8acc8843c4c843e9f5e696954 Reviewed-by: J-P Nurmi <jpnurmi@digia.com> Reviewed-by: Jerome Pasion <jerome.pasion@digia.com> Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
* | Support StandardKeys for Action/MenuItem::shortcutJ-P Nurmi2013-08-201-6/+6
| | | | | | | | | | | | Change-Id: I2054a59fcda26795721e5d7d04cc644220da372b Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com> Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* | Remove broken links from gallery exampleJens Bache-Wiig2013-08-151-1/+1
| | | | | | | | | | | | | | | | | | | | While it is nice to have a manual test for this, I don't belive the gallery is the best way to do so. Instead I moved the lorem ipsum text link to testbench. Change-Id: I4451aedc9ae6f42d5074b633052cc307f2880ac3 Reviewed-by: J-P Nurmi <jpnurmi@digia.com> Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* | Add support for drawing tick marks with base styleJens Bache-Wiig2013-08-141-0/+1
| | | | | | | | | | | | | | | | | | | | | | Before this was simply not implemented. It is still a bit unclear how we should treat stepSize == 0 as the results are somewhat undefined. Task-number: QTBUG-31261 Change-Id: I7a8b877649a945cd6cb303cc034df677b0199a90 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* | Merge remote-tracking branch 'origin/stable' into devFrederik Gladhorn2013-06-273-3/+3
|\ \ | |/ | | | | Change-Id: I05931c5fbcd0ce61e09803239f97713f910588cc
| * Merge remote-tracking branch 'origin/release' into stableFrederik Gladhorn2013-06-253-3/+3
| |\ | | | | | | | | | Change-Id: I1684510ce4f1b52e3569d8c04e272b1c8fd63c1a
| | * Adapt to Qt.platform.os rename ("mac" -> "osx")v5.1.0-rc2v5.1.0J-P Nurmi2013-06-243-3/+3
| | | | | | | | | | | | | | | | | | Change-Id: I089a01bee10b92f85dcdd338c695a3b796b0ecd1 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com> Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
| | * Revert "Add qml/js files in resource files"Caroline Chao2013-06-141-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We need to investigate more this solution. Deployment issue for Qt Quick Controls will be a known limitation in 5.1.0. This reverts commit 41e13d3746c8b7b5cd550091c63fd8ab066422cf. Change-Id: I501be7494bdbdfbb799d31c612d0c20e7f87ffc7 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com> Reviewed-by: Liang Qi <liang.qi@digia.com>
| | * Add qml/js files in resource filesCaroline Chao2013-06-131-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To make deployment of Qt Quick Controls based applications easier. Task-number: QTBUG-31565 Change-Id: I0b8af2864ef0dc9121eed3189ced64712bdb3d20 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* | | TextArea: switch to Qt.PointingHandCursor when hovering linksJ-P Nurmi2013-06-242-1/+2
|/ / | | | | | | | | Change-Id: I7c306093c1afc9f5dfe942cd29da427c6a57d869 Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* | Text example: specify the base URL for the TextAreaCaroline Chao2013-06-201-0/+1
|/ | | | | | | | So the TextArea looks inside its own resource file while resolving relative urls used in the text. Change-Id: Id67f3f3cbbd635e8defa04d97602e1e7b293874e Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Text example: Update example.htmlCaroline Chao2013-06-074-37/+37
| | | | | | | | | | Remove references to QTextEdit and adapt it to match TextArea instead. Update the Qt logo. Change-Id: I6939bf7418fbad883e1d967bea3688d9ccfd4885 Reviewed-by: Hanne Linaae <hanne.linaae@digia.com> Reviewed-by: J-P Nurmi <jpnurmi@digia.com>