summaryrefslogtreecommitdiff
path: root/examples/quick/controls/gallery
Commit message (Collapse)AuthorAgeFilesLines
* Unify license header usageAntti Kokko2016-02-049-27/+117
| | | | | | | Updated BSD license headers Change-Id: I73d67dbc6dbbe7c58d2b9c301b46fb6163243095 Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
* 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>
* Examples: Adjust gallery example for designerThomas Hartmann2015-02-274-0/+9
| | | | | | | * Giving every file a default size Change-Id: Ied25b5a4c142be98fdbea27c268782b2d337bb4a Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Update BSD license headersJ-P Nurmi2015-02-139-27/+27
| | | | | Change-Id: Ia95c64b333416568fe6a88607d802fe7239dba35 Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com>
* Examples: update license headersJ-P Nurmi2015-02-119-54/+54
| | | | | Change-Id: I41096c464db4e1513db1d4ffe7311be3c902d973 Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com>
* Rewrite the gallery exampleJ-P Nurmi2014-10-3037-840/+456
| | | | | | | | | | | | | | | | A much simpler, scalable and mobile friendly UI. Some of the more complex controls, such as TextArea and TableView, are intentionally left out. They are scrollable on their own, so they wouldn't play nice inside scrollable pages. Furthermore, adding them as standlone pages would increase the amount of tabs too much. Those controls are demonstrated in the Text Editor and Table View examples, respectively. Task-number: QTBUG-41307 Change-Id: Ib3efb346e621e388087f3f14c73b3b54279db280 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com> Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com>
* gallery: cleanup old code commented outJ-P Nurmi2014-10-061-11/+0
| | | | | Change-Id: I314be395ba82b89f89d6b84702e17f3adcabf1b1 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* gallery: cleanup whitespaceJ-P Nurmi2014-10-066-18/+2
| | | | | Change-Id: I82be07e215b1784039b1b3a2c5398d4fc0f19b84 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* gallery: fix titleJ-P Nurmi2014-10-061-1/+1
| | | | | Change-Id: Ib637f850ed2002de10d7cb18e242f0b44482247c Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* gallery: get rid of the dummy child windowJ-P Nurmi2014-10-065-132/+0
| | | | | | | | This is material for a manual _desktop_ test application. Change-Id: I9fe10ca05184410b53331bdd7b3157daaceb7640 Reviewed-by: Jan Arve Sæther <jan-arve.saether@theqtcompany.com> Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com>
* gallery: cleanup the menubarJ-P Nurmi2014-10-061-23/+5
| | | | | | | | | | | Remove the non-functional submenu items that belong to a manual test application. The edit/context menu presents submenu items well enough. Furthermore, reduce the amount of cruft in main.qml by declaring the non-shared about action inline as a menu item instead. Change-Id: I1060a3ed63aa1a388e220fedddda4b7d5b412ba7 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Gallery example: remove the "Layouts" tabJ-P Nurmi2014-10-063-112/+0
| | | | | | | | The content is identical to the Basic Layouts example. Task-number: QTBUG-41307 Change-Id: I781d741ccfb9cc1443eae7410990d968ff6a209d Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
* gallery: cleanup the mainJ-P Nurmi2014-10-012-61/+61
| | | | | | | | | It's not a good example to rely on instances "somewhere in the outer context" => move things where they are used so they can be referenced via IDs that are in the scope. Change-Id: I352dca270de92590b5d620e529e84b9d18105082 Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
* gallery: cleanup system palette usageJ-P Nurmi2014-10-012-62/+57
| | | | | | | | | ApplicationWindow sets the background color as appropriate => no need to use SystemPalette there. The child window was unnecessarily creating an extra Rectangle just for the background color => use Window::color. Change-Id: Id109c9e5f4d633baf1133afd3a1e9af277310e98 Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
* EditMenu: let menu property be a component to lazy load itRichard Moe Gustavsen2014-09-241-17/+19
| | | | | | | | | Since all input fields have a menu assigned to it by default (which in most cases never will be shown), it should be an optimization to await creating it until needed. Change-Id: I5777bbdae42103981e9b2f5ddfdfd763acea07ae Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Gallery: use new menu API for TextAreaRichard Moe Gustavsen2014-09-231-7/+1
| | | | | Change-Id: I5caf76c8fb225760bc742b20e699c2cc40403e3c Reviewed-by: J-P Nurmi <jpnurmi@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-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>
* | Revise and align ToolBar & StatusBar size calculationJ-P Nurmi2014-06-071-1/+1
| | | | | | | | | | | | | | | | | | | | Instead of preferring the layout size, and only using the panel size as a fallback, take the maximum of the two. This way styles can provide a default size that will be respected. Furthermore, replace unnecessary function calls with declarative property bindings. Change-Id: Iabc59c694ac8c8302cea72f53c9177462d7f146c Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
* | Example: Remove Panel.qml from gallery.pro as the file does not existCaroline Chao2014-05-191-1/+0
| | | | | | | | | | Change-Id: Ife2b4de2cbc5cd08a97b87e014bb2e288326e08c Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
* | Merge remote-tracking branch 'origin/stable' into devFrederik Gladhorn2014-04-117-12/+12
|\ \ | |/ | | | | | | | | | | Conflicts: src/controls/ApplicationWindow.qml Change-Id: I2ab8efb4e04006724410da0f6ed03bd2672c5eb6
| * Bump QtQuick.Controls import version to 1.2J-P Nurmi2014-04-076-6/+6
| | | | | | | | | | Change-Id: Idc0b93cbfc2fe23e8be3bcaece672d06555a81f6 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
| * Import QtQuick 2.2J-P Nurmi2014-04-076-6/+6
| | | | | | | | | | Change-Id: Ifc9719ec6fbbd80b866c01eebc471d0ed121bd16 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@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>
* 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>
* Make Label accessibleFrederik Gladhorn2014-01-031-3/+3
| | | | | Change-Id: If364332017669732fa429efe90c26000b01b0580 Reviewed-by: Jan Arve Sæther <jan-arve.saether@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>
* Revise main() in examplesJ-P Nurmi2013-11-283-2/+11
| | | | | | | | | | | | 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>
* 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>
* Remove widget dependency on touch platformsJens Bache-Wiig2013-10-171-3/+1
| | | | | | | | 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>
* 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>
* 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-105-6/+6
| | | | | | | | | | 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>
* | 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-272-2/+2
|\ \ | |/ | | | | Change-Id: I05931c5fbcd0ce61e09803239f97713f910588cc