aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/doc/snippets
Commit message (Collapse)AuthorAgeFilesLines
* Add QQuickAbstractButton::downMitch Curtis2016-04-152-2/+2
| | | | | | | | | | | | | | | | | This property will determine whether or not the button is visually pressed. Having such a distinction allows users more control over their controls. The patch also fixes the problem with ComboBox where pressing on the ComboBox when it's open would cause a delegate in the popup to show as being pressed. Unless explicitly set, this property follows the value of the pressed property. To return to the default value, set it to undefined. Change-Id: I29ecf325ed2ede125613f0c878b0427937599866 Task-number: QTBUG-51005 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Doc: add 2-suffix to the image assets and snippetsJ-P Nurmi2016-04-13131-0/+0
| | | | | Change-Id: Ib8050cb3baefe07d28c7e2dcec64af155d2d7c9b Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Add SwitchDelegateMitch Curtis2016-04-133-0/+116
| | | | | | | | | | | SwitchDelegate is an item delegate that is used in lists, and can be checked and unchecked. It derives from QQuickItemDelegate and hence has background press effects. The order of the indicator and text is reversed (compared to Switch) to reflect what is most commonly seen on mobile. Change-Id: I6f8fca8d1a8c91f2cb9d8bbbb685ad163712dfa1 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Expose checkable where necessary, instead of in QQuickAbstractButtonMitch Curtis2016-04-135-8/+0
| | | | | | | | | | | | | QQuickCheckBox, QQuickRadioButton and QQuickSwitch are inherently checkable, so having this property available to QML doesn't make sense. QQuickButton and QQuickMenuItem are the two classes that need to expose the property. Change-Id: Ic421c195295c4bef0fc934c98fa9e781d98c9b67 Task-number: QTBUG-51554 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Add RadioDelegateMitch Curtis2016-04-113-0/+116
| | | | | | | | | | | RadioDelegate is an item delegate that is used in lists, and can be checked and unchecked. It derives from QQuickItemDelegate and hence has background press effects. The order of the indicator and text is reversed (compared to RadioButton) to reflect what is most commonly seen on mobile. Change-Id: I143ee9a30cd8ce1d624354f4cb981c41dfddc2d2 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Add CheckDelegateMitch Curtis2016-04-113-0/+116
| | | | | | | | | | | | CheckDelegate is an item delegate that is used in lists, and can be checked and unchecked. It derives from QQuickItemDelegate and hence has background press effects. The order of the indicator and text is reversed (compared to CheckBox) to reflect what is most commonly seen on mobile. Change-Id: I6fdac226fe87247052389b2e49f6cf20d7be44fb Task-number: QTBUG-52208 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Docs: add examples how to sync active states for ScrollBar & IndicatorJ-P Nurmi2016-03-232-0/+92
| | | | | Change-Id: I353f9c8b0dec4eef71d27300645a1dc3cbca82cd Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Introduce ToolTipJ-P Nurmi2016-03-226-0/+282
| | | | | | Change-Id: I917f7e83219788fc63389773eb07ee39757bed7f Task-number: QTBUG-51003 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Remove RangeSlider::track in favor of Control::backgroundJ-P Nurmi2016-03-211-39/+0
| | | | | | | In the series of minimalizing the delegate APIs. Change-Id: I11e519f5226bf44d18b42fd31276c5528b18ec46 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Remove Slider::track in favor of Control::backgroundJ-P Nurmi2016-03-212-39/+2
| | | | | | | In the series of minimalizing the delegate APIs. Change-Id: I664f4227ff55876be2594c8855dacc7c92eddc94 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* ProgressBar: use contentItem instead of indicatorJ-P Nurmi2016-03-211-3/+2
| | | | | Change-Id: I8bd21b32b6f3d333c119d77b629b46fe411c06eb Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* ScrollBar: use contentItem instead of handleJ-P Nurmi2016-03-211-1/+1
| | | | | | | | Thanks to virtual resizeContent() we can finally use contentItem like everywhere else, and cleanup the special handle item. Change-Id: I9e52ec3ff327d19cda3d85d2e2d9b73d80442bbc Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* ScrollIndicator: use contentItem instead of indicatorJ-P Nurmi2016-03-211-1/+1
| | | | | | | | Thanks to virtual resizeContent() we can finally use contentItem like everywhere else, and cleanup the special indicator item. Change-Id: Ia2bd62684d49a05c199e490750a31c13d2c22182 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Rename Qt Labs Controls to Qt Quick Controls 2 - doc asset filenamesMitch Curtis2016-03-18116-0/+0
| | | | | | | | | This renames all documentation assets (snippets, images), but leaves .qdoc files and the .qdocconf file in an attempt to avoid conflicts with controls 1. Change-Id: I08692233e8d645de8d9746fe74edc14d31bb744e Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Add SwipeDelegateMitch Curtis2016-03-154-0/+203
| | | | | | | | | | SwipeDelegate presents a view item that can be swiped left or right to expose more options or information. It is used as a delegate in views such as ListView. Change-Id: I7533a2b223f652993b6cee730930ea6dc125c869 Task-number: QTBUG-51610 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Doc: update doc Qt Labs ControlsNico Vertriest2016-03-104-13/+122
| | | | | | Change-Id: I49a8632b0561483e6090577ae17fd7bdeb4da6ec Task-number: QTBUG-50933 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* ToolBar: remove doc references to frameJ-P Nurmi2016-02-091-38/+0
| | | | | Change-Id: I6261af1715d745a425ed17d5a3853b83811f5863 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Frame: migrage from frame to backgroundJ-P Nurmi2016-02-091-40/+0
| | | | | Change-Id: I4478580026d4dba8994d09e8d0264b44150631d5 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* GroupBox: migrage from frame to backgroundJ-P Nurmi2016-02-091-41/+0
| | | | | Change-Id: Ice0b983a89367c3d4cae1bfbc9500bf98ad90ba8 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Switch: migrate from label to contentItemJ-P Nurmi2016-02-061-1/+1
| | | | | Change-Id: Ic287fc207b689d5f4a252a527b536272ad94c057 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* ItemDelegate: migrate from label to contentItemJ-P Nurmi2016-02-061-1/+1
| | | | | Change-Id: I928192b1b5d31e077032cba31f1bde3bf35491f3 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* RadioButton: migrate from label to contentItemJ-P Nurmi2016-02-061-1/+1
| | | | | Change-Id: Ic2b26c7d61f56ee245de3aee3cbace54014a9cfa Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* CheckBox: migrate from label to contentItemJ-P Nurmi2016-02-061-1/+1
| | | | | Change-Id: Ie35fc6a9a5424c6f002480fc461b7cd5fe84753b Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* ToolButton: migrage from label to contentItemJ-P Nurmi2016-02-061-1/+1
| | | | | Change-Id: Iacc8ba21e48f40062d0784c76d33dbf79ce803e0 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Button: migrate from label to contentItemJ-P Nurmi2016-02-061-1/+1
| | | | | Change-Id: Icccab45dec0dafc907847eb0151b60bd9320ab9a Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Introduce PaneJ-P Nurmi2015-12-092-0/+79
| | | | | | | | 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-093-10/+10
| | | | | | | | | 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>
* GroupBox: add an example of a checkable groupboxJ-P Nurmi2015-12-091-0/+48
| | | | | | | Adjust the size calculation so that the example works smooth. Change-Id: Iaf25107b0cfaa3ceef0caeba120d1bd74c9bc854 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Add ComboBoxJ-P Nurmi2015-12-045-0/+220
| | | | | Change-Id: I4cfc2367db92786097a1ce66bd4b5a2f71322a2e Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Add MenuMitch Curtis2015-12-022-0/+109
| | | | | | | | | 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-273-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-254-0/+165
| | | | | Change-Id: I133be230d0d4b2fd36565f8f05d91426c314a085 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Remove BusyIndicator::indicatorJ-P Nurmi2015-11-021-1/+1
| | | | | | | | | 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-30105-0/+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>
* Rename QtQuick.Controls 2.0 to Qt.labs.controls 1.0J-P Nurmi2015-10-011-1/+1
| | | | | Change-Id: I142622dd85e95ef70b11132e77ccf48701f2cabc Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Docs: move qtquickcontrols qdoc files in the right placeJ-P Nurmi2015-09-161-0/+43
Change-Id: I864eaf25f586c49c03708fb83e8e99b115cdb3a7 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>