aboutsummaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Implement Style as an attached propertyJ-P Nurmi2015-03-115-72/+65
| | | | | Change-Id: I006ee566647e31d1a14919d164d7dd68539aae10 Reviewed-by: Jari-Pekka Nurmi <jpnurmi@theqtcompany.com>
* import QtQuick 2.6J-P Nurmi2015-03-065-5/+5
| | | | | Change-Id: I2a8a1c6884e65383f0938763497a419d2f0fcbd6 Reviewed-by: Jari-Pekka Nurmi <jpnurmi@theqtcompany.com>
* Update padding usage in examplesJ-P Nurmi2015-03-031-2/+2
| | | | | Change-Id: Id1f983b242a0daa6b89f3b055d1b726e0a2ea049 Reviewed-by: Jari-Pekka Nurmi <jpnurmi@theqtcompany.com>
* Update BSD license headers as appropriateJ-P Nurmi2015-02-2310-30/+30
| | | | | Change-Id: I03812c7df56c804b5afdeff5829e00417a4b135c Reviewed-by: Jari-Pekka Nurmi <jpnurmi@theqtcompany.com>
* Examples: BSD license (liberal, free to copy-paste)J-P Nurmi2015-02-0910-228/+268
| | | | | Change-Id: I311f86b9faa2fa006d563ba597fb83a2859f4aa0 Reviewed-by: Jari-Pekka Nurmi <jpnurmi@theqtcompany.com>
* Import the Qt Quick Controls 2 prototypeJ-P Nurmi2015-02-0526-0/+1521
Change-Id: Ib8c0c4160958e5cfea29a6e9df1b3f1fb19715fc Reviewed-by: Jari-Pekka Nurmi <jpnurmi@theqtcompany.com>