aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/doc
Commit message (Collapse)AuthorAgeFilesLines
* Docs: move "Differences between Qt Quick Controls" on its own pageJ-P Nurmi2015-12-142-246/+284
| | | | | Change-Id: Ib00f19f793a4d65b6bd1ba109e92cb310e2d3491 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Introduce PaneJ-P Nurmi2015-12-096-0/+97
| | | | | | | | Provides a background color that matches with the application style and theme. Change-Id: I5e7ea4fededaaf46687a2ea0391f43dbf55e3b42 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Rename Panel to PopupJ-P Nurmi2015-12-095-15/+15
| | | | | | | | | Popup is a more descriptive name. Furthermore, this name change opens the door for another type called Pane. It gives the appropriate background color for the current style & theme. Change-Id: Idb91d37e807f62e870b50f0b656e84ee2d43a9fb Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Docs: Material styleJ-P Nurmi2015-12-094-0/+182
| | | | | Change-Id: Id7a3bc48bb97136d11679c64f424d9c1d81e476e Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* GroupBox: add an example of a checkable groupboxJ-P Nurmi2015-12-092-0/+48
| | | | | | | Adjust the size calculation so that the example works smooth. Change-Id: Iaf25107b0cfaa3ceef0caeba120d1bd74c9bc854 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Docs: Universal styleJ-P Nurmi2015-12-045-0/+195
| | | | | Change-Id: Ifd5e3d0d25384310b358c5e3bd0d82e8cdef7b53 Reviewed-by: Topi Reiniö <topi.reinio@theqtcompany.com>
* Add ComboBoxJ-P Nurmi2015-12-0413-0/+261
| | | | | Change-Id: I4cfc2367db92786097a1ce66bd4b5a2f71322a2e Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Add MenuMitch Curtis2015-12-027-0/+172
| | | | | | | | | An item-based menu derived from QQuickPanel. Eventually we'd like to make Panel itself a QQuickItem, as it makes both the implementation and the actual usage of Menu a lot easier. Change-Id: Ic1bf2a05ab98d9e17824c402ed8326ef65d26c69 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Remove ThemeMitch Curtis2015-11-276-6/+3
| | | | | | | | | Given the presence of alternative styles, we'd like to focus on making the default style as performant as possible. Removing Theme usage is a step towards this. Change-Id: I8f76dc98442e6c02703885591a44758f40c7a362 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Add ItemDelegateJ-P Nurmi2015-11-258-0/+190
| | | | | Change-Id: I133be230d0d4b2fd36565f8f05d91426c314a085 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Remove outdated paragraph from styling documentationMitch Curtis2015-11-191-5/+0
| | | | | Change-Id: If98b7296964b457e6a073cb232ca2ef1e024fb1d Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Document DrawerMitch Curtis2015-11-093-0/+15
| | | | | Change-Id: Ifa4b5e0423752ab1fa9c74f318d9104a47fd31de Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
* Repurpose ExclusiveGroup to ButtonGroupMitch Curtis2015-11-061-1/+1
| | | | | | | | | | 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>
* Remove BusyIndicator::indicatorJ-P Nurmi2015-11-025-5/+5
| | | | | | | | | The indicator -property became redundant when contentItem was promoted to the Control base type. The content item is automatically resized to the available size, so it's even more convenient to use. Change-Id: I92435e1105171e45838ef1f49f653ad0f8d3152a Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Move the code snippets to a more logical placeJ-P Nurmi2015-10-30106-1/+4031
| | | | | | | | | | They are part of the documentation, but just auto-tested to ensure that they are actually creatable and don't throw warnings. Therefore the logical place is in the doc/snippets folder instead of somewhere in the tests/ tree. Change-Id: Id79a19890f7457ef277e7434a3fc6b6fb20eaa25 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Simplify TextField & TextArea placeholderJ-P Nurmi2015-10-302-8/+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>
* Fix "Customizing SpinBox" qdoc warningsJ-P Nurmi2015-10-291-2/+2
| | | | | | Change-Id: Ia234c696d52b328dda2effa2f2713353556c9ac6 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com> Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com>
* SpinBox: add validator, textFromValue and valueFromTextJ-P Nurmi2015-10-291-0/+0
| | | | | | | Change-Id: I45e01199453ac5fd64b7f98c165cc12eeb0ce8c3 Task-number: QTBUG-48989 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com> Reviewed-by: Nikita Krupenko <krnekit@gmail.com>
* StackView: add dedicated replace transitionsJ-P Nurmi2015-10-231-1/+9
| | | | | | Change-Id: I614d11bb566c96166ebf8bc0d2f5d4286d823a5f Reviewed-by: Kai Uwe Broulik <kde@privat.broulik.de> Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Re-introduce SpinBoxJ-P Nurmi2015-10-227-1/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It came up in discussions at the QtWS that even if we have Tumbler, people still want and expect to have the good old SpinBox control. SpinBox has it pros, such as that it might work better inside a vertical Flickable, and that in multi-field forms it might visually align better with other controls like TextFields. An early mockup of SpinBox was removed in 1c0edf0. A quote from the commit message: SpinBox is a desktop centric control. It won't be provided in Qt Quick Controls 2.0, but maybe later when desktop support is re-considered. Qt Quick Controls 2.0 will focus on embedded and mobile. SpinBox is still available in 1.x. While it is true that SpinBox might not be optimal for touch or mobile, the real reason for the removal was that validating decimal number input is very complicated. Even though locales have well- defined thousand separators and decimal points, users have very different expectations on how strict or relaxed the input validation should be. This change re-introduces a touch-optimized integer-based SpinBox. What makes it more touch friendly than the earlier version is that it has now auto-repeating buttons. Limiting it to integers avoids the decimal number input validation problem. We can introduce a separate DoubleSpinBox later if necessary - just like in QtWidgets. Change-Id: I2819060eb5d1ae6a8c00b0f12be703456085079d Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Doc: Update examplesinstallpath to include the repository nameTopi Reinio2015-10-211-1/+1
| | | | | | | | | | | | The examplesinstallpath variable in .qdocconf files defines the path under QT_INSTALL_EXAMPLES where examples are found. To match the way examples are packaged in Qt 5.6, prefix the install path with the repository name. Task-number: QTBUG-48736 Change-Id: Ic785fb97aaf0846f1d908b32759922281117673a Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com>
* Docs: disambiguate group sectionsJ-P Nurmi2015-10-205-83/+73
| | | | | | Change-Id: Ia6e8a53b8b5261e1efd80dcd3351cd216d34edf4 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com> Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
* Docs: Input groupJ-P Nurmi2015-10-197-0/+80
| | | | | Change-Id: Iba6e3503d20e1f141c5dd81a2eeab6176e809914 Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com>
* Docs: Containers groupJ-P Nurmi2015-10-195-0/+87
| | | | | Change-Id: I5eb80f21edb50413b33a96b934466964e56462aa Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Docs: Navigation groupJ-P Nurmi2015-10-195-0/+59
| | | | | Change-Id: Id866d226fc651a39fffd887600b4bf54d2b7ac6e Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Docs: improve Indicators & Buttons groupsJ-P Nurmi2015-10-192-4/+10
| | | | | Change-Id: Ib82394713f568a7d0bfce90de5888f8501d8bc61 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Docs: include ScrollBar in indicators & add a screenshotJ-P Nurmi2015-10-192-2/+10
| | | | | Change-Id: I1ff8df098a358d39020a63aa8f1d920f620f838e Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Docs: Indicators groupJ-P Nurmi2015-10-154-0/+57
| | | | | Change-Id: I092b50dd0f184523ec28e4145a4e6b1eab1c762a Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Docs: Buttons groupJ-P Nurmi2015-10-1513-0/+76
| | | | | Change-Id: I2945a3c367244ec0b92cc8f2ba84a7b052d9a514 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Improve tst_Gifs::rangeSlider()Mitch Curtis2015-10-141-0/+0
| | | | | | | | | | Use proper, calculated coordinates. Also, increase the duration and decrease delays to make it more pleasant to the eye. Change-Id: If91ade9920a3ecaff966c348c623e603783754b8 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Docs: LabelJ-P Nurmi2015-10-143-1/+7
| | | | | Change-Id: I744f622edbc6589e9371518f82431220b667e03e Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Docs: SwipeViewJ-P Nurmi2015-10-142-0/+14
| | | | | | Change-Id: Iabeb3ebc54f64d2f3d0b008a5f5a16a89f701f85 Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com> Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* Add RangeSliderMitch Curtis2015-10-1410-0/+32
| | | | | | | | | This is basically Slider, except with two handles. It's used to specify a range of values. Task-number: QTBUG-48667 Change-Id: Ib4f9afe5dc8343e307610943d338a2b574a01e4d Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* StackView: add some missing docsJ-P Nurmi2015-10-121-1/+19
| | | | | | Change-Id: Ic9bb568c4c7d7f78b55227e55b039c19eb0f7e0a Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com> Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
* Merge Checkable into AbstractButtonJ-P Nurmi2015-10-121-3/+3
| | | | | Change-Id: I2cb3a244a9a084c67a1e3d1d9bc1c955c8cf0722 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Rename CalendarView to MonthGridJ-P Nurmi2015-10-044-2/+2
| | | | | | | | | | 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>
* Doc: Update example directories in .qdocconfTopi Reinio2015-10-021-2/+2
| | | | | | | Examples are now found under examples/labs. Change-Id: Id138f4123df0511da80161935921efc2742e15ae Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Rename QtQuick.Controls 2.0 to Qt.labs.controls 1.0J-P Nurmi2015-10-0182-147/+142
| | | | | Change-Id: I142622dd85e95ef70b11132e77ccf48701f2cabc Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Rename QtQuick.Calendar 2.0 to Qt.labs.calendar 1.0J-P Nurmi2015-10-0110-17/+17
| | | | | Change-Id: Ief7e28f6c595cb60f15a4960dada24a6c2f5ca3e Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Doc: Use a single documentation project for Controls + CalendarTopi Reinio2015-09-3011-16/+144
| | | | | | | | | | | QML types from QtQuick.Calendar module use their own import statement, but in the documentation they can listed as part of Controls. Edit the landing page and module pages to list (or link to) the usage and QML type info for both modules. Change-Id: I4e711a8d7ae84d888736eea59f5e25dadc1d35d5 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Doc: Fixes required to avoid the following qdoc warningsVenugopal Shivashankar2015-09-281-1/+1
| | | | | | | | | qtquickcontrols2-index.qdoc:28: warning: Can't link to 'No' qquickstackview.cpp:46: warning: Can't link to 'replace()' Change-Id: I44cc2fab7d6b745175d0cbd3636b8025eb415c70 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com> Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Remove ToggleButtonJ-P Nurmi2015-09-251-25/+1
| | | | | | | | 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>
* Initial QtQuick.Calendar docsJ-P Nurmi2015-09-251-1/+1
| | | | | | | The overview is still missing. Change-Id: I081f1684b64fc8b95f59844b8373293523181266 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Docs: fix non-wrapping Tumbler snippetJ-P Nurmi2015-09-241-0/+1
| | | | | Change-Id: I7482b008ed74b7da0eb58c1114b04f8376cda806 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Doc: Replaced the module name qualifier used for QML docsVenugopal Shivashankar2015-09-231-4/+4
| | | | | | | | Also made changes to avoid qdoc warnings about qml snippets. Change-Id: Ide047fe7a4901fcf4b03efdccf457662e60585d2 Reviewed-by: Topi Reiniö <topi.reinio@digia.com> Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Doc: Show the version in QML module \briefTopi Reinio2015-09-231-1/+1
| | | | | | | | | This is a workaround for distinguishing between QtQuick.Controls version 1 and 2 in 'All QML APIs by Module' (modules-qml.html) page, which currently shows identical entries for the two. Change-Id: I4d0bbb201784def3056a57898e1ac619109b9a52 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Add 'Preparing for Migration' section to docs.Mitch Curtis2015-09-221-0/+18
| | | | | | | | | While working on a personal project using Qt Quick Controls, I realized that putting each custom-styled control into its own file would ease the transition to Qt Quick Controls 2. Change-Id: Ic3cbf822d40d63e9cccf3c93d049dc15b1acb63f Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
* Merge Qt Quick Extras into Qt Quick ControlsMitch Curtis2015-09-189-3/+45
| | | | | | | | | | | | 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>
* Docs: move qtquickcontrols qdoc files in the right placeJ-P Nurmi2015-09-1673-0/+833
Change-Id: I864eaf25f586c49c03708fb83e8e99b115cdb3a7 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>