summaryrefslogtreecommitdiff
path: root/tests/auto/controls/data/tst_spinbox.qml
Commit message (Collapse)AuthorAgeFilesLines
* Unify license header usageAntti Kokko2016-02-041-3/+13
| | | | | | | Updated BSD license headers Change-Id: I73d67dbc6dbbe7c58d2b9c301b46fb6163243095 Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
* Skip controls tests when touch screen is present.Friedemann Kleint2015-11-171-0/+3
| | | | | | | Task-number: QTBUG-49359 Task-number: QTBUG-49360 Change-Id: I96ec6d46de189ec396ef26c0d059c65360da4ec0 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* BSD license for QML code in testsJ-P Nurmi2015-03-061-22/+26
| | | | | | Change-Id: Ie45c9b8d5a5d7f92e4b835473b0c76e3a83998b5 Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com> Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* Tests: update license headersJ-P Nurmi2015-02-111-29/+25
| | | | | | | 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>
* 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>
* SpinBox: intermediate values outside the range are invalid.Mitch Curtis2014-09-191-0/+9
| | | | | | | | | | | | When the maximumValue is 100 and the user enters 200, the input will be considered "Intermediate" by QQuickSpinBoxValidator and the value set to 20 when the input is confirmed. This is not how QSpinBox behaves; it prevents any more digits from being entered after the second one. Change-Id: I72490894d0073babda6ed00a0ba081a7ee686fe7 Task-number: QTBUG-40567 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Remove sleep(4000) from SpinBox auto test.Mitch Curtis2014-09-171-1/+0
| | | | | | | | This slows down the test significantly, and judging from the lines above and below this one, it wasn't necessary. Change-Id: Iaef85b4940740193fb65e5fa4ce89f576d292bcb Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Bump QtQuick.Controls import version to 1.2J-P Nurmi2014-04-071-24/+24
| | | | | Change-Id: Idc0b93cbfc2fe23e8be3bcaece672d06555a81f6 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Import QtQuick 2.2J-P Nurmi2014-04-071-4/+4
| | | | | Change-Id: Ifc9719ec6fbbd80b866c01eebc471d0ed121bd16 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Controls: Fixed support for Keys attached property on controls allowing text ↵Liang Qi2014-01-221-0/+32
| | | | | | | | | | | | | | | | | | | | | | | input By forwarding key events from the internal control. It includes TextField, TextArea, ComboBox, SpinBox. The key events from internal are Keys.forwardTo controls, then user could customize their own behavior for those controls. Autotest are included. [ChangeLog][QtQuickControls] Fixed support for Keys attached property on controls allowing text input, by forwarding key events from the internal control. Task-number: QTBUG-33493 Task-number: QTBUG-34101 Task-number: QTBUG-35763 Change-Id: I00ea131160e55048b34fe0713e1ee02ff9472f05 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com> Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* SpinBox: attempt to fixup the input as appropriateJ-P Nurmi2013-12-041-0/+26
| | | | | | | | | So for example "-0", which is a valid intermediate value, becomes "0" when the spinbox is accepted (enter) or it loses focus. Task-number: QTBUG-34774 Change-Id: Ie153294755aae2bf94ba1cb53c40a8fc5f1f5862 Reviewed-by: Liang Qi <liang.qi@digia.com>
* Make TextFieldStyle and SpinBoxStyle respect font sizeJens Bache-Wiig2013-11-261-0/+10
| | | | | | | | | | This makes both the controls respect a custom font size. Before this patch these controls would only support the global application font. Task-number: QTBUG-34750 Change-Id: I200a14adba5b75088ab54ba691430330d9226ada Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* SpinBox: add editingFinished signalLiang Qi2013-11-221-0/+30
| | | | | | | | Autotest is included. Task-number: QTBUG-34780 Change-Id: I2da9d57b409c24cbf1d90ce42da9b4071dd6dac8 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* SpinBox: get active focus when up or down was pressedLiang Qi2013-11-151-0/+70
| | | | | | | | This behavior also needs activeFocusOnPress was true. Task-number: QTBUG-34773 Change-Id: I681c1cb20c1803e3bf7f60af5cdf45ae3fe34dae Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Merge branch 'stable' into devGabriel de Dietrich2013-09-181-0/+10
|\ | | | | | | | | | | | | Conflicts: src/controls/qquickaction.cpp Change-Id: I85255ba5c27c0d8ea023d0867e5963d43f8f1ddb
| * Fix incorrect spinbox validation at startupJens Bache-Wiig2013-09-101-0/+10
| | | | | | | | | | | | | | | | | | | | | | The problem was that the validator was applied during the object creation which means the incorrect decimal values were applied and the initial value was incorrectly changed. Task-number: QTBUG-33309 Change-Id: Ic1ace174b9059b9c6ce24fd88b81c5edd7318e80 Reviewed-by: Caroline Chao <caroline.chao@digia.com> Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* | Don't emit onValueChanged during construction of SpinBox.Mitch Curtis2013-09-171-0/+22
| | | | | | | | | | | | | | | | Task-number: QTBUG-33504 Change-Id: I9860be6524ec82274f7d256d65aaef3f7657a09b Reviewed-by: J-P Nurmi <jpnurmi@digia.com> Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* | Update imports to 1.1 and remove version from qmlmodule definitionJens Bache-Wiig2013-09-101-18/+18
|/ | | | | Change-Id: Icb4c6d78225c072da787e4646a55d8cf71a5db7a Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* SpinBox: omit group separatorsJ-P Nurmi2013-06-191-0/+10
| | | | | | Task-number: QTBUG-31839 Change-Id: I90879cbc116f399f07e2ae53e998253f2e81a5e2 Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* Expose hovered to our controls and document it consistentlyJens Bache-Wiig2013-06-061-2/+2
| | | | | | | | | The current solution is messy and we only expose it partially to some of our styles. I think we should simply expose this to all. Change-Id: Ia546d5657ea416df99c9d9d92cc714b7f1c928fe Reviewed-by: Caroline Chao <caroline.chao@digia.com> Reviewed-by: Nico Vertriest <nico.vertriest@digia.com>
* Consistent use of "hovered" and style API conventionsJens Bache-Wiig2013-05-291-2/+2
| | | | | | | | | | | We were still using "containsMouse" in a few places, and we should consistently add "hovered" to all button types for consistency. Also fixed the SplitView to follow the new style conventions. Change-Id: Iebc333c0cecc5bcde27e626b1a611c2f2edcf7dc Reviewed-by: J-P Nurmi <jpnurmi@digia.com> Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* Rename controlState to styleDataJ-P Nurmi2013-05-271-10/+10
| | | | | Change-Id: I06c9f4b0d9b6eef7d2ca608827eee982d8d97027 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Refactor and clean up public style APIJens Bache-Wiig2013-05-081-10/+10
| | | | | Change-Id: I10271c860abd9b45a262e3548628e6a3026e1a4f Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Autotest: add test for mouseWheel on SpinBoxCaroline Chao2013-05-031-0/+14
| | | | | Change-Id: I633467448dbae8518760d380b1f7d6bee33377ff Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* SpinBox: implement the validator in C++J-P Nurmi2013-04-221-14/+57
| | | | | Change-Id: I8e952cfc909485ded8f1f3f3a8842cfdd8e1207d Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Tests: add more tests for activeFocusOnTab propertyCaroline Chao2013-04-121-0/+72
| | | | | | | Qml tests. Change-Id: I0b0f8b9de7a6e0da97a94eb9476e985f3539055a Reviewed-by: Liang Qi <liang.qi@digia.com>
* Tests: Destroy created components at the end of the tests functionsCaroline Chao2013-04-111-2/+17
| | | | | | | To ensure the components don't interfere with other functions. Change-Id: Ie22311471021175d23ae47c9e3a1ec603e803f2c Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
* Tests: Add test for activeFocusOnPress propertyCaroline Chao2013-04-031-0/+12
| | | | | | | | | | | | | | | For - SpinBox - TextField - TextArea - ToolButton - Button - CheckBox - RadioButton - Slider Change-Id: I36c82c5058cfc9493d9fdb8c96c6612b1f387c0f Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Change imports from QtQuick 2.0 to QtQuick 2.1Caroline Chao2013-03-141-1/+1
| | | | | | Change-Id: If9df032c76e36f385aacd30cc31d6f02574c6f11 Reviewed-by: J-P Nurmi <jpnurmi@digia.com> Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
* Fix initialization value of SpinBoxJens Bache-Wiig2013-03-071-0/+12
| | | | | | | | | | The maximumValue 99 was enforced on value _before_ we had a chance to update it. This made it sometimes impossible to get a maximumValue higher than 99. Change-Id: Ia07a9271d563fd3496b583757df757c1e7b4ceb5 Reviewed-by: Caroline Chao <caroline.chao@digia.com> Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Replaced BSD with LGPL license to conform with Qt Project modulesShawn Rutledge2013-02-211-1/+1
| | | | | | | | We want to use the same license as the other Qt modules. QML files stay as BSD for now. Change-Id: I10b1484f5ab0dfe2138ff7e045d0ecfd85556aa1 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Rename QtDesktop to QtQuick.ControlsJens Bache-Wiig2013-02-211-0/+304
Change-Id: Icc61dbfc74cc2a303b9847e7d2c7ace4a9002046 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>