aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual
Commit message (Collapse)AuthorAgeFilesLines
...
* Add QQuickAbstractButton::downMitch Curtis2016-04-151-13/+13
| | | | | | | | | | | | | | | | | This property will determine whether or not the button is visually pressed. Having such a distinction allows users more control over their controls. The patch also fixes the problem with ComboBox where pressing on the ComboBox when it's open would cause a delegate in the popup to show as being pressed. Unless explicitly set, this property follows the value of the pressed property. To return to the default value, set it to undefined. Change-Id: I29ecf325ed2ede125613f0c878b0427937599866 Task-number: QTBUG-51005 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Doc: add 2-suffix to the image assets and snippetsJ-P Nurmi2016-04-1316-12/+12
| | | | | Change-Id: Ib8050cb3baefe07d28c7e2dcec64af155d2d7c9b Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Add SwitchDelegateMitch Curtis2016-04-132-0/+65
| | | | | | | | | | | SwitchDelegate is an item delegate that is used in lists, and can be checked and unchecked. It derives from QQuickItemDelegate and hence has background press effects. The order of the indicator and text is reversed (compared to Switch) to reflect what is most commonly seen on mobile. Change-Id: I6f8fca8d1a8c91f2cb9d8bbbb685ad163712dfa1 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Expose checkable where necessary, instead of in QQuickAbstractButtonMitch Curtis2016-04-132-2/+1
| | | | | | | | | | | | | QQuickCheckBox, QQuickRadioButton and QQuickSwitch are inherently checkable, so having this property available to QML doesn't make sense. QQuickButton and QQuickMenuItem are the two classes that need to expose the property. Change-Id: Ic421c195295c4bef0fc934c98fa9e781d98c9b67 Task-number: QTBUG-51554 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Add RadioDelegateMitch Curtis2016-04-112-9/+86
| | | | | | | | | | | RadioDelegate is an item delegate that is used in lists, and can be checked and unchecked. It derives from QQuickItemDelegate and hence has background press effects. The order of the indicator and text is reversed (compared to RadioButton) to reflect what is most commonly seen on mobile. Change-Id: I143ee9a30cd8ce1d624354f4cb981c41dfddc2d2 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Add CheckDelegateMitch Curtis2016-04-112-0/+65
| | | | | | | | | | | | CheckDelegate is an item delegate that is used in lists, and can be checked and unchecked. It derives from QQuickItemDelegate and hence has background press effects. The order of the indicator and text is reversed (compared to CheckBox) to reflect what is most commonly seen on mobile. Change-Id: I6fdac226fe87247052389b2e49f6cf20d7be44fb Task-number: QTBUG-52208 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Improve documentation for delegate controlsMitch Curtis2016-04-012-0/+99
| | | | | | | | | | - Add "Delegate Controls" doc page. This will list future delegate controls, such as CheckDelegate, RadioDelegate and SwitchDelegate. - Add GIF for ItemDelegate. Change-Id: If8c66ab2178185f96d190f29ef7815beaa6e8d68 Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com> Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Introduce ToolTipJ-P Nurmi2016-03-221-0/+16
| | | | | | Change-Id: I917f7e83219788fc63389773eb07ee39757bed7f Task-number: QTBUG-51003 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Rename Qt Labs Controls to Qt Quick Controls 2 - tst_gifsJ-P Nurmi2016-03-1912-11/+11
| | | | | Change-Id: Ic7c4565d10f0a7074a063c73147a5b0b70352128 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Add SwipeDelegateMitch Curtis2016-03-154-0/+330
| | | | | | | | | | SwipeDelegate presents a view item that can be swiped left or right to expose more options or information. It is used as a delegate in views such as ListView. Change-Id: I7533a2b223f652993b6cee730930ea6dc125c869 Task-number: QTBUG-51610 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* GifRecorder: bump recording duration limit to 20 secondsMitch Curtis2016-03-031-1/+1
| | | | | | | | 10 seconds is only just long enough for some controls, like SwipeDelegate. Change-Id: I20ccd65fe6262e11ab03d8f787e480e30ab84df9 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Merge remote-tracking branch 'origin/5.6' into devJ-P Nurmi2016-01-311-1/+1
|\ | | | | | | | | | | | | | | | | Conflicts: src/templates/qquickpopup.cpp src/templates/qquickpopup_p_p.h src/templates/qquickspinbox_p.h Change-Id: Ief25ad2d27410f62e90879f60499ed87359406c3
| * Update TabBar and TabButton screenshotsJ-P Nurmi2016-01-291-1/+1
| | | | | | | | | | Change-Id: I5aec1c2a08b24e1779e62b9580a740fb102c1561 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* | Merge remote-tracking branch 'origin/5.6' into devJ-P Nurmi2016-01-285-0/+151
|\| | | | | | | | | | | | | | | | | | | | | Conflicts: src/imports/controls/material/qtlabsmaterialstyleplugin.cpp src/templates/qquickapplicationwindow_p.h src/templates/qquickcombobox.cpp src/templates/qquickcombobox_p.h src/templates/qquickpopup.cpp Change-Id: Ibd87e907bc8abf1f675147761ea8bb0b40722478
| * Add manual test for embedding in QWidgets.Friedemann Kleint2016-01-285-0/+151
| | | | | | | | | | | | | | Add a manual test similar to that in Qt Quick Controls. Change-Id: Ic93026f3b1333613be43b8827ddf3702c2ef5b70 Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
* | Merge remote-tracking branch 'origin/5.6' into devJ-P Nurmi2016-01-251-20/+19
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: .gitignore src/templates/qquickcombobox_p.h src/templates/qquickmenu_p.h src/templates/qquickmenu_p_p.h src/templates/qquickoverlay_p.h src/templates/qquickpopup.cpp src/templates/qquickpopup_p.h src/templates/qquickstackview_p.cpp Change-Id: I89c7d518697beec0b81ef3a12205286a4f3ccf89
| * Add Popup::parentJ-P Nurmi2016-01-231-19/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The parent defaults to the QML parent object where Popup is declared. Popup::x/y are relative to the parent, and the popup also automatically follows the parent as appropriate. QQuickPopupPositioner has been adapted from Qt Quick Controls 1. It was called QQuickScenePosListener, and it was implemented for the text selection handle popups. ComboBox's popup now follows the control eg. when scrolling, but the below/above positioning feature is temporarily gone missing. It will be restored in a follow up commit. Change-Id: I8a6b58cd74e07f33930abc35d0ab9da056685128 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
| * Refactor PopupJ-P Nurmi2016-01-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | Added relevant properties to make it almost like a Control: x, y, width, height, padding, background... This change makes popup use an internal item where the style/user-supplied contentItem and background are re-parented. This way we can provide a default style (background) for Popup. Change-Id: I3e7933562464c5c852e4ba4bc37d9ac25691c714 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
| * testbench: cleanup explicit Material.accent assignmentJ-P Nurmi2016-01-201-1/+0
| | | | | | | | | | | | | | ...that slipped in by accident in c08c717. Change-Id: Id05545912a5ffd58943c7809af04972a664580f4 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* | C++11 keywordsJ-P Nurmi2016-01-213-4/+4
|/ | | | | | | | - Q_NULLPTR -> nullptr - Q_DECL_OVERRIDE -> override Change-Id: I8ee65caafd43ab41b6de43835200cac6c8ffa278 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Fix tst_gifs/qtlabscontrols-menu.qmlJ-P Nurmi2016-01-141-1/+1
| | | | | Change-Id: Iea477e524920b6a2b2f8d20bf55b2dd5af3b19d4 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Material: add support for user-defined accent colorsJ-P Nurmi2016-01-141-0/+1
| | | | | | Change-Id: Ia88cfcb307d03977c45bff32ad2b1d290d183a57 Task-number: QTBUG-50178 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Material ToolBar backgroundJ-P Nurmi2015-12-251-0/+2
| | | | | | Change-Id: I214c646de05b95d04a1b759820b93d02006c9206 Task-number: QTBUG-50025 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Add Quit (Ctrl+Q) shortcut to testbenchMitch Curtis2015-12-211-1/+6
| | | | | Change-Id: I0af8eb73cf099e5ca99001d842ee7381e0cc0ce9 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* testbench: make use of Pane to get "standard" content paddingJ-P Nurmi2015-12-171-384/+384
| | | | | Change-Id: Idcfe1f4b48244c9bb5d57cbaf08f429f631d46e7 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* ToolButton: support highlighted modeJ-P Nurmi2015-12-171-0/+9
| | | | | | Change-Id: I8fb754080e204384e0215d60e819f9eaac204de7 Task-number: QTBUG-50018 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* testbench: fix the comment about use qputenv()J-P Nurmi2015-12-151-2/+1
| | | | | | | | | Refer to qputenv() instead of qsetenv(), and remove the mention of QT_QUICK_FILE_SELECTORS that is no longer supported. Change-Id: Ifada695afb1815e3b709d147250d297915550c16 Task-number: QTBUG-49891 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Popup: rename show()/hide() to open()/close()J-P Nurmi2015-12-141-1/+1
| | | | | | | | | QML popups have traditionally used more explicit open() and close(). Renaming them to show() and hide() at this stage doesn't seem to have any real advantages. Change-Id: I1e7c8c4817c67e62cef965525e00f5bf125a7d76 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* testbench: fix TextArea placeholder textJ-P Nurmi2015-12-121-1/+1
| | | | | Change-Id: I36b036e9bb7f5f0dd66ffae205a90f3b11a3ee27 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Fix some issues with GifRecorderMitch Curtis2015-12-093-6/+11
| | | | | | | | | | | | - Try to ensure that the correct region is recorded. Sometimes, on specific machines, I've seen the region being offset by a vertical distance of 24 pixels (the size of the title bar). - Try to ensure that the window has time to render before we start recording with byzanz. Change-Id: Ia4c354ba436ed21af0e83303a98faa616be63325 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Add ComboBoxJ-P Nurmi2015-12-041-0/+34
| | | | | Change-Id: I4cfc2367db92786097a1ce66bd4b5a2f71322a2e Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Adapt MenuItem to designsMitch Curtis2015-12-031-0/+3
| | | | | | | Decrease the padding and swap the label/indicator order. Change-Id: I0ee2528d3c3111024fe1a6e52acc0da1a0d30990 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Add MenuMitch Curtis2015-12-023-0/+126
| | | | | | | | | An item-based menu derived from QQuickPanel. Eventually we'd like to make Panel itself a QQuickItem, as it makes both the implementation and the actual usage of Menu a lot easier. Change-Id: Ic1bf2a05ab98d9e17824c402ed8326ef65d26c69 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Fix tst_gifs warnings about mouse events being outside windowMitch Curtis2015-12-013-102/+24
| | | | | | | Also replaces event capturer C++ output with moveSmoothly() calls. Change-Id: Ie1cccf6c85517a187588868a90902b82e01d0775 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* GifRecorder: don't assume QQuickViewMitch Curtis2015-11-3010-231/+250
| | | | | | | | | | | | | This allows us to use windows as root items, which means we can have complete examples - not just a snippet without imports. With this, we can have runnable snippets under each GIF, without the need for the user to add code to get it to run. This change is also necessary to generate GIFs for Panel-based items like Menu, which require an ApplicationWindow. Change-Id: I66fec30cde8d719be35766f8c917cd2a06b09127 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* testbench: fix theme switchJ-P Nurmi2015-11-301-2/+3
| | | | | | | It wasn't a good idea to use RTL, because the knob is also inverted :P Change-Id: Iee059807efb2243fb084381216a37f9c93961c19 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Remove pop-o-rama manual testMitch Curtis2015-11-2711-965/+0
| | | | | | | | We will be working on new examples in cooperation with designers that we can use to manually test and demonstrate popup usage with. Change-Id: Ib3b2ffaa66f99698e1f27bec3ba0610da32bdd85 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Implement more of default style designMitch Curtis2015-11-261-91/+204
| | | | | Change-Id: Ieaa2fa1b876d75f94f48a7fce0c47c166b969d57 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* testbench: add support for slow motion animationsJ-P Nurmi2015-11-262-1/+4
| | | | | | | | | Useful for debugging animations. Usage: ./testbench -slow Change-Id: Ic509c8da428dd08eddc9f445f942e3362bad9004 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Visualize Material Button's highlighted stateMitch Curtis2015-11-231-2/+7
| | | | | | Change-Id: I1c638c0b70a0ba8d0f5cfe1d7e41fd514c38c1c9 Task-number: QTBUG-49551 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Add highlighted buttons to testbenchMitch Curtis2015-11-161-0/+9
| | | | | Change-Id: I0cb200864304f91413f0e47b786d930b2efaac94 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Introducing Panel typeGabriel de Dietrich2015-11-1416-0/+1761
| | | | | | | | | | | | | | | | | | | | This is the base type to implement all sorts of Popups and Dialogs. Its main role is to keep the panel contents stacked on top of the application window contents and to ensure mouse and key events are forwarded or blocked depending on the visible panels modality. Currently, it only works with ApplicationWindow, which holds a QQuickOverlay. This special item is where the Panel contents gets reparented when the Panel becomes visible. It's also responsible for filtering the mouse events. Future developements may include adding a 'level' property instead of relying on the item's z value. This may or may not result into having several overlays per window. Change-Id: I18a4b8905e4d5a4a4697642b0553a1f9e86b669f Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com> Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Apply all styles' theme switchesMitch Curtis2015-11-131-2/+2
| | | | | | | | So that it's no longer necessary to make changes to the testbench to test a different style. Change-Id: I1eefa5f681e3852baa93e8a240af722edf8a45c2 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Scale testbench automaticallyMitch Curtis2015-11-131-1/+3
| | | | | Change-Id: Ie362fa22b3280733783e7ec2293a98e737717257 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Add Universal styleJ-P Nurmi2015-11-121-2/+2
| | | | | | | https://dev.windows.com/design Change-Id: I1d8c633ae246724649a6ed71b300a56ba9572405 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* testbench: fix scrollingJ-P Nurmi2015-11-121-3/+6
| | | | | | | | | | | - specify only width for the Flow. let it wrap & freely grow in height - use Flickable content margins instead of anchor margins. Flickable reserves these margins between itself and the internal content item - specify content height for the Flickable so it knows how much content is available for scrolling Change-Id: Iaa52f6ca9c48e6a213ee8e00de04445f806db350 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* tests: add testbench into manual.proLiang Qi2015-11-121-1/+2
| | | | | Change-Id: Ic3d0c51d10dc5d760d948ccdcb9cbc45c74f3c29 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* testbench: move TabBar to footerMitch Curtis2015-11-121-16/+14
| | | | | | | | This is a more typical use of TabBar, and gives it the room it needs for styles where the text is larger. Change-Id: I302a690dd23a69c4b919ebc9996cfaa641ea1b01 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* tests: fix license headersJ-P Nurmi2015-11-087-7/+7
| | | | | Change-Id: Id3be5a62dec38d610695d71ad792016fabdc922d Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* Improve testbenchMitch Curtis2015-11-061-283/+295
| | | | | | | | | | - Rearrange items. - Replace more usages of Rectangle with Frame. - Add SpinBox. - Add indeterminate ProgressBar. Change-Id: I38f15fdfbbf35c8d2c87e629e4e0ccaa4ae0b5fd Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>