aboutsummaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Flatten and rename example install path and directory structureMitch Curtis2016-04-1952-2/+2
| | | | | | | Change-Id: Ib04e79d72c37fa4507517da2d3b1c28ccd73eaed Reviewed-by: J-P Nurmi <jpnurmi@qt.io> Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com> Reviewed-by: Topi Reiniƶ <topi.reinio@theqtcompany.com>
* Material: use proper shades for dark theme colorsNikita Krupenko2016-03-171-0/+1
| | | | | | | | This fixes colors for checked switch dark theme and raised highlighted button in both themes. Change-Id: I3c485fb1b779104d6d7f682921b34cb535312f7c Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Gallery: remove conflicting anchorsJ-P Nurmi2016-02-191-1/+0
| | | | | | | Exposed thanks to e19a9044. Change-Id: I9dea1af8e9a9d47391ddaf1fd9c8f7e0c210e9d5 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Gallery: make the "restart required" label more visibleJ-P Nurmi2016-01-281-0/+1
| | | | | | | The red color is one of the secondary colors listed at brand.qt.io. Change-Id: Iea8afe0afe06ea033cb0ece864b6049d74765dfa Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Add Popup::closePolicyJ-P Nurmi2016-01-281-4/+2
| | | | | Change-Id: Ie3d0f50a59aeaab36ec388af897cbf2596269ce3 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Add Popup::transformOriginJ-P Nurmi2016-01-251-0/+1
| | | | | Change-Id: I4a52468234f0479c1b8feb102e07686e3235ba3f Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Popup: add implicit & content sizesJ-P Nurmi2016-01-231-5/+5
| | | | | | | Behaves the same way than the Pane/Frame/GroupBox container controls. Change-Id: I370f3961b77a363a63a0a64fc629cc5da6dfd53f Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Add Popup::parentJ-P Nurmi2016-01-231-14/+14
| | | | | | | | | | | | | | | The parent defaults to the QML parent object where Popup is declared. Popup::x/y are relative to the parent, and the popup also automatically follows the parent as appropriate. QQuickPopupPositioner has been adapted from Qt Quick Controls 1. It was called QQuickScenePosListener, and it was implemented for the text selection handle popups. ComboBox's popup now follows the control eg. when scrolling, but the below/above positioning feature is temporarily gone missing. It will be restored in a follow up commit. Change-Id: I8a6b58cd74e07f33930abc35d0ab9da056685128 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Refactor PopupJ-P Nurmi2016-01-221-91/+78
| | | | | | | | | | | Added relevant properties to make it almost like a Control: x, y, width, height, padding, background... This change makes popup use an internal item where the style/user-supplied contentItem and background are re-parented. This way we can provide a default style (background) for Popup. Change-Id: I3e7933562464c5c852e4ba4bc37d9ac25691c714 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Material: make ToolBar to use the primary colorJ-P Nurmi2016-01-201-0/+1
| | | | | | | Change-Id: Ie9035ea4d5e1cdf5807b73b92115d886691e8fa7 Task-number: QTBUG-50330 Reviewed-by: Nikita Krupenko <krnekit@gmail.com> Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Gallery: fix qtlabscontrols.confJ-P Nurmi2016-01-191-4/+4
| | | | | | | The foo/bar values slipped in in commit 70a31cd... Change-Id: I130104b5682d7fd0fb06f7608ef4ba8518d3fb60 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Improve Material & Universal warningsJ-P Nurmi2016-01-141-4/+4
| | | | | | | | | | | | | | | | | | Before: QQuickMaterialStyle: unknown accent "foo" After: qrc:/main.qml:28:9: QML CheckBox: unknown Material.accent value: foo Furthermore, before invalid values in :/qtlabscontrols.conf were silently ignored. Now it gives a clear warning: :/qtlabscontrols.conf: unknown Material theme value: foo Change-Id: I0be4eb26ffe23643e282197dc76a091801ab2f4d Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Gallery: remove the problematic restart functionalityJ-P Nurmi2015-12-182-30/+10
| | | | | | | | It doesn't work nicely on Android (the new app instance goes to the background) and QProcess is not available at all on iOS. Change-Id: I3aeec773927825fdd5fc499a2ac0acbe59634114 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Gallery: improve the behavior in landscapeJ-P Nurmi2015-12-1826-41/+64
| | | | | Change-Id: Ia5acec45da1c94673641004eca73491b587db054 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Gallery: remove some useless pagesJ-P Nurmi2015-12-186-269/+0
| | | | | Change-Id: I32958e4d5d69b63df81ce23c32a1fed8904c9a69 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Run optipng -o7 -strip "all" over gallery imagesJ-P Nurmi2015-12-1820-0/+0
| | | | | | | | | | Strip contained color profiles causing the warning: libpng warning: iCCP: known incorrect sRGB profile Same was done to the default style in a5e137a. Change-Id: I3eabda96cbabf51d38082967e7f799d5b02ee84b Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Add Gallery exampleJ-P Nurmi2015-12-1756-0/+2628
| | | | | | Task-number: QTBUG-49941 Change-Id: I7bd6b25e12a6e90ba637231790b9a2c7a92bb821 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Remove all examplesMitch Curtis2015-11-2729-2083/+0
| | | | | | | | The current examples were temporary until we started working on proper ones, which we've recently begun doing. Change-Id: I418e5e9604f0b57a33b56dc3aa6ec1cba5c3f791 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Introducing Panel typeGabriel de Dietrich2015-11-145-796/+0
| | | | | | | | | | | | | | | | | | | | This is the base type to implement all sorts of Popups and Dialogs. Its main role is to keep the panel contents stacked on top of the application window contents and to ensure mouse and key events are forwarded or blocked depending on the visible panels modality. Currently, it only works with ApplicationWindow, which holds a QQuickOverlay. This special item is where the Panel contents gets reparented when the Panel becomes visible. It's also responsible for filtering the mouse events. Future developements may include adding a 'level' property instead of relying on the item's z value. This may or may not result into having several overlays per window. Change-Id: I18a4b8905e4d5a4a4697642b0553a1f9e86b669f Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com> Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Repurpose ExclusiveGroup to ButtonGroupMitch Curtis2015-11-063-11/+11
| | | | | | | | | | This is another way of solving the naming clash with Qt Quick Controls, and narrows our focus to the types of controls that actually make sense to have in an "exclusive" group; buttons (Android calls them "selection controls"). Change-Id: Icf6efe583fe784c3594de8635be84bbf757a55cd Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Simplify TextField & TextArea placeholderJ-P Nurmi2015-10-301-1/+1
| | | | | | | | | | Better not expose the extra Text item in the API. Ideally it should be implemented as a scenegraph node. We might even want to promote the placeholderText property (and add placeholderColor) to TextInput and TextEdit in Qt Quick core. Change-Id: I4f443c77d1c696b87a50ee184f868713dd50316f Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* Add FontAwesome support for the examplesGabriel de Dietrich2015-10-146-0/+799
| | | | | | | | | Some examples use that font to display icons (which we still don't recommend), and we could extend it to other. This follows the same pattern as the shared directory for Qt Quick examples. Change-Id: I060b028383e666720ffae579c7b0f94ce154dafb Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Attached properties are now available using the QML composite type nameJ-P Nurmi2015-10-096-18/+12
| | | | | | Change-Id: I8cfbd420cea4e01528d2f289cfc5989268d8718a Task-number: QTBUG-43581 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Rename CalendarView to MonthGridJ-P Nurmi2015-10-041-1/+1
| | | | | | | | | | Let's reserve CalendarView for a bit higher level control that combines MonthGrid, DayOfWeekRow and WeekNumberColumn, and provides built-in navigation. CalendarView would use the not-so-extensible CalendarModel internally, so we could get that out of the public API as well... Change-Id: I43126ed4c87f54a5b24129b9d60c969f5bd58642 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Calendar example: fix installation target pathJ-P Nurmi2015-10-031-1/+1
| | | | | Change-Id: I78c2e7fb6b0f954284958fa58a48370931cf3679 Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* Rename QtQuick.Controls 2.0 to Qt.labs.controls 1.0J-P Nurmi2015-10-0127-22/+19
| | | | | Change-Id: I142622dd85e95ef70b11132e77ccf48701f2cabc Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Rename QtQuick.Templates 2.0 to Qt.labs.templates 1.0J-P Nurmi2015-10-016-6/+6
| | | | | | Change-Id: I3263a600065dfa2bfe7334ec44a74e2dca83aa36 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com> Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Rename QtQuick.Calendar 2.0 to Qt.labs.calendar 1.0J-P Nurmi2015-10-0110-4/+7
| | | | | Change-Id: Ief7e28f6c595cb60f15a4960dada24a6c2f5ca3e Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Remove ToggleButtonJ-P Nurmi2015-09-251-3/+3
| | | | | | | | We don't have a sensible design. It's better not to have it at all than to have a confusing tiny bit tweaked clone of Switch. Change-Id: Ib0eabd075590100e9e49846c7172909525b54a57 Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* Templatize the former extrasJ-P Nurmi2015-09-232-7/+9
| | | | | Change-Id: Ief9ee07d1f5f6c80500bfa611bace860481e2a3f Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* Enums are now available using the QML composite type nameJ-P Nurmi2015-09-231-1/+1
| | | | | | | Change-Id: I90cf20d57ee433c1c9319c7a947ac91558775bb7 Task-number: QTBUG-43582 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com> Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Merge Qt Quick Extras into Qt Quick ControlsMitch Curtis2015-09-1812-10/+4
| | | | | | | | | | | | The original split existed because the public and enterprise controls were developed separately. Now that all controls are public and developed together, the split no longer makes sense and is difficult for users to understand. Change-Id: I00420f4d09f8c837232231d03fe818b7b3403fab Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com> Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* theme example: replace the useless Control(+Rect bg) with a plain RectJ-P Nurmi2015-09-141-4/+2
| | | | | Change-Id: If2880cb3d25d4d1ca061913a41bf2a8f36c48012 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Use QtQuick.TemplatesJ-P Nurmi2015-09-094-7/+11
| | | | | Change-Id: I3d1822457efd740e7c9d91747e978d787c0dd4b8 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>
* Make examples return -1 on load failures.Friedemann Kleint2015-08-285-0/+10
| | | | | | | | Avoid hanging processes and empty windows in case some module is not installed. Change-Id: I26c0b0fafc87ae17719850ad06f13c946f099dd9 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Add support for ListView to Tumbler.Mitch Curtis2015-08-067-131/+632
| | | | | | | This enables creation of non-wrapping Tumblers. Change-Id: I0e21b860b84c456c0651923e87217cafc42c69b7 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Speedup CalendarViewJ-P Nurmi2015-07-081-2/+0
| | | | | | | | | | | | | | | | | | | | | - Use spacing inside the positioner instead of setting padding inside each and every cell. - Resize cells in C++ to avoid those crazy expensive width/height bindings (which lead to binding loops in certain circumstances). - Cache QDate::currentDate() for model.today - Remove the dynamic font size calculation. We can add that as an example in the docs. Before: RESULT : tst_CreationTime::testCalendar():"CalendarView": 12.5 msecs per iteration (total: 100, iterations: 8) After: RESULT : tst_CreationTime::testCalendar():"CalendarView": 6.5 msecs per iteration (total: 52, iterations: 8) Change-Id: Iba6c57cb543e1e90518d920f6b52bd981160e27c Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Remove non-color properties from ThemeJ-P Nurmi2015-07-065-40/+25
| | | | | | | | Better start with a minimal set. It will be also easier to transition from Theme to Palette if it gets done. Change-Id: Ic9951ac5b913f99a84e2b8efb9ae7f8d61177aee Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* Remove Theme.disabledOpacityJ-P Nurmi2015-06-301-2/+2
| | | | | | | Use Theme.disabledColor instead. Change-Id: I76311d6c6b573b01a26ee2b8d434a841c4d86292 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Refactor ExclusiveGroupJ-P Nurmi2015-06-303-8/+8
| | | | | | | | | | | | | Add support for toggled() and toggled(bool) signals to bring ExclusiveGroup 2.0 on par with ExclusiveGroup 1.0. Furthermore, the attached property is now "ExclusiveGroup.group" to be consistent with all other attached properties like StackView.view, TabView.view, and others. It looks clumsy to repeat, but it's better to keep the type names to the minimum, and the documentation also stays in one place. Change-Id: Ic46f8d2ec4b58c5056e8b2bbca5c9f88968bfb80 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Kill CalendarDelegateJ-P Nurmi2015-06-231-1/+5
| | | | | | | | | | | | The default CalendarView delegate implementation will be included in the "Customizing CalendarView" docs. That should be enough to get started, so we avoid exposing such type and committing to its API for now. Hiding it from the API allows also a bit simpler implementation => getting rid of the wrapper item reduces the total amount of items in a CalendarView from 87 to 45. Change-Id: Idac693347df72377b3bb518fb1bab505d20d6f12 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Tabs example: make the layout fit a narrow screenJ-P Nurmi2015-06-231-2/+10
| | | | | Change-Id: If0c38ca0a7ebc600e9706e180609bc73edbe08a7 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Frame, GroupBox, ToolBar: restore contentWidth & contentHeightJ-P Nurmi2015-06-181-50/+67
| | | | | Change-Id: I79a974c64f6ec57ebfa83cea0857b2a1590af61f Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* GroupBox/Frame/ToolBar: use positioners as content itemJ-P Nurmi2015-06-151-67/+50
| | | | | Change-Id: I8f883dd0fd06172032dd78ff60437c906c2fe8dd Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Move the drawer example under extrasJ-P Nurmi2015-06-119-2/+5
| | | | | Change-Id: I61827e005c9c7a047e181c8f23baac9a09a865ee Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Tabs example: use TabBar & SwipeViewJ-P Nurmi2015-06-111-13/+20
| | | | | Change-Id: I4733dac4e6947874eaff9d3f0ef6918e5207e892 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* Add install targets for examplesJ-P Nurmi2015-05-185-0/+15
| | | | | | | | $$[QT_INSTALL_EXAMPLES]/<module>/<example> Change-Id: I82267c740b5e7750cd0e9149b241a03837aea8e2 Reviewed-by: Liang Qi <liang.qi@theqtcompany.com> Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* Theme example: workaround for missing back icon on AndroidJ-P Nurmi2015-04-211-1/+4
| | | | | Change-Id: I3f2227241bbb37320b83aecb8cd8c4d2e16388d9 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Rename Style to ThemeJ-P Nurmi2015-04-089-72/+72
| | | | | Change-Id: I0186cd36f0b42ca015b70a09af27f8a3517d4a60 Reviewed-by: Jari-Pekka Nurmi <jpnurmi@theqtcompany.com>
* Specify link color & use StyledTextJ-P Nurmi2015-03-281-2/+2
| | | | | Change-Id: If6d087b4bb66bf4d293a8bcccf3ab01fa9266152 Reviewed-by: Jari-Pekka Nurmi <jpnurmi@theqtcompany.com>