aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* tst_swipedelegate: use TestCase's new createTemporaryObject functionsMitch Curtis2016-12-191-77/+32
| | | | | | | | This ensures that the appropriate objects are destroyed at the end of each test function, even if the test fails. Change-Id: Iebec81dd54a8f6b0bde8a3ce10f99322d012cae1 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* tst_radiodelegate: use TestCase's new createTemporaryObject functionsMitch Curtis2016-12-171-7/+3
| | | | | | | | This ensures that the appropriate objects are destroyed at the end of each test function, even if the test fails. Change-Id: Ie553a2603236585f970f8513f1697de2f5d41ba1 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* tst_radiobutton: use TestCase's new createTemporaryObject functionsMitch Curtis2016-12-171-22/+9
| | | | | | | | This ensures that the appropriate objects are destroyed at the end of each test function, even if the test fails. Change-Id: I7326cf69b4998cb12ab8ea0a946419ac85a55d31 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* tst_progressbar: use TestCase's new createTemporaryObject functionsMitch Curtis2016-12-171-19/+7
| | | | | | | | This ensures that the appropriate objects are destroyed at the end of each test function, even if the test fails. Change-Id: Ia0b8bb7e27a3bd1a1af863d1b56a89e089c5663f Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* tst_pane: use TestCase's new createTemporaryObject functionsMitch Curtis2016-12-171-16/+6
| | | | | | | | This ensures that the appropriate objects are destroyed at the end of each test function, even if the test fails. Change-Id: I1c032460f64c1ea09c0b4eebc0b29deec0a43e45 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* tst_pageindicator: use TestCase's new createTemporaryObject functionsMitch Curtis2016-12-171-10/+4
| | | | | | | | This ensures that the appropriate objects are destroyed at the end of each test function, even if the test fails. Change-Id: Ife9d9680dcce6685c43e7ee52cd4782bc6961a3f Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* tst_page: use TestCase's new createTemporaryObject functionsMitch Curtis2016-12-171-19/+7
| | | | | | | | This ensures that the appropriate objects are destroyed at the end of each test function, even if the test fails. Change-Id: I7f61bb8da4b89af8fd3e5f508fe1a683484e799f Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* tst_menuitem: use TestCase's new createTemporaryObject functionsMitch Curtis2016-12-171-9/+4
| | | | | | | | This ensures that the appropriate objects are destroyed at the end of each test function, even if the test fails. Change-Id: I5da1e875099cd134a69ac5f6d2593d930e0702b5 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* tst_label: use TestCase's new createTemporaryObject functionsMitch Curtis2016-12-171-6/+3
| | | | | | | | This ensures that the appropriate objects are destroyed at the end of each test function, even if the test fails. Change-Id: I35f93fe3777ddaa2eca3239b4eb28030cf3dfe3b Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* tst_itemdelegate: use TestCase's new createTemporaryObject functionsMitch Curtis2016-12-171-6/+3
| | | | | | | | This ensures that the appropriate objects are destroyed at the end of each test function, even if the test fails. Change-Id: Ia0ae26235b8e466b80dd674a3d1f530795ade165 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* tst_groupbox: use TestCase's new createTemporaryObject functionsMitch Curtis2016-12-171-13/+5
| | | | | | | | This ensures that the appropriate objects are destroyed at the end of each test function, even if the test fails. Change-Id: I1a90f1132c50abf2f2e6c978aa9248fbb385a71b Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* tst_frame: use TestCase's new createTemporaryObject functionsMitch Curtis2016-12-171-13/+5
| | | | | | | | This ensures that the appropriate objects are destroyed at the end of each test function, even if the test fails. Change-Id: Idb91be7036984e752134f85858eae2cd90cec462 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* tst_dialogbuttonbox: use TestCase's new createTemporaryObject functionsMitch Curtis2016-12-171-13/+8
| | | | | | | | This ensures that the appropriate objects are destroyed at the end of each test function, even if the test fails. Change-Id: Idcd59bfd851b307fdb9621f01ad90c41523d6049 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* tst_control: use TestCase's new createTemporaryObject functionsMitch Curtis2016-12-161-39/+15
| | | | | | | | This ensures that the appropriate objects are destroyed at the end of each test function, even if the test fails. Change-Id: Id5e5999c49592c030278a5d4b078b97dc8fbb829 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* tst_container: use TestCase's new createTemporaryObject functionsMitch Curtis2016-12-161-4/+2
| | | | | | | | This ensures that the appropriate objects are destroyed at the end of each test function, even if the test fails. Change-Id: I6d446a7aacf22c66de97d320dc050c9ec10600a0 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* tst_checkdelegate: use TestCase's new createTemporaryObject functionsMitch Curtis2016-12-161-7/+3
| | | | | | | | This ensures that the appropriate objects are destroyed at the end of each test function, even if the test fails. Change-Id: I459eaa5314c7d64940d97d82812250fe157010bb Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* tst_checkbox: use TestCase's new createTemporaryObject functionsMitch Curtis2016-12-161-27/+10
| | | | | | | | This ensures that the appropriate objects are destroyed at the end of each test function, even if the test fails. Change-Id: Id70e4dbe5385e91bf2c2261a0e0a1071df2f09c2 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* tst_abstractbutton: use TestCase's new createTemporaryObject functionsMitch Curtis2016-12-161-12/+5
| | | | | | | | This ensures that the appropriate objects are destroyed at the end of each test function. Change-Id: Ib63719e134eb207cfc712b3a38e015cf853b6ae6 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* tst_busyindicator: use TestCase's new createTemporaryObject functionsMitch Curtis2016-12-161-4/+2
| | | | | | | | This ensures that the appropriate objects are destroyed at the end of each test function. Change-Id: I726361980a2c7b72c3ef61eff990fe9f5d862983 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* tst_dial: use TestCase's new createTemporaryObject functionsMitch Curtis2016-12-161-24/+29
| | | | | | | This ensures that all items are destroyed when they should be. Change-Id: Ifcba4f61b840e8feefb47519dc53ca5d5fefc08a Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* tst_tumbler: use TestCase's new createTemporaryObject functionsMitch Curtis2016-12-161-35/+17
| | | | | | | | This removes the cleanupItem hack and ensures that all items are destroyed when they should be. Change-Id: I0c60c6aceeab63339d73ce42d465fd9739f48e21 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* tst_tooltip: fix signal spy ownership for the shared tooltipJ-P Nurmi2016-12-161-1/+7
| | | | | | | | | Don't create a new signal spy instance per test data row for the shared tooltip. The shared tooltip instance stays the same for the life time of the whole test case. Simply do the same for its signal spy. Change-Id: Ib42fcf716679cb7a90e9b4a03e529bb5f1ce994f Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* qquickstackview_p.cpp: use correct includeLiang Qi2016-12-151-1/+1
| | | | | | | | | | | qv4script_p.h is a temporary solution for qv4qmlcontext_p.h when qt5 meta repo doesn't have it. This amends ad20f3fc804d5aac9b727ce1ceda429264087218. Change-Id: I1d22ee63074842937bc7f72bca18a73e61964bb9 Reviewed-by: J-P Nurmi <jpnurmi@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* qquickstackview_p.cpp: add missing includeJ-P Nurmi2016-12-151-0/+1
| | | | | | | | | | | The actual header that should be included is qv4qmlcontext_p.h, but this is a new header in qtdeclarative that is not yet available in qt5 meta repo. Therefore we temporarily include another header to get an indirect include of qv4qmlcontext_p.h to fix the build break and get qt5 integrated. Change-Id: If12e5d7652a9710420f08fe4c6bff364f65656a4 Reviewed-by: J-P Nurmi <jpnurmi@qt.io> Reviewed-by: Liang Qi <liang.qi@qt.io>
* tst_swipedelegate: use more reliable swipe.closed()J-P Nurmi2016-12-141-2/+12
| | | | | | | | | | | | | | Interactive SwipeDelegate auto tests wait for animations to finish, before they continue sending next mouse events, because sending mouse events while a transition is running would lead to unexpected results. (Fuzzy) comparing swipe.position is no longer a reliable way to test that the delegate has been fully opened or closed. Since the value is animated smoothly and updates frequently during the transition, fuzzy compare often succeeds right before the transition finishes. Change-Id: Id83cac6bc3b3ba4e2c34ab15837e033d1ffb1c1e Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* SwipeDelegate: add swipe.opened() and swipe.closed() signalsJ-P Nurmi2016-12-143-32/+102
| | | | | | | | Emitted when the delegate has been opened or closed by swipe, _and_ the respective transition has finished. Change-Id: I8a242e24352d311fd8b41ceafd0a36619eff73f2 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* SwipeDelegate: transition swipe.positionJ-P Nurmi2016-12-146-76/+126
| | | | | | | | | | | | | | | Previously the value of swipe.position jumped on mouse/touch release, or when open() or close() was called. Transitioning the swipe.position value smoothly to the target value makes it possible to use it as opacity/scale/etc. for the side items. Notice that this is backwards compatible with the old behavior. If no transition is set, the value jumps the same way it did before. In that case, Behavior on x makes the movement smooth. Task-number: QTBUG-57242 Change-Id: Id9c06b5b08fa73f2f575787e16dc6e20e4ccb545 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Material: prevent ripples from getting stuck in disabled stateJ-P Nurmi2016-12-131-1/+3
| | | | | | | | | | | Ripples don't trigger when the ripple item itself is disabled. This is used in SwipeDelegate to prevent ripples when a swipe is open. Now that swipe.position is transitioned, a release event comes before the swipe position reaches 0, so we must ensure that the wave exits even if it's not yet enabled. Change-Id: Ib4d58ff974262331898db2133e06624eb890f9ed Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Doc: tweak wording for the moved() signalsJ-P Nurmi2016-12-022-2/+2
| | | | | Change-Id: I932ed06617cf237c20a1473f4f4270898ad83337 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Add QQuickSpinBox::valueModified()J-P Nurmi2016-12-024-2/+60
| | | | | | | | | | | | | | Another name candidate was valueEdited(), but it was left available in case we want to have the respective signal for text editing in the future. [ChangeLog][Controls][SpinBox] Added a valueModified() signal that is emitted whenever the value of a spin box has been interactively modified by the user by using either touch, mouse, wheel, or keys. Task-number: QTBUG-57203 Change-Id: I705c7e63d23235f51d401abf27f3458f8a5b0589 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Add AbstractButton::toggled() signalJ-P Nurmi2016-12-0211-9/+53
| | | | | | | | | | [ChangeLog][Controls][AbstractButton] Added a toggled() signal that is emitted whenever a checkable button is interactively toggled by the user by using either touch, mouse, or keys. Task-number: QTBUG-57203 Change-Id: If0b0d71d19cbed00f04d8a4309894a055c4254c6 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Side Panel exampleJ-P Nurmi2016-12-0112-1/+322
| | | | | | Task-number: QTBUG-53169 Change-Id: I1d84d2fc9cbfce0fa71703f469bb6d5030e41d67 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Merge remote-tracking branch 'origin/5.8' into devJ-P Nurmi2016-12-0116-126/+890
|\ | | | | | | | | | | | | | | | | | | Conflicts: src/imports/controls/SpinBox.qml src/imports/controls/material/SpinBox.qml src/imports/controls/universal/SpinBox.qml tests/auto/controls/data/tst_swipedelegate.qml Change-Id: Ie1d1f487890f0a9f80a00df5e813e1d2e8303fe5
| * Merge remote-tracking branch 'origin/5.7' into 5.8J-P Nurmi2016-12-012-0/+64
| |\ | | | | | | | | | | | | | | | | | | Conflicts: tests/auto/controls/data/tst_swipedelegate.qml Change-Id: I15bd0366f1ad0ce35f1dce6d790da6dd5f0221f9
| | * SwipeDelegate: fix animations when releasing from a drag5.7Mitch Curtis2016-11-302-0/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9812a9c changed the order in which the pressed and position state is set. Before, when releasing after swiping, it would be: set pressed to false => set position After 9812a9c, it became: set position => set pressed to false The original order is necessary to ensure that animations can rely on being enabled *before* position changes, as their enabled expression typically looks something like this: enabled: !control.down This patch duplicates the contents of QQuickAbstractButton::mouseUngrabEvent() for now, with a TODO comment to ensure that it's moved into a private helper that we can call later on. Task-number: QTBUG-57350 Change-Id: I31af7a665fb2d0e37548df31560ed7bbb0c3cadb Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
| * | Allow specifying a relative style path in qtquickcontrols2.confJ-P Nurmi2016-11-303-13/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The style path is resolved relative to the location of config file. Even though qtquickcontrols2.conf is normally located in the root of resources, Quick Designer uses QT_QUICK_CONTROLS_CONF to set a custom location for the preview, where the standard config location is not feasible. This patch extends the config and style lookup further by allowing to specify a relative path to a custom style for the Quick Designer preview. Change-Id: Iad9c459421eefbf7a5bcbedfea59f5f16a1d3a39 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
| * | Fix typo in description of qquickcalendar.cppMarco A. Piccolino-Boniforti2016-11-301-1/+1
| | | | | | | | | | | | | | | | | | Change-Id: I7e21c1aeaa205c1dd4e7985837897899e7a39b11 Reviewed-by: Sami Makkonen <sami.makkonen@qt.io> Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
| * | SpinBox: fix input method hints to get the appropriate VKBJ-P Nurmi2016-11-293-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | SpinBox operates on integers. Task-number: QTBUG-56837 Change-Id: Ib77cded8c4483fa78816d004692cacb3532deedd Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
| * | Dial: add missing wheel handlingJ-P Nurmi2016-11-293-0/+63
| | | | | | | | | | | | | | | | | | | | | | | | [ChangeLog][Controls][Dial] Added support for wheel handling when wheelEnabled is set to true. Change-Id: If0bc2f0ea9d7cde7726739cdfdbd795c908981f0 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
| * | Merge remote-tracking branch 'origin/5.7' into 5.8Liang Qi2016-11-287-22/+342
| |\| | | | | | | | | | | | | | | | | | | | | | Conflicts: src/imports/controls/doc/src/qtquickcontrols2-differences.qdoc sync.profile Change-Id: I554c40516030075142f9af1dd5c66fdca2b78b9a
| | * Merge remote-tracking branch 'origin/5.6' into 5.7Liang Qi2016-11-241-13/+0
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: sync.profile Change-Id: Ie87e9b6e2d976b6ed433a8d747a83cf0d27bed95
| | | * remove dependencies from sync.profileOswald Buddenhagen2016-11-061-14/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | the CI obtains them from the qt5 super repo nowadays. Change-Id: Icdcaa7ad856eb493448398f9180ecc4b642262d9 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@qt.io>
| | * | Merge remote-tracking branch 'origin/5.7.1' into 5.7Liang Qi2016-11-245-5/+331
| | |\ \ | | | | | | | | | | | | | | | Change-Id: I74c00c0b5c36cc96db8bdbd7c1c2a77d6e37d6e7
| | | * | Fix popups to close on click outsidev5.7.1J-P Nurmi2016-10-254-5/+135
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a popup closes itself on press outside, it accepts the press event so that it doesn't propagate to other popups or the content below. We must make sure that such closing popup does not become the mouse grabber, because it doesn't make sense to route the subsequent mouse events to the popup that was just closed. Change-Id: I80c6e26a1d94aa1526a61862f00af2fd0778aa82 Task-number: QTBUG-56697 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
| | | * | Add changes file for 5.7.1Jani Heikkinen2016-10-211-0/+196
| | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I713bb793a0c4fe423bc8d27d15e0802e9de5a622 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
| | * | | Doc: clarify the feature comparison tableJ-P Nurmi2016-11-231-7/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changing styles at runtime is not possible in QQC2. Add also footnotes that QQC1 may not provide optimal performance on embedded and mobile. Change-Id: Iea691116eacdcf73482ecd52fd1e9c945a788f9a Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>