| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |\
| |
| |
| |
| |
| |
| |
| | |
Conflicts:
.qmake.conf
tests/auto/controls/data/tst_stackview.qml
Change-Id: I54b55d51452e812315f97bcdfd1a8e361a427f56
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
| |
Change-Id: I030012f48668db4f01737ef92fdb7e6e0426e025
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Liang Qi <liang.qi@digia.com>
|
| |
|
|
|
| |
Change-Id: I9e84ce56e853a18205aa180cef1ee8ff4f2f678c
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
|
| |
|
|
|
| |
Change-Id: Ifacceae8690d2ab4dfaed0d5439b9e29804c1943
Reviewed-by: Andrew Knight <andrew.knight@digia.com>
|
| |
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
| |
A basic BusyIndicator to indicate activity while blocking
the UI.
Change-Id: Iec88b6a4c7f23b630ebdf445c4cb288684c24cb7
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
|
| |
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
| |
Check the styles can be loaded.
Change-Id: Ie95ef0de8844372b193249ee467136561d07d099
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
|
| |
|
|
|
| |
Change-Id: I1fabb4efcc931f12f0a65ac5c66e6e085108269b
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
| |
Change-Id: I17d9f9da317e50b1f406cebd71598547e1aa031f
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
|
| |
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
| |
Change-Id: I46c745193eebf3d4fe3859364a2c69faf868de09
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
|
| |
|
|
|
| |
Change-Id: I5359491b174dc95910782c6fa656dc423a3a6602
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
|
| |
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
| |
Change-Id: I367758fe97656fb5c4aab79c87e80ead2430c69b
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
|
| |
|
|
|
|
|
|
| |
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>
|
|
|
Change-Id: Icc61dbfc74cc2a303b9847e7d2c7ace4a9002046
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
|