summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
| * Menubar popups should handle only release events of a previous press eventFilippo Cucchetto2015-11-261-0/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When a popup is brought up by a press event for a menu inside the menubar it should not handle the relative next release event if it falls outside the popup. Before forwarding the release event we first check if a previous press event was seen, if not we simply discard the event. Task-number: QTBUG-47295 Task-number: QTBUG-45117 Change-Id: I632fab0a3abfdfc9872f85f99f9d7f50d41526cc Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
| * Fix tst_treeviewJ-P Nurmi2015-11-241-2/+2
| | | | | | | | | | Change-Id: I662eea96b72043d06fe94707e77a9ead5a951e3d Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
| * Skip controls tests when touch screen is present.Friedemann Kleint2015-11-173-0/+30
| | | | | | | | | | | | | | Task-number: QTBUG-49359 Task-number: QTBUG-49360 Change-Id: I96ec6d46de189ec396ef26c0d059c65360da4ec0 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
| * Skip PieMenu tests when touch screen is present.Friedemann Kleint2015-11-171-0/+11
| | | | | | | | | | | | Task-number: QTBUG-49353 Change-Id: I285f058f7df9cceb9d9c52bd822cd3ad772627fc Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* | Merge remote-tracking branch 'origin/5.6' into devLiang Qi2015-11-057-3/+143
|\| | | | | | | Change-Id: I5d230ebc7c3646fce983cb21892cc3ce42854256
| * Fix CircularGauge's tickmark labels all being set 0Mitch Curtis2015-11-041-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | We were relying on model.get() to somehow reevaluate after we'd updated properties of model items, which somehow worked until 4876ea6a18ccdfd72014582aa5d50ab9f6b6ec9e. The correct approach is to do the same thing as we do for styleData.index: rely on the model properties that are exposed to the delegate, which do get updated. Change-Id: I529ab7dcc142187fc185b11658dc5e1496b6d6db Task-number: QTBUG-48839 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
| * BasicTableView: Use ListView's overlay header for the table headerGabriel de Dietrich2015-11-032-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previoulsy we manually positioned the table header over the table contents, which required some manual tweakings. Since 5.4, ListView support overlay headers that we can use them to clean our code in BasicTableView. There is, however, a small issue on Mac where the vertical scrollbar (specially in non-transient mode) is displayed below the table header. Since the header can't span beyond the ListView boundaries, we need to account for the vertical scrollbar width in the ListView's content width. This patch also updates the Desktop style to set the transientScrollBars property and some small tweaks to the Base style. Change-Id: I4433d0703328f23eadb0ae4563fbef5bba0168db Task-number: QTBUG-34344 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
| * 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>
* | | Merge remote-tracking branch 'origin/5.6' into devLiang Qi2015-10-144-3/+34
|\| | | | | | | | | | | Change-Id: I27600aa69f6c236229f80f7d4a278f5ab9640f6b
| * | 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.6' into devLiang Qi2015-09-253-13/+67
|\| | | | | | | | | | | Change-Id: Id85e82801b77faf9a32177838025696aab64f002
| * | 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>
* | | Remove CONFIG += parallel_test.Friedemann Kleint2015-09-022-2/+0
| | | | | | | | | | | | | | | | | | | | | The keyword no longer has a meaning for the new CI. Change-Id: Ia9b92873afde00d2d0a352856f4a531f419b6e85 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
* | | Remove QT_DISABLE_DEPRECATED_BEFORE=0 from tests not using deprecated API.Friedemann Kleint2015-08-252-3/+0
| | | | | | | | | | | | | | | Change-Id: Ia11c855802fb816b2bb4c1620f7bd1385d32ca0e Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* | | Removed broken menubar test caseFilippo Cucchetto2015-08-254-412/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | The menubar test case is broken. It doesn't follow the One Definition Rule of C++ and it's better to replace by adding new tests to the menubar_tst.qml test case. Change-Id: I0ecba87ba7e20daf2034fe4c5848b48776d18ea5 Reviewed-by: Filippo Cucchetto <filippocucchetto@gmail.com> Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* | | MenuBar added test for close on Escape pressedFilippo Cucchetto2015-08-251-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | Pressing the escape key when a menu is currently opened inside the menubar should close it. A new test is added for checking this behavior. Change-Id: I446cd4f22e1f8d756d89bb20712e354a6d7fe909 Reviewed-by: Filippo Cucchetto <filippocucchetto@gmail.com> Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* | | Added menubar click testFilippo Cucchetto2015-08-251-0/+54
|/ / | | | | | | | | | | | | Added a simple test that click on a menubar root menu Change-Id: I699063a01a76a1b116eccbcc0326782908107a71 Reviewed-by: Mitch Curtis <mitch.curtis@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>
* | Adjust popup position by offset of the view in the toplevel windowMarco Martin2015-08-033-0/+110
| | | | | | | | | | | | | | | | | | | | | | In the case a view is embedded in a QWidget, such widget may be embedded anywhere in parent widgets. if it's not at a 0,0 position compared to the toplevel widget, the position needs to be adjusted by the relative position of the QQuickWindow in regards to the toplevel one, in which in this case is given by transientParent() Change-Id: Iafb7a42bdb641850fe77932d14bac9a715059b37 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-197-18/+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 text selection handles to float on topJ-P Nurmi2015-04-161-3/+0
| | | | | | | | | | | | Task-number: QTBUG-42538 Change-Id: Ia6d38819c994dcd9713958faf0c17de2023c9f25 Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>