summaryrefslogtreecommitdiff
path: root/tests/auto/controls/data/tst_tabview.qml
Commit message (Collapse)AuthorAgeFilesLines
* Unify license header usageAntti Kokko2016-02-041-3/+13
| | | | | | | Updated BSD license headers Change-Id: I73d67dbc6dbbe7c58d2b9c301b46fb6163243095 Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
* BSD license for QML code in testsJ-P Nurmi2015-03-061-22/+26
| | | | | | Change-Id: Ie45c9b8d5a5d7f92e4b835473b0c76e3a83998b5 Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com> Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* Tests: update license headersJ-P Nurmi2015-02-111-29/+25
| | | | | | | Change-Id: I364c2ee1983f59f4c1b3e4e411b46f71c85599ee Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com> Reviewed-by: Mitch Curtis <mitch.curtis@digia.com> Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>
* Not update TabView.currentIndex when loader insertingLiang Qi2015-02-021-0/+17
| | | | | | | | Autotest is included. Task-number: QTBUG-43701 Change-Id: I60664d78988ee8d099e502e49711d69552e08312 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Fix the update of TabView.currentIndex when inserting/removing tabsJocelyn Turcotte2014-05-071-0/+35
| | | | | | | | | | | | | | | | | - Update currentIndex when adding or inserting tabs. - Make sure that we update the current index before updating the array to avoid a state of currentIndex > count -1 when removing the last tab, where a property binding on TabView.count could try fetching a tab past the array limit through TabView.getTab. - Only decrease currentIndex when removedIndex <= currentIndex to keep the current tab active when possible. Activate the next tab instead of the previous one when the current tab is removed to make it more instinctive to remove multiple tabs successively. - Keep the current behavior of leaving currentIndex to 0 when removing the last tab. Change-Id: I030b86a03ce73f1177b1f04857abbdc2f7ec5835 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Bump QtQuick.Controls import version to 1.2J-P Nurmi2014-04-071-8/+8
| | | | | Change-Id: Idc0b93cbfc2fe23e8be3bcaece672d06555a81f6 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Import QtQuick 2.2J-P Nurmi2014-04-071-8/+8
| | | | | Change-Id: Ifc9719ec6fbbd80b866c01eebc471d0ed121bd16 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Respect Tab::enabledJ-P Nurmi2014-02-211-0/+15
| | | | | | | | | [ChangeLog][QtQuickControls][TabView] Added support for enabling and disabling tabs. Task-number: QTBUG-36356 Change-Id: I97abc8008d479ce6b7a661e5a986c721a4482773 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Fix warning in Tests_TabView::test_mousePressOnTabBarCaroline Chao2013-11-081-1/+1
| | | | | | Task-number: QTBUG-34666 Change-Id: I13506cc7504c71d9411e2b100bec803abb2eaccd Reviewed-by: Liang Qi <liang.qi@digia.com>
* Merge branch 'stable' into devGabriel de Dietrich2013-09-181-0/+22
|\ | | | | | | | | | | | | Conflicts: src/controls/qquickaction.cpp Change-Id: I85255ba5c27c0d8ea023d0867e5963d43f8f1ddb
| * TabView: fix dynamic tab handlingJ-P Nurmi2013-09-031-0/+22
| | | | | | | | | | | | | | Task-number: QTBUG-33162 Change-Id: I873b37bd157230f80237fd40f3e5149fbd0207ca Reviewed-by: Volker Krause <volker.krause@kdab.com> Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* | Update imports to 1.1 and remove version from qmlmodule definitionJens Bache-Wiig2013-09-101-7/+7
|/ | | | | Change-Id: Icb4c6d78225c072da787e4646a55d8cf71a5db7a Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* Don't let tabs grab focus on pressJens Bache-Wiig2013-06-101-1/+1
| | | | | | | | | | | | Tab buttons should never take focus when pressed, but only pass on focus to their child items. Tab focus should only get focus when they are tabbed into. Autotest is updated. Change-Id: I0edad4d893be7ed7066d3a3631ca340e9bf8cb53 Reviewed-by: Liang Qi <liang.qi@digia.com> Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Rename::tabAt(index) to getTab(index)J-P Nurmi2013-05-291-23/+23
| | | | | | | The fooAt() type methods are reserved for coordinate based queries. Change-Id: Iea91bdd29df4fa53cc1c7a07880f466ef2325725 Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* Fix a wrong behavior when mouse click tab in TabViewLiang Qi2013-05-231-3/+52
| | | | | | | | | | When nextItemInFocusChain is out of the TabView, the tabitem in TabBar will get focused. Autotest is included. Change-Id: If5701afa1aeed16383b8d96483342a4629293997 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Introduce support for movable tabsJ-P Nurmi2013-05-211-2/+3
| | | | | | Change-Id: I87a6a582824363197f66f6b7f6f29aa603123458 Reviewed-by: Caroline Chao <caroline.chao@digia.com> Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Mac: respect the system settings in Full Keyboard AccessLiang Qi2013-05-151-24/+24
| | | | | | | | Because we use TableView as ListView, then only SpinBox, TextField, TextAre and TableView could be selected. Change-Id: I65ca106e60a57d86e029647653ae110fd81edaa4 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Fix TabView not to insert duplicate tabsJ-P Nurmi2013-05-071-11/+28
| | | | | | | | | | | | | | There are three ways to add tabs: - declare 'static' Tab { } child elements - call addTab() / insertTab() - Component::createObject(tabView) => Do not rely on the calling order of Component.onCompleted() and make sure that the same tabs are not accidentally re-inserted. Task-number: QTBUG-30873 Change-Id: Ib30cfb676debbb302c5e9f7d757f66aab6fcc684 Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* Add TabView::moveTab(from, to)J-P Nurmi2013-04-301-0/+66
| | | | | | Change-Id: I4996f5156b111d5dc40a50ff0c845bf0dc62ea27 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com> Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Mouse click tab in TabView will focus next in chainLiang Qi2013-04-231-1/+148
| | | | | | | Autotest is included. Change-Id: Id9b210afcf0371c31ab921e13ca01612bec8730f Reviewed-by: Liang Qi <liang.qi@digia.com>
* TabView: support dynamic tabs with createObject() and destroy()J-P Nurmi2013-04-161-0/+15
| | | | | | Change-Id: I4c8e4219de6f510e4790343528fa7b6b502b7722 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com> Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Tests: Destroy created components at the end of the tests functionsCaroline Chao2013-04-111-0/+4
| | | | | | | To ensure the components don't interfere with other functions. Change-Id: Ie22311471021175d23ae47c9e3a1ec603e803f2c Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
* Change imports from QtQuick 2.0 to QtQuick 2.1Caroline Chao2013-03-141-4/+4
| | | | | | Change-Id: If9df032c76e36f385aacd30cc31d6f02574c6f11 Reviewed-by: J-P Nurmi <jpnurmi@digia.com> Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
* Test change index in tabsJens Bache-Wiig2013-03-011-0/+12
| | | | | Change-Id: I6e22d42d64b83581cc7980818bc163441ff02815 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Update TabView API and allow inser/remove of tabsJens Bache-Wiig2013-03-011-0/+47
| | | | | Change-Id: I6b10f539b036811243676f34c0fabe403c263923 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Rename TabFrame to TabViewJens Bache-Wiig2013-02-221-0/+60
Change-Id: I367758fe97656fb5c4aab79c87e80ead2430c69b Reviewed-by: J-P Nurmi <jpnurmi@digia.com>