summaryrefslogtreecommitdiff
path: root/tests/auto
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'origin/5.5' into 5.6Liang Qi2015-10-283-0/+121
|\ | | | | | | Change-Id: I7177ee6f1dc74d7f0d2ac9a3aedcc8d7a00cee41
| * Allow ComboBox to select items with empty textNikita Krupenko2015-10-261-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | ComboBox checks selected text like a boolean value. This check is unnecessary and prevents from item with empty text could be selected. [ChangeLog][ComboBox] ComboBox is now able to select items with empty text. Task-number: QTBUG-42127 Change-Id: Ifaa0598d17c85cee099c88f4e03092137ba17c70 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
| * Avoid real-rounding glitches near ends of a slider's range.Edward Welbourne2015-10-212-0/+102
| | | | | | | | | | | | | | | | | | Floating point doesn't quite reliably satisfy certain standard identities of arithmetic ... Task-number: QTBUG-42358 Change-Id: I7417feedbfc1fd6f59510e0ee6d07d98ff7ddc46 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* | Adding animation interval for tumblerKarim Pinter2015-10-221-0/+6
| | | | | | | | | | | | | | | | | | | | Extending the Tumblers setCurrentIndexAt method with timeinterval, which is set to the animation so while it changes it can move slower then default. Task-number: QTBUG-48680 Change-Id: Ic8e76c604bad928ae7b11cfbea76c11d5d295f80 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* | Qt Quick Extras: remove insignificant_test CONFIG flag.Mitch Curtis2015-10-021-1/+0
| | | | | | | | | | | | | | | | Add qtgraphicaleffects as a dependency to sync.profile. Change-Id: I8f0d0be2f05aeb193ecdd296d7eeedb6cc90fac5 Task-number: QTBUG-46393 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
* | Merge remote-tracking branch 'origin/5.5' into 5.6Simon Hausmann2015-10-023-2/+34
|\ \ | |/ | | | | Change-Id: Ie26c941c33fdd8baab49dc13b84d02e2b83af5e1
| * Fix failing Tumbler tests on OS XMitch Curtis2015-10-011-0/+9
| | | | | | | | | | | | | | | | By default, it’s not possible to tab into certain controls. Change-Id: Ia0941e5016926f65ab58a7391d6271d15b0c5248 Task-number: QTBUG-46393 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>
| * Menus: Clean popup hide and destroy logicGabriel de Dietrich2015-10-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a menu popup gets closed it usually needs to be destroyed right away since we don't recycle its contents. There is an exception, however, and it's when he user triggers a menu item. In this case, we need to proceed in three steps. First, we hide the menu popup, then we emit the triggered signal, and when that one returns, the menu contents can be disposed. If we did all in a single step, we may end up with a crash since we don't support deleting a QtQuick item while it's running a signal handler. Delayed deletions don't work either in the case when the triggered handler ends up running the event loop. Task-number: QTBUG-45182 Task-number: QTBUG-47682 Task-number: QTBUG-48382 Change-Id: Ic39717e09f38df602f641250cd81cf4931863db6 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
| * Merge 5.5 into 5.5.1Oswald Buddenhagen2015-09-111-0/+22
| |\ | | | | | | | | | Change-Id: I6a887182dbed50c8028bd2dbed71e48d5226fac8
| | * Button: only enable mnemonic if button itself is enabled.Mitch Curtis2015-09-071-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | Otherwise users can trigger shortcuts even when buttons are disabled. Change-Id: If97c6a3c3df574a4271c53cf7bcfd8fdb1a059d6 Task-number: QTBUG-48144 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
| * | Menu: Schedule popup deletion when it's about to hideGabriel de Dietrich2015-09-111-0/+1
| |/ | | | | | | | | | | | | | | | | | | This leads to serious memory/OpenGL context leaks on Windows. No such thing has been noticed on Linux which may hint to differences in the backend. Task-number: QTBUG-47682 Change-Id: I274ed98db348ffe2c78707f2c92b812f272c2723 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* | Merge remote-tracking branch 'origin/5.5' into 5.6Liang Qi2015-08-282-1/+61
|\ \ | |/ | | | | Change-Id: Ie81aa6abe8a4acbd201e4938f0cb693a8b3aa567
| * TreeView auto-test: Harden test_indexAt()Gabriel de Dietrich2015-08-191-1/+13
| | | | | | | | | | | | | | | | Also, print extra information when the test is about to fail since it has proven to be a bit flaky lately. Change-Id: I4042cb99eb2b3fcb3677de63cd425d0ade4bdc34 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
| * Make TableView sort indicator follow moved columns.Mitch Curtis2015-08-121-0/+48
| | | | | | | | | | | | Change-Id: I7041fbe141f9f95be3e6d5c6a9f0abf543877194 Task-number: QTBUG-44185 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>
* | tst_delaybutton: remove workaround for crash.Mitch Curtis2015-08-271-12/+6
| | | | | | | | | | | | | | QTBUG-44664 is fixed now. Change-Id: I0645d4522f093057606b53228e99c1d20668f2d2 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>
* | Merge remote-tracking branch 'origin/5.5' into devFrederik Gladhorn2015-08-092-4/+4
|\ \ | |/ | | | | Change-Id: Ifec0f56816809abb90a294b8462391cb7e54c87d
| * Remove unused Qt.LeftButton argument to mouseMove() in auto tests.Mitch Curtis2015-07-272-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | That parameter is actually delay, so a delay of 1 millisecond was being passed. These were found with: git grep "mouseMove\(.*\, .*\, .*\, Qt.LeftButton\)" Change-Id: I00172dcd457aa4aae12d98421bc95525235c9570 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>
* | TreeView: Add rootIndex propertyGabriel de Dietrich2015-07-271-5/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Its purpose is the same as QAbstractItemView::rootIndex and allows to display only the part of the model data that is descendant of this index. The filesystembrowser example has been updated to only show files reachable from the user's home directory. [ChangeLog][TreeView] Added rootIndex property Change-Id: Ib8d9af4ce9d1f341ab509de3cc991773830ba9f4 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* | Merge "Merge remote-tracking branch 'origin/5.5' into dev" into refs/staging/devLiang Qi2015-07-223-11/+57
|\ \
| * \ Merge remote-tracking branch 'origin/5.5' into devGabriel de Dietrich2015-07-223-11/+57
| |\ \ | | |/ | | | | | | Change-Id: I689c18ad192a38581d3058e2a555d6438a8d08e2
| | * TreeView: Track model indexes during selectionGabriel de Dietrich2015-07-043-11/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As we keep track of the previous user-selected row, it can happen that that row is no longer part of the TreeModelAdaptor items if the user collapses it or any of its ancestors (collapsing a node doesn't update the current selection). This will result on the row index pointing to the wrong entry in the model (or a completely invalid one). Instead, we now track the selection with QModelIndexes making it more robust to branch expansion and collapse in the view. We'll still need to account for model changes which means that, in the future, we should invalidate the previous user-selected item. Change-Id: I54ba2582e65515eef95d5f8ad755a8c68568d7ad Task-number: QTBUG-46891 Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com>
* | | Skip Tests_Baselines::test_baselineOffsetGabriel de Dietrich2015-07-221-0/+1
|/ / | | | | | | | | | | | | | | | | The test may be too sensitive to style variations. Until we can verify its validity on Ubuntu 10.04, it will remain skipped. (Blacklisting support is missing for QML auto-tests.) Change-Id: I534803870b28fdf5539a852bd13a7f8c50d5d5ca Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* | Merge remote-tracking branch 'origin/5.5' into devLiang Qi2015-06-292-0/+37
|\ \ | |/ | | | | | | | | | | Conflicts: .qmake.conf Change-Id: I8a32df546611d7a8105ad31ed72f54dbac0b1250
| * ComboBox: Update selected text with item textSanttu Lakkala2015-06-231-0/+11
| | | | | | | | | | | | | | | | | | Bind the text of a inactive ComboBox to the text of the selected popup menu item, so that the text updates when the model changes. Task-number: QTBUG-46611 Change-Id: Ieba4d8ee7d9b37390e805a3bde58bf546c5009b1 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>
| * Fix TableView extra row with headerVisible:falseJoni Poikelin2015-06-041-0/+26
| | | | | | | | | | | | Task-number: QTBUG-46468 Change-Id: I6718bc860f26a287ff4580e4844aec225c0f70b7 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>
* | Remove the whole tst_paint test which is failing on all platforms.Jani Vähäkangas2015-06-053-114/+1
| | | | | | | | | | | | Change-Id: I3e7a611e04e9abc64d77fa1a9497760ae28372ed Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com> Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* | Merge remote-tracking branch 'origin/5.5' into devLiang Qi2015-06-032-37/+30
|\ \ | |/ | | | | Change-Id: Ia13e89e7aaa2a58d15b52d13c0bbd4c4b12c8bf9
| * TreeView auto-test: Remove workaround, use Array APIGabriel de Dietrich2015-05-291-18/+11
| | | | | | | | | | Change-Id: I64309a369065a4d91107527d29c8dfb03dcd738d Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com>
| * TreeModelAdaptor: Monitor model's lifespanGabriel de Dietrich2015-05-211-0/+19
| | | | | | | | | | | | | | | | | | | | | | We make the model adaptor behave as if it had no model set if the model gets deleted. Also, while not strictly necessary, using a QPointer adds some extra safety. Change-Id: Ic6963319678acee0097dcddfea36059f9046b093 Task-number: QTBUG-46214 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com> Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com>
| * Tests: Remove redundant calls to destroy()Caroline Chao2015-05-041-19/+0
| | | | | | | | | | | | | | | | In tst_treeview.qml, destroy() is called in the cleanup() function so it is not necessary to have it in the test functions as well. Change-Id: I580e78c966fa162be23c36c43b59cd6226688941 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* | Merge remote-tracking branch 'origin/5.5' into devLiang Qi2015-04-196-15/+419
|\ \ | |/ | | | | | | | | | | Conflicts: src/controls/TextArea.qml Change-Id: I1edc6fa3b51e58d9aa290c9d099cac2e85ea176c
| * Menu: Add aboutToShow, aboutToHide signalsGabriel de Dietrich2015-04-161-0/+30
| | | | | | | | | | | | | | | | | | | | | | These do the same as for QMenu, and are emitted right before the pop-up is shown or hidden. On Mac, these signals are emitted by the QPA plugin and relayed by QQuickMenu. Task-number: QTBUG-40576 Change-Id: I59113d8d9cc8c5b3140f4f552772d33dd0b6e138 Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com>
| * TreeView: Add indexAt() functionGabriel de Dietrich2015-04-161-0/+57
| | | | | | | | | | | | | | Change-Id: I6a8105d074fd71d9d0dff35d07ba1622093e1d4b Task-number: QTBUG-45351 Reviewed-by: Filippo Cucchetto <filippocucchetto@gmail.com> Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
| * TreeModelAdaptor: Take into account childless expanded itemsGabriel de Dietrich2015-04-161-0/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When removing or moving items, we may call lastChildIndex() with an invalid index because we're not checking for childless items which can be expanded (think about expanding an empty directory). Same thing when relayouting an item. The solution requires testing for the actual children count since hasChildren() count return true even when the item has no children. Change-Id: I0fa6de41e20c6cb2433f8846449e9f1a2989ce91 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
| * Fix TreeView missing visualization of expander image on insert or removeFilippo Cucchetto2015-04-141-0/+62
| | | | | | | | | | | | | | | | | | | | | | | | The current implementation doesn't emit the datachanged signal on the hasChildren role during insertion or remove of rows. This could cause the missing visualization of the expander images in the view. This happen when a new row is inserted inside a leaf node or when a previously not leaf node becomes a leaf because its last child has been removed. Change-Id: I4145cb6bd58fe2efeb38c5c14f10657d956fc6ed Reviewed-by: Filippo Cucchetto <filippocucchetto@gmail.com> Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>
| * MenuBar top level menus are not closed on click after being openedFilippo Cucchetto2015-04-142-19/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fix revert partially what was done for resolving QTBUG-40391. Infact the change QTBUG-40391 caused the propagation of the events that caused the dismiss of a popupMenu. This in turn caused this bug where the click that should close menu is forwarded instead of being swallowed. However for supporting the behavior of context menu outside menubar we added some cases where the developer expect to receive the event that dismissed the popup. The use case is to reopen a dismissed popup on right click (see windows right click behavior on right clicks) Task-number: QTBUG-45315 Change-Id: If5a181b65ed9d879521ac20de577510908125169 Reviewed-by: Filippo Cucchetto <filippocucchetto@gmail.com> Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>
| * Added QQuickMenu reference in QQuickMenuPopupWindowFilippo Cucchetto2015-04-133-3/+75
| | | | | | | | | | | | | | | | | | | | QQuickMenuPopupWindow has not direct reference to the QQuickMenu that created it. This is useful for navigating back from the popup to the QQuickMenu Change-Id: I6b11641ef90c423df9961277bb3e89573d1ed0e0 Reviewed-by: Filippo Cucchetto <filippocucchetto@gmail.com> Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>
* | Improve distribution when snapping to the pixel grid.Jan Arve Saether2015-04-152-3/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The pixel snapping could sometimes cause gaps/spacings between items sometimes got 1 pixel too wide. This wasn't too much of an issue when it varied between 6/7 pixels, but was of course quite noticeable when the spacing was supposed to be 0 pixels. The layout engine has been updated to take care of this, and this patch will remove the old "snap to pixel grid" patches, and instead use new the functionality provided by the engine Task-number: QTBUG-41216 Change-Id: If1f473c350370fca0ed9dff5ff6aa9c2c442c293 Reviewed-by: Paul Olav Tvete <paul.tvete@theqtcompany.com>
* | Say hello to StackLayoutJan Arve Saether2015-04-131-0/+448
| | | | | | | | | | | | Task-number: QTBUG-44077 Change-Id: I85dadc0950617728bca83d5c72ed5a086352b57d Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* | Merge remote-tracking branch 'origin/5.5' into devLiang Qi2015-04-085-17/+299
|\ \ | |/ | | | | Change-Id: I1dc9d8f652e68700dbb5e5ed5ca970b91abf6b5a
| * Fix clicking on a QML submenu causes it to closeFilippo Cucchetto2015-03-294-0/+282
| | | | | | | | | | | | | | | | | | Shielded the menu triggered signal by checking if the given menu item has a submenu. In this case the sub menu is opened and the triggered signal is not emitted. Task-number: QTBUG-40720 Change-Id: I175b5eddc50fcc5b21c41044096d93b3c04e133d Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
| * Port and re-enable tests using the selectedIndexes property.Stephen Kelly2015-03-281-21/+21
| | | | | | | | | | Change-Id: I3ac45d50a5ebf75801e10d64b0661c0809e1e9a5 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
| * Temporarily disable tests which use selectedIndexes()Stephen Kelly2015-03-251-4/+4
| | | | | | | | | | | | | | It is to become a Q_PROPERTY. Change-Id: Ie11b2c0c7884cd13bee24c30dd474aece09ede4f Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* | Merge remote-tracking branch 'origin/5.5' into devLiang Qi2015-03-231-11/+18
|\ \ | |/ | | | | | | | | | | Conflicts: src/layouts/qquicklinearlayout_p.h Change-Id: I6a1777e5d097790edbd442058f12bea0ba337d65
| * Make TreeView auto-tests pass pending list to array changesGabriel de Dietrich2015-03-201-11/+18
| | | | | | | | | | | | | | | | | | | | This should be updated once the two following patches are merged, https://codereview.qt-project.org/107687 https://codereview.qt-project.org/107973 Change-Id: I89a9ee29f4234a489971463e4035d1bc9863d677 Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com>
* | Merge remote-tracking branch 'origin/5.5' into devJ-P Nurmi2015-03-1199-2067/+2751
|\ \ | |/ | | | | Change-Id: If515f72dd9651b482cda7afd76895aefa745fa57
| * Tests: Fix cleanup in tst_shortcut.qmlCaroline Chao2015-03-091-1/+1
| | | | | | | | | | | | | | | | rootObject must be destroyed at the end of the entire test run, and not between data runs. Change-Id: I7e93209a74debee38bc8ae5f6af923fc971de64b Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
| * BSD license for QML code in testsJ-P Nurmi2015-03-0699-2066/+2750
| | | | | | | | | | | | Change-Id: Ie45c9b8d5a5d7f92e4b835473b0c76e3a83998b5 Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com> Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* | Merge "Merge remote-tracking branch 'origin/5.5' into dev" into refs/staging/devFrederik Gladhorn2015-03-0626-115/+368
|\ \ | |/
| * tst_treeview: Enable tests using mouse double clickCaroline Chao2015-03-031-24/+25
| | | | | | | | | | Change-Id: I721dbda1ef45f78a178d7d901dd530039cb66906 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>