summaryrefslogtreecommitdiffstats
path: root/src/controls/ScrollView.qml
Commit message (Collapse)AuthorAgeFilesLines
* Adapt to new Connections syntaxUlf Hermann2019-10-201-4/+4
| | | | | | Change-Id: I299baf89f2530250a333736bb31f4ae470610176 Reviewed-by: Fabian Kosmale <[email protected]> Reviewed-by: Simon Hausmann <[email protected]>
* Make restoreMode on all Binding elements explicitUlf Hermann2019-10-041-2/+5
| | | | | | | The default is going to change in 5.15. Change-Id: Ib17500791476bd45ed2c7c3736186897fb63d7a0 Reviewed-by: Simon Hausmann <[email protected]>
* Doc: Document Qt Quick Controls explicitly as 'version 1'Venugopal Shivashankar2018-10-261-1/+1
| | | | | | | | | This is to explicitly identify Qt Quick Controls as Controls 1, so that Controls 2 can be referred generally as Qt Quick Controls. Task-number: QTBUG-70333 Change-Id: I798c0354ad47ab96978575829322a254876529fb Reviewed-by: Topi Reiniö <[email protected]>
* ScrollView: fix cyclic Tab navigationAlberto Mardegan2017-11-231-1/+1
| | | | | | | | | | | | | The ScrollView is not a control widget, which should be included in the focus chain when the user presses the Tab key; instead, it's a container and as such it should not interfere with the navigation. We also modify TableView, because it derives from ScrollView but we want to keep its current behavior. Task-number: QTBUG-64596 Change-Id: Ibd7833603d38171693b2f34c5859e9c4615b8ed4 Reviewed-by: Liang Qi <[email protected]>
* Add NOTIFY signals for WheelArea5.8Marco Martin2017-04-031-0/+12
| | | | | | | | | | | | | | | | the private WheelArea component didn't have any notify signals in its horizontalValue/verticalValue or minimum/maximum values as well. this caused old values to be used in ScrollView.qml. If we want to have a listView that starts scrolled right when instanced, verticalMaximumValue won't be updated when the list is populated. Also, the wheelArea.verticalValue that's assigned at the beginning will be constrained by the wrong verticalMaximumValue, causing it to go out of sync with contentY. At this point the first time the mouse wheel is moved, the list will jump back at the top. Change-Id: I4605000636be7975ba9a58e2c79e8c2351e5a292 Task-number: QTBUG-59633 Reviewed-by: Frederik Gladhorn <[email protected]>
* Revert "Fix Controls 1 types linking to Controls 2"Topi Reinio2016-06-221-1/+0
| | | | | | | | | | | This reverts commit b5a8306bf6d4949066872ac2afc8d0a01f716bd7. The incorrect \inherits commands caused property documentation from base types go missing. Task-number: QTBUG-54150 Change-Id: I0bbe604a6fe904d8e6a4596777262255a794ec62 Reviewed-by: Mitch Curtis <[email protected]>
* Fix Controls 1 types linking to Controls 2v5.7.0-rc1v5.7.0Mitch Curtis2016-05-261-0/+1
| | | | | | Task-number: QTBUG-53529 Change-Id: I4933a03c49dee4e3edc56dd406f67073da341ac1 Reviewed-by: J-P Nurmi <[email protected]>
* Unify license header usageAntti Kokko2016-02-041-12/+15
| | | | | | | Update old header.LGPL3 to header.LGPL Change-Id: I3c851bc24da89f6300b94199387d1adf16ca4f48 Reviewed-by: Lars Knoll <[email protected]>
* Check for __style existence before accessing itMarco Martin2016-01-121-1/+1
| | | | | | | | | | | Since __style is loaded by a Loader, very early in initialization, it may still be null. so check for its existence before accessing it. When it will be fully loaded the property binding will cause a reevaluation with the proper values. This fixes __wheelScrollLines never being loaded from the style. Change-Id: I5967265a4d31e1be2c972daa79b9389fecc25933 Reviewed-by: J-P Nurmi <[email protected]>
* BasicTableView: Use ListView's overlay header for the table headerGabriel de Dietrich2015-11-031-3/+5
| | | | | | | | | | | | | | | | | | | | Previoulsy we manually positioned the table header over the table contents, which required some manual tweakings. Since 5.4, ListView support overlay headers that we can use them to clean our code in BasicTableView. There is, however, a small issue on Mac where the vertical scrollbar (specially in non-transient mode) is displayed below the table header. Since the header can't span beyond the ListView boundaries, we need to account for the vertical scrollbar width in the ListView's content width. This patch also updates the Desktop style to set the transientScrollBars property and some small tweaks to the Base style. Change-Id: I4433d0703328f23eadb0ae4563fbef5bba0168db Task-number: QTBUG-34344 Reviewed-by: Mitch Curtis <[email protected]>
* ScrollView: Don't depend on originY for the internal scrollbarGabriel de Dietrich2015-10-301-13/+14
| | | | | | | | | | | | | | | | | | While originY (and originX) are always zero for Flickable, other types, like ListView, can and will set its value as items are added or removed from the view. However, having the internal scrollbars depend on originY may cause extra updates and interfere with ListView transitions. This changes just hardcodes the scrollbar's minimum value to 0 and translates its value by originY. We also made the code in ScrollViewHelper a bit more readable, mostly by renaming the top-level item's id from 'wheelArea' to 'scrollHelper'. Change-Id: Iac0b4e1dc3ca50ff3cc50fbb85ccaf1eca88edba Task-number: QTBUG-48044 Reviewed-by: Mitch Curtis <[email protected]>
* Doc: Create proper QHP TOC entries for QML types, examples and tutorialsTopi Reinio2015-08-051-0/+1
| | | | | | | | | | QDoc now supports using a \group name as a selector for QHP subprojects. Use this to have the correct division of Qt Quick Controls and Controls Styles QML types, as well as a TOC entry for examples and tutorials. Change-Id: I8e4b44c8876fd6bb3b2baebd956d6dc5d5223715 Reviewed-by: Mitch Curtis <[email protected]>
* Take QApplication::wheelScrollLines into account from ScrollViewAleix Pol2015-05-221-0/+6
| | | | | | | | Take the property into account, like QtWidgets applications do. This way the scroll feels more similar to the rest of applications. Change-Id: Ifde385fbfb052e5d6a446b1e339ce86ae8eca609 Reviewed-by: J-P Nurmi <[email protected]>
* Doc: Fix qtdoc warningsCaroline Chao2015-03-061-1/+1
| | | | | | | | | Mostly link errors and missing documentation. And removed useless references to {QtQuick.Controls.Styles} in the doc. Change-Id: Iad211a574c0bd23c84e067e0cbcc18c3e719cde7 Reviewed-by: Topi Reiniö <[email protected]>
* Merge Extras' styling system into Controls'.Mitch Curtis2015-03-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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 <[email protected]> Reviewed-by: J-P Nurmi <[email protected]>
* Controls: update license headersJ-P Nurmi2015-02-111-28/+24
| | | | | | | Change-Id: I77e7a218a958d76ac7ef7780f4be52a81f76fa6b Reviewed-by: Caroline Chao <[email protected]> Reviewed-by: Mitch Curtis <[email protected]> Reviewed-by: Gabriel de Dietrich <[email protected]>
* Add scollBarPolicy properties to scrollviewDavid Edmundson2014-07-221-0/+30
| | | | | | | | This adds horizontal and vertical scrollbar policies allowing one to pernamently show or hide the scrollbars like in QAbstractScrollArea. Change-Id: I4989dbf2225ab34741b5a2811d7c6ff52880e0c3 Reviewed-by: J-P Nurmi <[email protected]>
* Doc: Added images and missing snippetsVenu2014-06-271-0/+2
| | | | | | Task-number: QTBUG-33799 Change-Id: I582518a73276d47cf63cf31411b5176a90acab6f Reviewed-by: J-P Nurmi <[email protected]>
* Ensure that child MouseAreas will get the event firstAndy Shaw2014-05-021-1/+1
| | | | | | | | | | | By lowering the MouseArea provided by a ScrollView we can ensure that any user MouseArea created as a child will get the event first which can pass it on afterwards. Task-number: QTBUG-38083 Change-Id: Id0a36fab7600966a0e12043fa7e8a98641d71a81 Reviewed-by: J-P Nurmi <[email protected]>
* Bump QtQuick.Controls import version to 1.2J-P Nurmi2014-04-071-1/+1
| | | | | Change-Id: Idc0b93cbfc2fe23e8be3bcaece672d06555a81f6 Reviewed-by: Jens Bache-Wiig <[email protected]>
* Import QtQuick 2.2J-P Nurmi2014-04-071-1/+1
| | | | | Change-Id: Ifc9719ec6fbbd80b866c01eebc471d0ed121bd16 Reviewed-by: Jens Bache-Wiig <[email protected]>
* ScrollView: flick threshold comes from platform styleShawn Rutledge2014-03-181-1/+1
| | | | | | | | | | QStyleHints::startDragDistance is used as the standard drag or flick threshold in QtQuick generally. We should follow suit because it may depend on platform characteristics such as screen resolution and sensitivity of the input devices. Change-Id: Ibbc7b4549351f795c10de792cb8fa3ff9f5ae58d Reviewed-by: Richard Moe Gustavsen <[email protected]>
* Update ScrollView documentation to be valid QMLDavid Edmundson2013-12-041-1/+1
| | | | | | Change-Id: Ie78468f6e001e67467175cd39bd4db1bd6b2dbbf Reviewed-by: Martin Klapetek <[email protected]> Reviewed-by: J-P Nurmi <[email protected]>
* Doc: Fix links to Qt Quick Controls Styles itemsCaroline Chao2013-10-231-1/+1
| | | | | Change-Id: I406c159fbc573e8b0a999d85fd6fb546b71634ac Reviewed-by: J-P Nurmi <[email protected]>
* Doc: Add doc for ScrollViewStyleCaroline Chao2013-10-231-1/+6
| | | | | Change-Id: I6029e7a9c393aae97373b786f1e5d13d49e0f9f2 Reviewed-by: J-P Nurmi <[email protected]>
* Enable flicking on touch based devicesJens Bache-Wiig2013-09-301-1/+2
| | | | | | | | | The heuristic should probably be better but this will allow ScrollView and TableView to at least support basic touch input. Change-Id: I5904a0f2a29659e4cb0c3e7978ca0aa72d2415c4 Reviewed-by: Jens Bache-Wiig <[email protected]> Reviewed-by: J-P Nurmi <[email protected]>
* Doc: Changed the \since argument to the Qt version.Jerome Pasion2013-09-261-1/+1
| | | | | | | | | | | | | | -1.0 types were introduced in Qt 5.1 -1.1 types were introduced in Qt 5.2 -The module versions are now taken from the \qmlmodule This change was only applied to \qmltype. For methods, signals, and properties, we keep the \since QtQuick.Controls <version> Task-number: QTBUG-32172 Change-Id: Iefa73d4a489aa285bae873f68ae9a228030f0115 Reviewed-by: J-P Nurmi <[email protected]>
* ComboBox: Make popup scrollableGabriel de Dietrich2013-09-191-1/+2
| | | | | | | | | | | | | | | | We factor out part the menu item container logic from Menu into ColumnMenuContent, which takes care of scrolling and mouse hovering, and selection. This makes possible to extend the menu items layout. The pop-over and pull-down look is specified by the menu style component by overriding the ScrollView style. The popup's maximum height is also specified by the menu style. The gallery example can finally use a font families combo box. Task-number: QTBUG-31568 Change-Id: I34a7278f476471c0eb51ef51dde3dd83e13002fe Reviewed-by: J-P Nurmi <[email protected]>
* Update imports to 1.1 and remove version from qmlmodule definitionJens Bache-Wiig2013-09-101-3/+3
| | | | | Change-Id: Icb4c6d78225c072da787e4646a55d8cf71a5db7a Reviewed-by: Caroline Chao <[email protected]>
* ScrollView: handle QWheelEvent::phaseJ-P Nurmi2013-08-281-0/+1
| | | | | Change-Id: I5642e8dc5f62b48aaf086820699cf41f689cec1a Reviewed-by: Gabriel de Dietrich <[email protected]>
* Improve default size for several controlsJens Bache-Wiig2013-06-031-2/+3
| | | | | | | | | | We should set this to some decent default value that doesn't look wrong. Note that the width and height definition in TextArea could cause conflicts when used in layouts. Change-Id: I815ff96c02f9a9a76c07d57181f3a24291c83c52 Reviewed-by: Jan Arve Sæther <[email protected]> Reviewed-by: Gabriel de Dietrich <[email protected]>
* Rename PaddedStyle to AbstractStyleJ-P Nurmi2013-05-301-1/+1
| | | | | | | | | | | Make Style inherit AbstractStyle, so it becomes the base class of all styles. AbstractStyle also now has a default "data" property so it's possible to conveniently declare helper content inside styles. Change-Id: Id84f3762cfae506e65021322619d7fb77b137994 Reviewed-by: Tomasz Olszak <[email protected]> Reviewed-by: Jens Bache-Wiig <[email protected]>
* Consistent use of "hovered" and style API conventionsJens Bache-Wiig2013-05-291-1/+1
| | | | | | | | | | | 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 <[email protected]> Reviewed-by: Caroline Chao <[email protected]>
* ScrollView: take Flickable::originX and originY into accountJ-P Nurmi2013-05-271-2/+6
| | | | | Change-Id: I16eb186a2b1f706bbc961d34a614bf2f9a9a0646 Reviewed-by: Jens Bache-Wiig <[email protected]>
* Enable padding as a grouped propertyJens Bache-Wiig2013-05-241-2/+2
| | | | | | | | | We want padding to be a grouped property as the existing Margins property looks rather odd and insconsistent. Change-Id: I9e614f9161aaf01af200b19a1fb46a51beec6fb4 Reviewed-by: J-P Nurmi <[email protected]>
* Make QQuickSettings::style a property with a notifier signalJ-P Nurmi2013-05-241-1/+1
| | | | | Change-Id: I9f1690524e29cd7fe0ab35be216aca9a6edd35ca Reviewed-by: Jens Bache-Wiig <[email protected]>
* Disable flicking on ScrollViewJens Bache-Wiig2013-05-141-0/+1
| | | | | | | | | | | | task-number: QTBUG-31121 We already handle MouseWheel events separately and we do generally not want to interact with the flickable. I don't know if we should somehow handle this differently on a mobile device but for now it seems sensible to disable it. Change-Id: I7dc30050efcedd8f670b3ecdc0a9915a692fd475 Reviewed-by: J-P Nurmi <[email protected]>
* Refactor and clean up public style APIJens Bache-Wiig2013-05-081-7/+9
| | | | | Change-Id: I10271c860abd9b45a262e3548628e6a3026e1a4f Reviewed-by: J-P Nurmi <[email protected]>
* Doc: check and correct for compliancy with Writing GuidelinesNico Vertriest2013-05-061-0/+1
| | | | | | | Task-number: QTBUG-30318 Change-Id: I9839470fbac1d14c1788766d275aba3fac6ec8b1 Reviewed-by: Jerome Pasion <[email protected]> Reviewed-by: Caroline Chao <[email protected]>
* Allow TableView to scroll to bottomJens Bache-Wiig2013-05-041-1/+3
| | | | | Change-Id: If09c39341833e6162921c280bcc7583cca2fb15f Reviewed-by: Caroline Chao <[email protected]>
* ScrollBar style refactoringJens Bache-Wiig2013-04-261-2/+2
| | | | | | | | Making ScrollBar harmonize with other styles by using Style and panel. Change-Id: Ic3bbae6d3a5d456ba3b3668c71ede3b3e11d2dc7 Reviewed-by: Jens Bache-Wiig <[email protected]>
* Move ScrollBarStyle inside ScrollViewStyleJens Bache-Wiig2013-04-241-2/+2
| | | | | Change-Id: I22403a7deac19b614f08475a2b29696a5698811f Reviewed-by: J-P Nurmi <[email protected]>
* Remove hard dependency on widgetsJens Bache-Wiig2013-04-151-2/+1
| | | | | Change-Id: I1fabb4efcc931f12f0a65ac5c66e6e085108269b Reviewed-by: J-P Nurmi <[email protected]>
* Remove StyleItem dependencies from controlsJens Bache-Wiig2013-04-131-9/+24
| | | | | | | | This is another step towards making controls work without the widgets module. Change-Id: I7066d79f42d90199cfd1a5d6f6ce6cf6cae381d6 Reviewed-by: Jens Bache-Wiig <[email protected]>
* Doc fix: Change double to realJan Arve Saether2013-04-121-2/+2
| | | | | Change-Id: Iccb50c20e7a5806bf4a72956eeb7097c1bf0ccc2 Reviewed-by: Jens Bache-Wiig <[email protected]>
* Cleanup the superfluous \internal tags that are no longer neededJ-P Nurmi2013-04-081-1/+0
| | | | | Change-Id: I2eaaf7e82351e70a742eeadc32b8e1f8655a02c1 Reviewed-by: Caroline Chao <[email protected]>
* Doc: minor language editsNico Vertriest2013-04-051-9/+9
| | | | | | | | | | | | | Concerning vocab., punctuation, syntax and/or Writing Guidelines. Corrected whitespace issues. Replaced "if" with "whether" in Slider.qml Task-number: QTBUG-30318 Change-Id: I0e0e8d2b807f0a6534deb2caa6dbee7eb206f43b Reviewed-by: Topi Reiniö <[email protected]> Reviewed-by: Martin Smith <[email protected]> Reviewed-by: Laszlo Papp <[email protected]>
* Fix broken highlightOnFocus for ScrollViewJens Bache-Wiig2013-03-281-1/+1
| | | | | | Change-Id: Idfd9c14b0b955cc9ccfc19ebd51686909d04875d Reviewed-by: Gabriel de Dietrich <[email protected]> Reviewed-by: Jens Bache-Wiig <[email protected]>
* ScrollView: Improve "Crash on exit" patchGabriel de Dietrich2013-03-251-2/+2
| | | | | | | | | This saves a parent change when creating the flickable item. Partially amends f36f562a0e58f4ea37. Change-Id: I2f76ea329c86e8754712b97cd87e41f56c791183 Reviewed-by: Frederik Gladhorn <[email protected]> Reviewed-by: Jens Bache-Wiig <[email protected]>
* ScrollView: Fix crash on exitGabriel de Dietrich2013-03-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reproducible with the gallery example application, Launch it, select the TextField, and quit the application. The following short example also reproduces the crash in the same way, but selecting the TextInput instead. import QtQuick 2.1 import QtQuick.Window 2.1 import QtQuick.Controls 1.0 Window { property bool blah: !!activeFocusItem && !!activeFocusItem["copy"] Column { TextInput { width: 200 height: 30 } TextArea { width: 200 height: 200 } } } Whether the real cause is in ScrollView or deeper in QtQuick is yet to be throughly investigated. But, hey, that's one crash less right now. Change-Id: Idf358775b8b0333261ecfec7a2fefd3c5b931cc8 Reviewed-by: Jens Bache-Wiig <[email protected]>