summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
| * 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-11128-2719/+3519
|\| | | | | | | 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-06128-2718/+3518
| | | | | | | | | | | | 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-0628-117/+370
|\|
| * tst_treeview: Enable tests using mouse double clickCaroline Chao2015-03-031-24/+25
| | | | | | | | | | Change-Id: I721dbda1ef45f78a178d7d901dd530039cb66906 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
| * Merge Extras' styling system into Controls'.Mitch Curtis2015-03-0227-69/+324
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Removes the duplicated style settings functionality in Extras and simplifies the installed styles directory structure. - Extras' Base style is now part of Controls' Base style, eliminating the need for a separate QtQuick.Extras.Styles import. The cost of doing this should be negligible: a few QML files and two images. If we didn't merge Extras' Baste style into Controls', we'd need extras-specific code in qquickcontrolssettings, as the default style search path is: qml/QtQuick/Controls/Styles/ Whereas the Extras Base style would be in: qml/QtQuick/Extras/Styles/ The Extras Base style can't go into Controls' Base style directory, either, because otherwise we'd have two qmldir files there. The Flat style doesn't have this problem because it is all contained in one plugin and gets installed into its own Flat/ folder. - Documentation now lists the Extras controls as \since QtQuick.Extras 1.4. - Adds the customcontrolsstyle auto test to ensure that custom styling is tested. Change-Id: I19ca7a8b7e1c1daa85b272f4ccf9a2f05c76e0d9 Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com> Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
| * TreeView: Always update selection current indexGabriel de Dietrich2015-02-251-19/+4
| | | | | | | | | | | | | | This gets us closer to the classic item views behavior. Change-Id: I1f9ccdaa1c91e807a8726715a520dd0006c6e988 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
| * Be more explicit about color comparison failures in Picture auto tests.Mitch Curtis2015-02-191-5/+12
| | | | | | | | | | Change-Id: Ibc408bf80703636d3e81be3d94dcd406d27998e4 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>
| * Ensure Picture auto test background window is white.Mitch Curtis2015-02-191-0/+5
| | | | | | | | | | | | | | | | Some grabImage-based color comparisons assume that white is the background color, and seem to fail otherwise. Change-Id: I9b355be50fcff24ec33e98df248a197117c97b41 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>
* | TextArea: add editingFinished signalLiang Qi2015-03-032-0/+89
|/ | | | | | | | | | Autotest is included. [ChangeLog][TextArea] add editingFinished signal Task-number: QTBUG-44734 Change-Id: I9d717e6d87c4e45bf2ab447c0a6958b055f993ff Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Added remove function to the SplitViewFilippo Cucchetto2015-02-161-0/+83
| | | | | | Change-Id: Ie30e76356716a546f7eaa3e4c2eccbc15ebf9a5c Task-number: QTBUG-42509 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Introducing TreeViewGabriel de Dietrich2015-02-1310-3/+2406
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Import Qt Quick Extras (the former Qt Quick Enterprise Controls)Mitch Curtis2015-02-1332-2/+3791
| | | | | Change-Id: I59c5c97c564f707da4ce617e25e13ff8124f7d4b Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Use TabFocusBehavior in QStyleHints in QtQuick.ControlsLiang Qi2015-02-1317-43/+16
| | | | | | | The all usages of qt_tab_all_widgets in test were updated. Change-Id: I35393c67f183c4e0695e869553007ea00d38c06a Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Merge remote-tracking branch 'origin/5.4' into devJ-P Nurmi2015-02-121-0/+30
|\ | | | | | | | | | | | | | | Conflicts: src/controls/TableView.qml tests/auto/controls/data/tst_gridlayout.qml Change-Id: I030bc50dc8fcf7b6b00e183dc3a67c3cd012f3fb
| * Fix crash when invalidating a layout while rearrangingDaiwei Li2015-02-051-0/+31
| | | | | | | | | | | | | | | | | | | | Queue the invalidations and upates while rearranging and apply them after. If we do them during, we can delete the items being arranged, leading to a crash. Change-Id: Ic3fe25c52afd1c8d36644f3cf7e3377ba3bec9c1 Task-number: QTBUG-44139 Reviewed-by: Jan Arve Sæther <jan-arve.saether@theqtcompany.com>
* | BasicTableView refactoring: Separate view from user interactionGabriel de Dietrich2015-02-122-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | One of the main tasks of the user interaction code is to manage the current items selection. However, in the upcoming TreeView, the selection will be completely different, but we still want to keep 99% of the view code. Also, in our TreeView implementation, the user's model is proxyfied by a TreeModelAdaptor. But that's not the case in the TableView. So, in order to keep using the same API, we introduce the __model intermediate property. Where it makes sense, TableView and TreeView share common API through BasicTableView. Change-Id: I0a922c1c1093919df7d880d72fe12ed0f372cc08 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* | Tests: update license headersJ-P Nurmi2015-02-11120-3361/+3011
| | | | | | | | | | | | | | 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>
* | Merge remote-tracking branch 'origin/5.4' into devJ-P Nurmi2015-02-032-2/+66
|\| | | | | | | Change-Id: I8dbf36b760f72a60b745197367b812185ead8133
| * Fix asynchronous loading of Calendar.Mitch Curtis2015-02-021-2/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | For some reason, adding the days of the week to the header model on component completion caused some (six) of the delegates to never be loaded. Instead, we assume that for most cases, the locale will be en_US, and only change the model via setProperty if this is not the case. This is enough to cause the delegates to be loaded properly. Change-Id: Ic399be4b3c9e252fec4eafac84bd9d44c61c1150 Task-number: QTBUG-41481 Reviewed-by: J-P Nurmi <jpnurmi@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 wrong calculation of "other" margins in splitviewJan Arve Saether2015-02-021-6/+7
| | | | | | | | | | | | | | | | | | | | The code was quite bogus, as it accessed item, which already was out of scope. The code should evaluate the "other" margin for each iteration in the loop, similar to how its evaluated for implicitWidth. Change-Id: I1e58b1f1ac8296ece550d1af173280ceb2fa2f8b Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* | Allow override of passwordCharacter in TextFieldStyleDaiwei Li2015-02-021-0/+16
| | | | | | | | | | | | Task-number: QTBUG-41276 Change-Id: If384db2387d8e08459fd65c18fdc1541fdf4c084 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* | Add support for Layout.margins in SplitViewJan Arve Saether2015-01-171-0/+44
| | | | | | | | | | | | | | Task-number: QTBUG-39724 Task-number: QTBUG-41559 Change-Id: I59ab8a4848fb3e0178eea15c068c21a61a6f8082 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@theqtcompany.com>
* | Add support for Layout marginsJan Arve Saether2015-01-161-0/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, the way to achieve this is to make a proxy item in a layout: RowLayout { Item { Text { anchors.fill: parent anchors.margins: 9 } } } using Layout margins you can now skip the proxy item and instead write: RowLayout { Text { Layout.margins: 9 } } Note that this is not the same as margins in the QLayout world, as this only controls the margins between the layout container and its items. This feature adds margins to each individual item inside the layout The real logic is done by the container classes: Layouts has the additional logic to adhere to them. SplitView will be done in a separate commit. Task-number: QTBUG-39724 Task-number: QTBUG-41559 Change-Id: I9c5c2a1e0ee43c1200b62009216c9f64d2875baf Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* | Merge remote-tracking branch 'origin/5.4' into devJ-P Nurmi2015-01-1646-29/+1512
|\| | | | | | | | | | | | | | | Conflicts: .qmake.conf tests/auto/controls/data/tst_stackview.qml Change-Id: I54b55d51452e812315f97bcdfd1a8e361a427f56
| * Fix StackView focus handlingJ-P Nurmi2014-11-282-1/+27
| | | | | | | | | | | | | | | | | | | | 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>
| * Fix Spinbox missing value change if minimumValue is setFilippo Cucchetto2014-11-251-1/+4
| | | | | | | | | | | | | | | | | | The Spinbox validator considered invalid an intermediate value preventing the user for inserting a valid value. Task-number: QTBUG-42342 Change-Id: I24d2f9f7d6fb9d5d4f96f81821b37a30421665a3 Reviewed-by: Filippo Cucchetto <filippocucchetto@gmail.com> Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
| * tst_spinbox: destroy dyn. created spinbox before leaving testRichard Moe Gustavsen2014-11-201-0/+1
| | | | | | | | | | Change-Id: Ifceb9c69e94d3c4fd31169785fb6a5b8c8694561 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
| * Slider: don't clamp to the initial press pointJ-P Nurmi2014-11-071-0/+25
| | | | | | | | | | Change-Id: I5115bbab670f534dae44eb19c2208aff21293889 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
| * Workshop manual test (the former Gallery example)J-P Nurmi2014-11-0431-0/+1128
| | | | | | | | | | | | Change-Id: Ib62be83b1652777e7603a262a8a89c132d3766e7 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com> Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com>
| * Share QtQuickControlsTestApp used by auto tests also for manual testsJ-P Nurmi2014-11-042-14/+56
| | | | | | | | | | | | Change-Id: I5853c6c4c315aebdc378af1f3c0e6d34a2b19115 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com> Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com>
| * Slider: Hover only on the handleGabriel de Dietrich2014-10-311-0/+4
| | | | | | | | | | | | | | | | | | | | Most styles rely on the handle being hovered, not the whole slider. [ChangeLog][Slider] The hovered property is set only when the handle is hovered, not anymore on the groove Change-Id: I749b076c98fba8e344218e46637ec00d24c0250c Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
| * Revert "qquickrangemodel: don't emit signals before component is completed"J-P Nurmi2014-10-302-0/+86
| | | | | | | | | | | | | | | | | | | | | | This reverts commit 774f2aa14e8742d77bb92968b06fab4dc35d79b4 that broke sliders (auto test for RangeModel included to prevent that from happening again) in the Qt Quick Enterprise Controls gallery. Some sliders with a hard-coded range [0..360] and value 240 ended up having a value of 0 at Component.onCompleted. Change-Id: Ib3024c51c0552ac06528ba47b08e1a33a5f48324 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
| * Dialogs: FileDialog can only be modal on WindowsShawn Rutledge2014-10-301-0/+4
| | | | | | | | | | | | | | The autotest has been failing on Windows because of this. Change-Id: I6ec42a256455d7a71a522fa7e75dc44f93b741ea Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
| * Make the cursor and selection handle delegates private for nowJ-P Nurmi2014-10-301-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The API is not ideal, we don't want to lock this thing down like as it is now. All styles implemented so far created CursorHandleStyle.qml and SelectionHandleStyle.qml so perhaps that's the better way to go. Furthermore, there's never going to be multiple occurrences of the handle pairs, so it should be one shared instance. Thus, the relevant style delegates probably shouldn't be sprinkled around various control styles... So, for now, the most pragmatic solution is to make the handles and cursors internal since we don't have time to revamp it before 5.4.0. Change-Id: Ib9fcc4a431bb510c8c55a760159f4d6a631554b3 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com> Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
| * testbench: Fix propertyMap type, move update out of loopGabriel de Dietrich2014-10-291-5/+5
| | | | | | | | | | | | Change-Id: If109280bca207d0d5d7bd43964f5aaec9df553d3 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com> Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com>
| * BasicButton: handle mnemonicsJ-P Nurmi2014-10-162-0/+28
| | | | | | | | | | Change-Id: Ie5cb9d5e4d5d48aedf211f4dff1f6a44cc1c9571 Reviewed-by: Liang Qi <liang.qi@digia.com>
| * AbstractCheckable: handle mnemonicJ-P Nurmi2014-10-162-0/+12
| | | | | | | | | | | | Change-Id: I402d674cb5a88fb0bc7bd41062c97703bc8aefbc Reviewed-by: Liang Qi <liang.qi@digia.com> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>