summaryrefslogtreecommitdiffstats
path: root/examples/quick/controls/gallery/content
Commit message (Collapse)AuthorAgeFilesLines
* Rewrite the gallery exampleJ-P Nurmi2014-10-305-858/+0
| | | | | | | | | | | | | | | | 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-065-13/+2
| | | | | Change-Id: I82be07e215b1784039b1b3a2c5398d4fc0f19b84 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* gallery: get rid of the dummy child windowJ-P Nurmi2014-10-061-120/+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 example: remove the "Layouts" tabJ-P Nurmi2014-10-061-107/+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-011-0/+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-011-59/+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>
* Gallery: use new menu API for TextAreaRichard Moe Gustavsen2014-09-231-7/+1
| | | | | Change-Id: I5caf76c8fb225760bc742b20e699c2cc40403e3c Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* 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-076-6/+6
| | | | | Change-Id: Ifc9719ec6fbbd80b866c01eebc471d0ed121bd16 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@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>
* Gallery example: add an About boxShawn Rutledge2013-11-131-0/+48
| | | | | 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>
* Improved font scalability for Base styleJens Bache-Wiig2013-10-151-35/+38
| | | | | | | | | | 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>
* 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>
* 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-091-1/+12
| | | | | | | | A basic BusyIndicator to indicate activity while blocking the UI. Change-Id: Iec88b6a4c7f23b630ebdf445c4cb288684c24cb7 Reviewed-by: J-P Nurmi <jpnurmi@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-271-1/+1
|\ | | | | | | Change-Id: I05931c5fbcd0ce61e09803239f97713f910588cc
| * Adapt to Qt.platform.os rename ("mac" -> "osx")v5.1.0-rc2v5.1.0J-P Nurmi2013-06-241-1/+1
| | | | | | | | | | | | Change-Id: I089a01bee10b92f85dcdd338c695a3b796b0ecd1 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com> Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
* | TextArea: switch to Qt.PointingHandCursor when hovering linksJ-P Nurmi2013-06-241-0/+1
|/ | | | | Change-Id: I7c306093c1afc9f5dfe942cd29da427c6a57d869 Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* Improve the Styles page and add missing SliderStyle propertyJens Bache-Wiig2013-06-061-34/+147
| | | | | | | | | | - I noticed we incorrectly exposed sliderPosition. - This adds some more custom style examples for the gallery and makes the second column actually different from the first. Change-Id: I73f0d613f51f6e75aaf734fd4e4c9fdb890e3e42 Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* Gallery: remove reference to colorDialogCaroline Chao2013-06-041-1/+0
| | | | | Change-Id: I0433e350634b4a2bea6161f53e7c7363654e2cf6 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Cleaning up some examples and removing clutterJens Bache-Wiig2013-05-312-112/+125
| | | | | | | | We want to use more layouts in our examples as it is the recommended way to create tool bars etc. Change-Id: Ib3b1e8e907cc5277d522557a19d2c294a7d251b1 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Improved size calculation of GroupBoxJens Bache-Wiig2013-05-291-1/+0
| | | | | | | | This adds some pixel tweaks on mac, adds minimum size to fit the label and fixes dpi scaling on Windows Change-Id: I4c43ba4a7815be87356336a9dafc1a217437940b Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
* ButtonStyle: expose styleData.hoveredJ-P Nurmi2013-05-271-14/+10
| | | | | Change-Id: I8f977a171ea18420e326b79181d634eeb43b1de8 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* TabViewStyle: rename 'tab' grouped property to 'styleData'J-P Nurmi2013-05-271-2/+2
| | | | | Change-Id: If56b5ca4af119d7897425609dcaf04336f77e032 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Make GroupBox size respect anchor margins and update GalleryJens Bache-Wiig2013-05-272-140/+108
| | | | | | | | | | | We now implicitly add the margins to GroupBox so that you can easily add them to a layout. This also gets rid of the silly Sidebar example and adds a much more useful Layout tab for effective testing. Change-Id: I6026c32b2a198062d9b11a67245df0529aa61f8a Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Style polishJens Bache-Wiig2013-05-271-1/+1
| | | | | | | | Adding the right margin of TableView and adding some extra margins makes the example look a bit more polished Change-Id: If969230fe2e1068a42f92708df311550f88fb060 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
* TabViewStyle: add support for left and right corner itemsJ-P Nurmi2013-05-231-1/+1
| | | | | | | | Empty corner items may be used as padding, so TabViewStyle::left/rightCorner effectively replaces TabViewStyle::left/rightPadding. Change-Id: I01f3a1552c3395352e8953456d3956f4f8c29aed Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Update GroupBox to support contentItemJens Bache-Wiig2013-05-231-1/+1
| | | | | | | | | | | | | - Removed contentWidth and contentHeight since it is not needed - Exposed contentItem so that it can be designable. - Respect the implicit width or height of the contentItem if it is the only item of the GroupBox. Otherwise childrenRect is used. - Modified the style so that the style takes care of only the padding size and not the entire size of the group box. - Fixed flat and checkable appearance for custom style Change-Id: I2c7ec4cb7d5e6f96863847e8d8d6d6f52428364e Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Introduce support for movable tabsJ-P Nurmi2013-05-211-0/+1
| | | | | | Change-Id: I87a6a582824363197f66f6b7f6f29aa603123458 Reviewed-by: Caroline Chao <caroline.chao@digia.com> Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Refactor and clean up public style APIJens Bache-Wiig2013-05-081-50/+32
| | | | | Change-Id: I10271c860abd9b45a262e3548628e6a3026e1a4f Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Clean up and document SliderStyleJens Bache-Wiig2013-05-031-2/+2
| | | | | Change-Id: I6b97624338c3cfa4663e79bc243327ce9f494ccf Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
* Button: Add 'menu' property to get pull-down buttonGabriel de Dietrich2013-04-301-2/+7
| | | | | Change-Id: I97ce3f35153beee2d7b1113880f25fd01904ce5f Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Move examples into separate quick/controls directoryKai Koehne2013-04-306-0/+887
This makes sure all examples are in a separate directory for the Qt source packages. It also is in line with how the other repositories are structured. Task-number: QTBUG-30886 Change-Id: Idc2856e5dfaf467c8cb9764aee327a3b20c7b2d0 Reviewed-by: Caroline Chao <caroline.chao@digia.com>