summaryrefslogtreecommitdiffstats
path: root/tests/auto/controls/controls.pro
Commit message (Collapse)AuthorAgeFilesLines
* Introducing TreeViewGabriel de Dietrich2015-02-131-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The TreeView, as currently implemented, extends the TableView by adding support for hierarchical models. In the broad sense, it remains a list view with columns, like TableView. The main architecture is based on TreeModelAdaptor, that wraps the hierarchical model. It keeps track of which items are expanded or collapsed, and also relays model changes to the view. (TreeModelAdaptor is a private type and should be considered as an implementation detail.) The TreeView only supports QAbstractItemModels for the time being, and, just like TableView, relies on roles to pass the data to the view. This also means that model columns are not supported. Selection is supported by ItemSelectionModel which exposes part of the API of QItemSelectionModel. For this, support has been added for QModelIndex and related classes. This requires importing QtQml.Models 2.2 should an actual usage of the TreeView use selection. In the same way, TreeViewStyle currently extends TableViewStyle with the relevant features, like branch indicator. [ChangeLog][QtQuick.Controls] Introducing TreeView With-Help-From: Caroline Chao <caroline.chao@theqtcompany.com> Change-Id: Id3dba240a732744571e4a646b7b98678ab522da6 Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com>
* Merge remote-tracking branch 'origin/5.4' into devJ-P Nurmi2015-01-161-0/+2
|\ | | | | | | | | | | | | | | Conflicts: .qmake.conf tests/auto/controls/data/tst_stackview.qml Change-Id: I54b55d51452e812315f97bcdfd1a8e361a427f56
| * Fix StackView focus handlingJ-P Nurmi2014-11-281-0/+2
| | | | | | | | | | | | | | | | | | | | Make StackView a FocusScope so inner focus changes don't have undesired side effects in other parts of the application. Task-number: QTBUG-42506 Change-Id: I0d901083196cf90f236a24e1dcd2e91bd9f320db Reviewed-by: Mitch Curtis <mitch.curtis@digia.com> Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com>
* | Add autotest for baselinesJan Arve Saether2015-01-061-0/+1
|/ | | | | | | | | | | | | | | | | The heuristic of finding the visual baseline is based on analyzing the rendered pixmap. This is not pretty, but we really need to have a test for baselines in order to not cause future regressions whenever things are changed in the styles. This is the reason why we choose to use a string of 'L's, since the letter has a distinctive baseline. If it turns out that the heuristic gives too many false positives, this approach should be reconsidered. Change-Id: Ic8de576244fa032617ff7546ddbe20dc6910c7bf Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com>
* Centralize determination of "no desktop" configurationsJ-P Nurmi2014-07-181-1/+1
| | | | | | Change-Id: I030012f48668db4f01737ef92fdb7e6e0426e025 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Liang Qi <liang.qi@digia.com>
* Cleanup whitespaceJ-P Nurmi2014-06-241-1/+1
| | | | | Change-Id: I9e84ce56e853a18205aa180cef1ee8ff4f2f678c Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* Remove QtWidgets dependency for WinRTJ-P Nurmi2014-06-241-1/+1
| | | | | Change-Id: Ifacceae8690d2ab4dfaed0d5439b9e29804c1943 Reviewed-by: Andrew Knight <andrew.knight@digia.com>
* Remove Widgets dependency for QNXAndreas Holzammer2014-06-241-1/+1
| | | | | | | | | Changes.txt says that with Qt 5.2.0 dependency for Widgets have been removed for touch based platforms. But QNX is also a touch based platform and its missing. Change-Id: I140842d4501422537175ac5acb07beebe994f0eb Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Tests: Remove insignificant marker for Win7 build with AngleCaroline Chao2014-04-291-2/+0
| | | | | | | | | tst_controls is now passing for the Windows 7 32bit with Angle configuration. Task-number: QTBUG-33029 Change-Id: If0b47b827d97bb654a12bb8a2c9dc98d3b968988 Reviewed-by: Sergio Ahumada <sahumada@blackberry.com>
* Test that attached Keys behavior is identical to TextInput/AreaJ-P Nurmi2014-04-241-1/+2
| | | | | | | | | | Such composite controls that consist of a TextInput or TextArea should offer identical behavior for the Keys attached property on the control itself as it would behave if it was used on the internal editor. Task-number: QTBUG-38289 Change-Id: I4e6d77d2cc1f3c7202418b9aa21d1f40ddd0eb96 Reviewed-by: Liang Qi <liang.qi@digia.com>
* Add Calendar to Qt Quick Controls.Mitch Curtis2014-02-141-0/+2
| | | | | | | | | | | Task-number: QTBUG-29948 [ChangeLog][QtQuickControls] Calendar was added. Calendar allows selection of dates from a grid of days, similar to QCalendarWidget. Change-Id: I279130e704bc0dfd8dfe114ec9b6b49e111faf96 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Remove widget dependency on touch platformsJens Bache-Wiig2013-10-171-1/+1
| | | | | | | | We don't want native styling on touch enabled devices and there is no reason to link against widgets there. Change-Id: I70116a0a94227cb58ae25980b97c4177da75a3c8 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Add a basic Switch controlJens Bache-Wiig2013-09-221-0/+1
| | | | | | | | | This is a very simple switch. I left out text label as this is very mobile oriented. A clicked signal is also debatable as you dont really click on a switch. Change-Id: I84269297cba48f0e81af8f25af5b97acadecdd6a Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* BusyIndicatorJens Bache-Wiig2013-09-091-0/+1
| | | | | | | | A basic BusyIndicator to indicate activity while blocking the UI. Change-Id: Iec88b6a4c7f23b630ebdf445c4cb288684c24cb7 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* test: Mark tst_controls as insignificant on Win7 + AngleSergio Ahumada2013-08-201-0/+2
| | | | | | | | | This only marks tst_controls as insignificant on Windows 7 32bit with the Angle configuration. Task-number: QTBUG-33029 Change-Id: I40decba840e81cb4d4b0975eb0b2da26d12d60e5 Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* Tests: Fix warnings in testsCaroline Chao2013-07-021-1/+2
| | | | | | | | | | | Ignore warning messages when they are expected. Fix real warnings. Also add missing tst_layout.qml to the test pro file. Change-Id: I2a3835d386570aeb993f275793b3e5e69cc41599 Reviewed-by: Liang Qi <liang.qi@digia.com>
* Tests: Add basic autotests for stylesCaroline Chao2013-05-031-1/+2
| | | | | | | Check the styles can be loaded. Change-Id: Ie95ef0de8844372b193249ee467136561d07d099 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Remove hard dependency on widgetsJens Bache-Wiig2013-04-151-1/+1
| | | | | Change-Id: I1fabb4efcc931f12f0a65ac5c66e6e085108269b Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Tests: Remove tst_applicationwindow.qmlCaroline Chao2013-04-121-1/+0
| | | | | | | | | | | | | And replace it by a c++ test. quick_test_main from QtQuickTest uses QQuickView as a top level window. The fact the ApplicationWindow is a Window itself leads to problems when for example the ApplicationWindow is set to visible. Change-Id: Iee8a8dffe52912aaa7e1000a91177f6dd7e3d8cb Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com> Reviewed-by: Liang Qi <liang.qi@digia.com>
* Tests: add tst_splitview.qml to pro fileCaroline Chao2013-04-101-1/+2
| | | | | Change-Id: I17d9f9da317e50b1f406cebd71598547e1aa031f Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
* Add support for auto-positioning of items in a grid layoutJan Arve Saether2013-04-041-0/+1
| | | | | | | | Items will be laid sequentially in the grid, either in LeftToRight mode or TopToBottom mode (depending on the value of the flow property) Change-Id: Ib080517260ac4519171e77abd533cad3f306f70e Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Tests: cleanup QT_DISABLE_DEPRECATED_BEFORE=0J-P Nurmi2013-03-111-2/+0
| | | | | Change-Id: I46c745193eebf3d4fe3859364a2c69faf868de09 Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* Test for RowLayoutJan Arve Saether2013-03-071-1/+2
| | | | | Change-Id: I5359491b174dc95910782c6fa656dc423a3a6602 Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* GroupBox: small fix + add basic autotestsCaroline Chao2013-02-231-1/+2
| | | | | | | | And add a GroupBox in the testbench application. Change-Id: I5581a96addf6b1c2cdb684e4a0d45ab101e510d9 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com> Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* Rename TabFrame to TabViewJens Bache-Wiig2013-02-221-1/+1
| | | | | Change-Id: I367758fe97656fb5c4aab79c87e80ead2430c69b Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Rename ScrollArea to ScrollViewJens Bache-Wiig2013-02-221-1/+1
| | | | | | | | We want to introduce View as a common name for items that are not simple controlss but views controlling other items Change-Id: I13ffc096742ec13023c58b4744ad53084e11cc67 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
* Rename QtDesktop to QtQuick.ControlsJens Bache-Wiig2013-02-211-0/+41
Change-Id: Icc61dbfc74cc2a303b9847e7d2c7ace4a9002046 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>