aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'origin/5.8' into devJ-P Nurmi2017-01-205-9/+67
|\ | | | | | | | | | | | | | | | | | | Conflicts: src/quicktemplates2/qquickswitch.cpp src/quicktemplates2/qquickswitchdelegate.cpp tests/auto/controls/data/tst_dialogbuttonbox.qml tests/auto/controls/data/tst_toolbutton.qml Change-Id: I1da1d6de83c1d9ac854dfce1d6c9d6ba2c460404
| * QQuickSpinBox: enable/disable up/down buttons on range changesJ-P Nurmi2017-01-171-2/+21
| | | | | | | | | | | | | | | | | | | | Previously the buttons were enabled/disabled on range changes only if it caused the value to change. Make sure to update them also when the value does not change. Task-number: QTBUG-58217 Change-Id: Ibab5b8b7a58d5b88341c507a63b69f5a05fdfc1f Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
| * Merge remote-tracking branch 'origin/5.8.0' into 5.8Liang Qi2017-01-143-0/+38
| |\ | | | | | | | | | Change-Id: Ibad627dfcd3389aeddfe08a10d13097c88f081a1
| | * Switch(Delegate): fix handle snappingv5.8.0J-P Nurmi2017-01-122-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When Switch is released, nextCheckState() gets called to set the appropriate check state depending on the handle position. If the check state does not change, it must force a position update to avoid that the handle is left somewhere in the middle. Task-number: QTBUG-57944 Change-Id: I872160dafaa7dbf676b026fcc6ba0d0507a91a05 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
| | * Implement QQuickDialogButtonBox::standardButton(StandardButton)Konstantin Ritt2017-01-051-0/+4
| | | | | | | | | | | | | | | Change-Id: I25935a069127a48c00dae951bc77665be6a429e1 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
| * | Fix tst_toolbutton.qmlJ-P Nurmi2017-01-121-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | A copy-paste mistake. There's no such thing as Qt.LeftToolButton. It evaluated to undefined, and ended up using the default value Qt.LeftButton. Change-Id: Ie8d6714f663daa2bdfed2645a4fdc3e370e236ed Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | | QQuickScrollIndicator: fix layouting on implicit size changesJ-P Nurmi2017-01-201-0/+4
| | | | | | | | | | | | | | | Change-Id: I440dbc1ef97486b6c9129802c2eda7f5d4ca0ebd Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | | QQuickScrollBar: fix layouting on implicit size changesJ-P Nurmi2017-01-201-0/+4
| | | | | | | | | | | | | | | Change-Id: I1816926e7f23324e6143db40d7352524737c0168 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | | Add ScrollBar::interactiveJ-P Nurmi2017-01-201-4/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [ChangeLog][Controls][ScrollBar] Added an interactive-property. A non-interactive ScrollBar is visually and behaviorally similar to ScrollIndicator. This property is useful for switching between typical mouse- and touch-orientated UIs with interactive and non- interactive scroll bars, respectively. Change-Id: Ie98bfa0b5bba94a9751baf3c65f17b850b58fd1f Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | | tst_control: fix TestCase::mouseMove() usageJ-P Nurmi2017-01-1213-57/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | TestCase::mouseMove() does not take a mouse button argument. What we intended to pass as a button argument, was actually used as a 1ms delay (the value of Qt.LeftButton is 1). Change-Id: I5e6e6b05a521702e99418cceba2d0a7cdbc68109 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | | tst_controls: update import versions for controls and templatesJ-P Nurmi2017-01-1242-48/+48
| | | | | | | | | | | | | | | Change-Id: I104bc44c361351719449cab94dcb14c96e91e32f Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | | Add attached StackView.visible propertyJ-P Nurmi2017-01-121-0/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [ChangeLog][Controls][StackView] Added attached StackView.visible property that can be used to control whether items below the top- most item are kept visible. Task-number: QTBUG-56801 Change-Id: Ieead0d476f254886cff5f8457bb5c5d23cb7de8a Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | | Add SwipeView::orientationJ-P Nurmi2017-01-111-1/+24
| | | | | | | | | | | | | | | | | | | | | | | | [ChangeLog][Controls][SwipeView] Added orientation property. Task-number: QTBUG-56031 Change-Id: I4ed47d659ef83cb48f63b703b681bdf1b8662fe8 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | | Merge remote-tracking branch 'origin/5.8' into devJ-P Nurmi2017-01-11193-193/+193
|\| | | | | | | | | | | Change-Id: If797ac58344b20e8de4379343131c097247ba2f2
| * | Welcome to 2017J-P Nurmi2017-01-09193-193/+193
| | | | | | | | | | | | | | | Change-Id: If68cff4efacc7dc5719c8b8e61937e85e9076870 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | | Editors: fix placeholder text alignmentJ-P Nurmi2017-01-102-10/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The internal QQuickPlaceholderText creates an "implicit binding" to the editor's horizontalAlignment, meaning that the placeholder respects the editor's horizontal alignment when explicitly set, and otherwise determines the alignment from the placeholder text's visual direction. [ChangeLog][Controls][TextField] Fixed the horizontal alignment of the placeholder text in right-to-left UIs. [ChangeLog][Controls][TextArea] Fixed the horizontal alignment of the placeholder text in right-to-left UIs. Task-number: QTBUG-55999 Change-Id: If1a8596c35c1920874996277520f1c54430c5f69 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | | Add ScrollBar::snapModeJ-P Nurmi2017-01-103-1/+185
| | | | | | | | | | | | | | | | | | | | | | | | | | | [ChangeLog][Controls][ScrollBar] Added snapMode property incremental or discrete scrolling. Task-number: QTBUG-56569 Change-Id: Id0d463b85063a62b7df6307af8fe8b203155a5de Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | | QQuickTabBar: fix implicit size calculationJ-P Nurmi2017-01-101-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before, the implicit size of TabBar was calculated based on the content size of the ListView that TabBar uses internally. The problem was that ListView calculates the content size based on the explicit size of the items. There was a circular dependency, because TabBar resized the tabs to the size of the view. To avoid the circular dependency, TabBar now calculates the content size based on the total implicit size of the tabs. As before, explicit size is respected for tabs that have it set. [ChangeLog][Controls][TabBar] Added contentWidth and contentHeight properties that are automatically calculated based on the total size of the tab items, but can be manually overridden if desired. This fixes an issue that TabBar was not able to reliably calculate an implicit size, and could in certain scenarios enter an infinite loop due to a circular dependency between the items' sizes and the tabbar's size. Task-number: QTBUG-57858 Change-Id: Ie303cbc54247e87b0affc6bf32c7bf99acea4571 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | | Merge remote-tracking branch 'origin/5.8' into devJ-P Nurmi2017-01-053-0/+197
|\| | | | | | | | | | | | | | | | | | | | | | | Conflicts: .qmake.conf examples/quickcontrols2/quickcontrols2.pro Change-Id: If2f5e40487ba6515ba322f92380573727bdd6bc0
| * | QQuickMenu: fix Repeater supportJ-P Nurmi2017-01-023-0/+197
| | | | | | | | | | | | | | | | | | | | | | | | | | | QQuickMenu had itemChildAdded() copied from QQuickContainer, but it did not actually install an item change listener on the content item so itemChildAdded() got never called. Change-Id: Idfe558c7055b9a3df124b1f009941c423ecef4bb Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | | QQuickDial: handle touch eventsJ-P Nurmi2017-01-031-1/+127
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In comparison to handling synthesized mouse events, handling touch events has the advantage that it gives multi-touch support. That is, it is possible to move multiple dials at the same time, each handling its own touch point. Change-Id: Icabd971147f291fa4df00c6215c847d7976fda5f Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | | QQuickRangeSlider: handle touch eventsJ-P Nurmi2017-01-031-1/+215
| | | | | | | | | | | | | | | | | | | | | | | | This makes it possible to interact with both handles and multiple sliders at the same time. Change-Id: Iba47b8ec31619b3dbec09dbc9ea176735f984e8b Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | | QQuickSlider: handle touch eventsJ-P Nurmi2017-01-034-1/+213
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In comparison to handling synthesized mouse events, handling touch events has the advantage that it gives multi-touch support. That is, it is possible to move multiple sliders at the same time, each handling its own touch point. Change-Id: I713307b0e6b5ee777496fc9ba68a5180d13a6aca Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | | Add DelayButtonJ-P Nurmi2017-01-023-0/+331
| | | | | | | | | | | | | | | | | | | | | [ChangeLog][Controls][DelayButton] Added DelayButton. Change-Id: I94820dfb41ba9b90f0a29cda01ac476b54cf3de8 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | | tst_buttongroup: use TestCase's new createTemporaryObject functionsMitch Curtis2017-01-021-37/+21
| | | | | | | | | | | | | | | | | | | | | | | | This ensures that the appropriate objects are destroyed at the end of each test function. Change-Id: I3b7a07c7d0c0f9d95dfa312c3d1e398fcbaa304d Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* | | SwipeDelegate: rename swipe.rebound to swipe.transitionJ-P Nurmi2016-12-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The "rebound" name originates from Flickable::rebound, but for swipe delegate the transition is not only applied on release, but also when calling swipe.open() or swipe.close(). Therefore the "rebound" name feels a bit off in this context. Furthermore, this patch adds the missing docs and a changelog entry. [ChangeLog][Controls][SwipeDelegate] Added a swipe.transition property that holds the transition that is applied when a swipe is released, or swipe.open() or swipe.close() is called. Change-Id: Ic38ec850c64dd21b8d9deb08609172c6cb0f6d71 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | | tst_scrollindicator: use TestCase's new createTemporaryObject functionsMitch Curtis2016-12-211-9/+5
| | | | | | | | | | | | | | | | | | | | | | | | This ensures that the appropriate objects are destroyed at the end of each test function, even if the test fails. Change-Id: If25a058a6855e747ef3b5f253f486188593493a9 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* | | tst_page: add missing use of createTemporaryObject()Mitch Curtis2016-12-211-3/+1
| | | | | | | | | | | | | | | | | | | | | I missed it in fa766648b234c65b9025ad62f3a29eb83d89ae8f. Change-Id: If3ba0700c1547fbc7af3671b5eeb364055880175 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* | | tst_rangeslider: use TestCase's new createTemporaryObject functionsMitch Curtis2016-12-211-43/+15
| | | | | | | | | | | | | | | | | | | | | | | | This ensures that the appropriate objects are destroyed at the end of each test function, even if the test fails. Change-Id: I3869a87dc6efceb629772ed943aee11dfa25a364 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* | | tst_roundbutton: use TestCase's new createTemporaryObject functionsMitch Curtis2016-12-211-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | This ensures that the appropriate objects are destroyed at the end of each test function, even if the test fails. Change-Id: Iac4d5ad149111bdc5ac5b56bf246424b6f943bce Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* | | Merge remote-tracking branch 'origin/5.8' into devJ-P Nurmi2016-12-202-7/+33
|\| | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/imports/controls/material/DialogButtonBox.qml src/imports/controls/universal/DialogButtonBox.qml Change-Id: I16cbf9912a3526783c21a6f30996f83fce9e02c3
| * | Stabilize tst_combobox::test_modelReset()J-P Nurmi2016-12-131-4/+2
| | | | | | | | | | | | | | | | | | Task-number: QTBUG-57256 Change-Id: I4317242f48f7c94a35d3f0c9a6793ef113b69e77 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
| * | StackView: don’t push duplicate itemsMitch Curtis2016-12-061-3/+31
| | | | | | | | | | | | | | | | | | | | | | | | It doesn’t make sense to do this. Task-number: QTBUG-57266 Change-Id: I23f740356f2727a59aa0a68cb57d2c44edfb6046 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* | | tst_scrollbar: use TestCase's new createTemporaryObject functionsMitch Curtis2016-12-201-23/+9
| | | | | | | | | | | | | | | | | | | | | | | | This ensures that the appropriate objects are destroyed at the end of each test function, even if the test fails. Change-Id: I53624e9cb23af49c37966d3e55d5b07f5a5edf47 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* | | tst_slider: use TestCase's new createTemporaryObject functionsMitch Curtis2016-12-201-40/+14
| | | | | | | | | | | | | | | | | | | | | | | | This ensures that the appropriate objects are destroyed at the end of each test function, even if the test fails. Change-Id: Ia0030b9ea7228dad242e29a439e3859dc0846229 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* | | tst_spinbox: use TestCase's new createTemporaryObject functionsMitch Curtis2016-12-201-45/+16
| | | | | | | | | | | | | | | | | | | | | | | | This ensures that the appropriate objects are destroyed at the end of each test function, even if the test fails. Change-Id: Ieab1117c3d674634c4431cd5eacd7686efbd14b2 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* | | tst_swipeview: use TestCase's new createTemporaryObject functionsMitch Curtis2016-12-201-32/+14
| | | | | | | | | | | | | | | | | | | | | | | | This ensures that the appropriate objects are destroyed at the end of each test function, even if the test fails. Change-Id: I68458505afaa528fbe2ed3d1ea488baba311234d Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* | | tst_switch: use TestCase's new createTemporaryObject functionsMitch Curtis2016-12-201-27/+10
| | | | | | | | | | | | | | | | | | | | | | | | This ensures that the appropriate objects are destroyed at the end of each test function, even if the test fails. Change-Id: I537581612f279e527a0304800bbe153b372e5c12 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* | | tst_switchdelegate: use TestCase's new createTemporaryObject functionsMitch Curtis2016-12-201-16/+6
| | | | | | | | | | | | | | | | | | | | | | | | This ensures that the appropriate objects are destroyed at the end of each test function, even if the test fails. Change-Id: I9907dbc49607a39452a18c5ad68c8acc8748b9da Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* | | tst_tabbar: use TestCase's new createTemporaryObject functionsMitch Curtis2016-12-201-35/+14
| | | | | | | | | | | | | | | | | | | | | | | | This ensures that the appropriate objects are destroyed at the end of each test function, even if the test fails. Change-Id: I4e73e5a1691dc6c68e4e1c8c4e8c53ae9dfb829d Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* | | tst_tabbutton: use TestCase's new createTemporaryObject functionsMitch Curtis2016-12-201-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | This ensures that the appropriate objects are destroyed at the end of each test function, even if the test fails. Change-Id: I6b1b8ea3872d5a4fc00f9786e29d3b7fa433bd11 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* | | tst_textarea: use TestCase's new createTemporaryObject functionsMitch Curtis2016-12-201-27/+10
| | | | | | | | | | | | | | | | | | | | | | | | This ensures that the appropriate objects are destroyed at the end of each test function, even if the test fails. Change-Id: I58b1796152d72cf5f16ac4aa80eeeb133fde4c75 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* | | tst_textfield: use TestCase's new createTemporaryObject functionsMitch Curtis2016-12-201-24/+9
| | | | | | | | | | | | | | | | | | | | | | | | This ensures that the appropriate objects are destroyed at the end of each test function, even if the test fails. Change-Id: I6d9d4fd85331777b6d29e25c6f25e0ced9662427 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* | | tst_toolbar: use TestCase's new createTemporaryObject functionsMitch Curtis2016-12-201-13/+5
| | | | | | | | | | | | | | | | | | | | | | | | This ensures that the appropriate objects are destroyed at the end of each test function, even if the test fails. Change-Id: Id41f6c68be54d16fab3cf83a9bbb462700bc8156 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* | | tst_toolseparator: use TestCase's new createTemporaryObject functionsMitch Curtis2016-12-201-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | This ensures that the appropriate objects are destroyed at the end of each test function, even if the test fails. Change-Id: I65bba3a7ed3ee43756450fef17da6be6219afd70 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* | | tst_toolbutton: use TestCase's new createTemporaryObject functionsMitch Curtis2016-12-201-12/+5
| | | | | | | | | | | | | | | | | | | | | | | | This ensures that the appropriate objects are destroyed at the end of each test function, even if the test fails. Change-Id: Ie6e050fdd77b1711350ecc00f05d2e6bcd979fc5 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* | | tst_button: use TestCase's new createTemporaryObject functionsMitch Curtis2016-12-191-21/+8
| | | | | | | | | | | | | | | | | | | | | | | | This ensures that the appropriate objects are destroyed at the end of each test function. Change-Id: Ia486e46339068a3767910a4ba8c249a39e58d8ed Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* | | tst_drawer: use TestCase's new createTemporaryObject functionsMitch Curtis2016-12-191-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | This ensures that the appropriate objects are destroyed at the end of each test function, even if the test fails. Change-Id: I5ef93db270196b8d2c367cdf74f82391331757c7 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* | | tst_dialog: use TestCase's new createTemporaryObject functionsMitch Curtis2016-12-191-24/+11
| | | | | | | | | | | | | | | | | | | | | | | | This ensures that the appropriate objects are destroyed at the end of each test function, even if the test fails. Change-Id: Id164652edf88a487b6eb630768144e4a23650658 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* | | tst_popup: use TestCase's new createTemporaryObject functionsMitch Curtis2016-12-191-55/+25
| | | | | | | | | | | | | | | | | | | | | | | | This ensures that the appropriate objects are destroyed at the end of each test function, even if the test fails. Change-Id: Ie0123b8dead53967a080cceef144bba15ece19e1 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>