aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Remove the old TabView implementationJ-P Nurmi2015-06-112-5/+2
| | | | | Change-Id: I8d8aa96f2f37f458577a5a3ec681e3c9174d0918 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* ProgressBar: add from, to & position propertiesJ-P Nurmi2015-06-101-0/+66
| | | | | Change-Id: I1bf29fab227f1f2642994f9167c9a6957abcbb65 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* tst_objectcount: warmup with Buttons & exclude the test QQmlComponentJ-P Nurmi2015-06-064-12/+7
| | | | | | | This ensures that singletons are excluded from the numbers. Change-Id: I14422b7b15d57273dd11717892ebd11eba650902 Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* Improve tst_objectcountJ-P Nurmi2015-06-064-5/+22
| | | | | | | | | Add support for VERBOSE=1 to get detailed object list, and improve the warmup by importing both controls and loading an image to avoid plugin loaders and image format plugins showing up in the numbers. Change-Id: I26cfdc6d71fe36b45b706164f696bbb7f055f078 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Control::availableWidth & availableHeightJ-P Nurmi2015-06-031-0/+93
| | | | | | | | | The recently introduced contentWidth/Height was ambiguous. It had even different semantics than in Containers, TextXxx & Flickable etc. Thus, replace with availableWidth/Height. Change-Id: Iaeef25ec82b395c602724d222ca73666460ffd29 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Improve Control::background automatic resizingJ-P Nurmi2015-05-231-0/+46
| | | | | | | | - width follows only if x and width are both not specified - height follows only if y and height are both not specified Change-Id: Ib881daa9da339baac53f7f9d4de6e5bdad7723e2 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Fix Control::mirroredChanged() emissionJ-P Nurmi2015-05-231-0/+35
| | | | | | | | It was emitted only when LayoutMirroring.enabled changed, but it also needs to be emitted when layoutDirection changes... Change-Id: I9424fdf232c11669780c9abace5c162a0df69dbe Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Expose read-only bool Control::mirrored property for convenienceJ-P Nurmi2015-05-221-0/+6
| | | | | Change-Id: Icbb39aa1c3ac6f4b00adbc59c09a6c79e99bafd3 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Promote layoutDirection & effectiveLayoutDirection to ControlJ-P Nurmi2015-05-227-168/+91
| | | | | Change-Id: I44df09c17d6d20cfd929af4e331e15f48b19587e Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Update tst_radiobutton to use ControlSpyGabriel de Dietrich2015-05-041-68/+56
| | | | | Change-Id: If10ef6f111b4a91216bbb2d0b52bc182533edaa8 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* ControlSpy: Accept a list of signals to spy onGabriel de Dietrich2015-05-043-32/+54
| | | | | | | | | | | | | | | | | | This API is cleaner than having to connect to each signal handler namually. We solve the 'pressed' signal problem by connecting to the other signal accessor, namely 'onPressed'. And we do so for all signals. We also lay foundation to capture the signal parameters as each signal is emitted. What we may do with those values is not clear yet. Auto-tests updated accordingly. Change-Id: Ieda96a43072ca7dff2b183e07f6f67aa49c8cf5d Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* Update tst_checkbox to use ControlSpyGabriel de Dietrich2015-04-302-74/+76
| | | | | | | Also made a few cosmetic changes to the output of ControlSpy. Change-Id: Iec6982b3de3dda3aaa312e29801d0708ef8d739e Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* Introducing ControlSpyGabriel de Dietrich2015-04-293-93/+128
| | | | | | | | | | | Allows specifying expected sequences on signals for a control, and optionally test for property values when each signal is emitted. Rewrote Button auto-test suite using ControlSpy. Change-Id: Id27c1b9ca7ee070898bcd008379e06959341ee04 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* QQuickButton: Add canceled signalGabriel de Dietrich2015-04-291-3/+18
| | | | | | | | | | | | | | We now support the following pattern: 1. Press the mouse button => emit pressed 2. Move the mouse cursor outside the button => pressed = false 3. Release the mouse button => emit canceled Note that getting the mouse grabbed away by another item, at any stage, will also emit the canceled signal. Change-Id: I97e485327370ea47943dfef75553000cee449a01 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Set BusyIndicator::running to true by defaultFrederik Gladhorn2015-04-271-2/+2
| | | | | | | | This way it works out of the box and can be used with visible true/false etc. It's also in line with what qtquickcontrols (1) do. Change-Id: Ib82b0a60a7a78b6646452704f4ffb96fbd16923c Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* ExclusiveGroup: don't crash when passing nullJ-P Nurmi2015-04-251-0/+9
| | | | | Change-Id: I4d6f555faac81e56c32c6baf0a9ede14849a5855 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Add Theme::disabledColorJ-P Nurmi2015-04-231-0/+9
| | | | | Change-Id: I8bfc5a89aa75addd4cb1a5c0d5b58ea8b2bcf67c Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Add missing QQuickButton::pressed() & released() signalsJ-P Nurmi2015-04-151-15/+43
| | | | | Change-Id: I5942457258e1c666a0d67dbc5a9a5611d4ed5967 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Fix tst_sliderJ-P Nurmi2015-04-151-4/+6
| | | | | Change-Id: I37e2ab2c1f64f907b5895f41ee278b58af4e2655 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* Implement StackView in C++J-P Nurmi2015-04-092-66/+165
| | | | | Change-Id: Ia5387aa16325453c676a2542f80c827d4c069ca9 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Rename benchmarksJ-P Nurmi2015-04-095-21/+21
| | | | | | | | Just to make it clear what they actually do. These project names are also visible in Qt Creator when choosing the run-target... Change-Id: I95dd54fd1b6cb3369ab19dbaccbd92d104ea5250 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Rename Style to ThemeJ-P Nurmi2015-04-082-304/+304
| | | | | Change-Id: I0186cd36f0b42ca015b70a09af27f8a3517d4a60 Reviewed-by: Jari-Pekka Nurmi <jpnurmi@theqtcompany.com>
* Remove SpinBoxJ-P Nurmi2015-03-302-5/+0
| | | | | | | | | | SpinBox is a desktop centric control. It won't be provided in Qt Quick Controls 2.0, but maybe later when desktop support is re-considered. Qt Quick Controls 2.0 will focus on embedded and mobile. SpinBox is still available in 1.x Change-Id: I272b030734bad58de7e5b26c522189e0c520fca5 Reviewed-by: Jari-Pekka Nurmi <jpnurmi@theqtcompany.com>
* Remove SplitViewJ-P Nurmi2015-03-231-332/+0
| | | | | | | | | | SplitView is a very centric control. It won't be provided in Qt Quick Controls 2.0, but maybe later when desktop support is re-considered. Qt Quick Controls 2.0 will focus on embedded and mobile. SplitView is still available in 1.x Change-Id: I3bc1c7a525d4e1e75153205ca806dc4dcee7e601 Reviewed-by: Jari-Pekka Nurmi <jpnurmi@theqtcompany.com>
* Add dummy tst_drawer - there needs to be at least one data/*.qml fileJ-P Nurmi2015-03-231-0/+66
| | | | | Change-Id: I56eea0c3cdd03486a1e94be2dddb03249788582d Reviewed-by: Jari-Pekka Nurmi <jpnurmi@theqtcompany.com>
* Rename tests/benchmark -> tests/benchmarksJ-P Nurmi2015-03-186-1/+1
| | | | | Change-Id: I1ffd60772ca4a504d174c3ad4e321bf3c3fb5849 Reviewed-by: Jari-Pekka Nurmi <jpnurmi@theqtcompany.com>
* Implement Style as an attached propertyJ-P Nurmi2015-03-111-0/+304
| | | | | Change-Id: I006ee566647e31d1a14919d164d7dd68539aae10 Reviewed-by: Jari-Pekka Nurmi <jpnurmi@theqtcompany.com>
* Extras auto tests: add everything in data/ to OTHER_FILES.Mitch Curtis2015-03-091-0/+3
| | | | | Change-Id: Ia0f875955aef223259fd172b2f64109b3bd92229 Reviewed-by: Jari-Pekka Nurmi <jpnurmi@theqtcompany.com>
* BSD license for QML code in testsJ-P Nurmi2015-03-0417-376/+444
| | | | | Change-Id: Ia1556502ece0bc385375e61653169bdc855f592e Reviewed-by: Jari-Pekka Nurmi <jpnurmi@theqtcompany.com>
* Add benchmark for the amount of created items & objectsJ-P Nurmi2015-02-093-1/+246
| | | | | Change-Id: I42328f7129051455150dfb0c77410e72f6ea4ed5 Reviewed-by: Jari-Pekka Nurmi <jpnurmi@theqtcompany.com>
* Import the Qt Quick Controls 2 prototypeJ-P Nurmi2015-02-0528-0/+3685
Change-Id: Ib8c0c4160958e5cfea29a6e9df1b3f1fb19715fc Reviewed-by: Jari-Pekka Nurmi <jpnurmi@theqtcompany.com>