aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates
Commit message (Collapse)AuthorAgeFilesLines
* ApplicationWindow: don't delete old headers and footersJ-P Nurmi2016-01-071-2/+4
| | | | | | Change-Id: I6df97edff6f034d79cbd95828a17d5f48dbf1d46 Task-number: QTBUG-50332 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Doc: remove obsolete reference to Pushing Items from Qt Quick ControlsNikita Krupenko2016-01-051-1/+0
| | | | | Change-Id: If94d9ffcfc17ea87a95205bc689fd916f22ddc70 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Doc: fix code snippets in StackViewNikita Krupenko2016-01-051-2/+2
| | | | | Change-Id: I73e1d49dcdde1ac0ca69ab3d1502489e20352cb3 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Add title property to MenuBogDan Vatra2016-01-053-0/+30
| | | | | | Task-number: QTBUG-50203 Change-Id: Iad54bfdab06681aabe457d19a26273c3846c44ef Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* StackView: fix stack clear on replace of the topmost itemNikita Krupenko2016-01-041-1/+1
| | | | | | | | | | | | | | | On item replace, StackView pops the topmost item (to use in transition) and call QQuickStackViewPrivate::replaceElements(), which delete items until it find the target item. When replacing the topmost item, it just clear the whole stack, as the target item not in the stack already and it procced to the bottom of the stack. This commit changes StackView to use pushElements() for replacing the topmost item, as there is nothing to replace. Task-number: QTBUG-50274 Change-Id: Iff2e1177ee2f8b2d4518b519b450ae4e89a4c963 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Doc: fix attached property name in StackViewNikita Krupenko2016-01-041-1/+1
| | | | | Change-Id: I2d93803ddf64beb3fdc96b4ca76d58dbcba3bcdb Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* ComboBox: fix displayText initializationJ-P Nurmi2015-12-231-1/+1
| | | | | | | | | Make ComboBox::textAt(idx) call ObjectModel::object(idx) to force initialization of the model items. Change-Id: If99c9263fa00ae6d21a92f11a45caf6e1f6b731c Task-number: QTBUG-50143 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Material: sync overlay background dimming with popup animsJ-P Nurmi2015-12-231-28/+43
| | | | | Change-Id: I709ce35ae21cf105d6328071cf8408e1f21e5d42 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* QQuickApplicationWindow: add locale propertyLiang Qi2015-12-213-0/+33
| | | | | Change-Id: I1292d1fb856710e38add8d77ae6e3dac28137cd9 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Control: implement locale inheritanceLiang Qi2015-12-213-10/+71
| | | | | Change-Id: I2f16141b53dd44e471050ef6901ddc480c77895f Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Drawer: fix regressionJ-P Nurmi2015-12-211-7/+8
| | | | | | | Avoid coordinate mapping issues by using QMouseEvent::windowPos(). Change-Id: I13be33c1bd4f3c0a40c955ee2bddf74e899c2728 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Replace Q_DECLARE_TYPEINFO(T, Q_COMPLEX_TYPE) by QML_DECLARE_TYPE(T)J-P Nurmi2015-12-2148-107/+71
| | | | | | | | | | | Q_COMPLEX_TYPE tells Qt containers that the type has a ctor/dtor and that it may not be moved in memory using memcpy(). QML types are never stored by value in Qt containers (non-copyable QObjects), so the type info declaration is superfluous. QML_DECLARE_TYPE, however, is useful (QTBUG-49920) and consistently used for all QtQuick types. Change-Id: I3bd1718b306fa7af85a623fa7a17e1b9653d2152 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Drawer: tweak thresholds & offsetsJ-P Nurmi2015-12-201-10/+9
| | | | | | | | | | | This makes the drawer behave much better. Use increased threshold only for dragging, not for presses (steals too large area from the side). When closing by dragging from the outside of the drawer, set the offset so that the drawer starts moving when the finger reaches the drawer, not before. Change-Id: Ibb8bf8f67f490e0706b6230080907bb185bd25bc Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Allow closing an opening popupJ-P Nurmi2015-12-191-2/+2
| | | | | Change-Id: I4937808275c138fca09fa866b5df4d54d084357d Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* QQuickApplicationWindowAttached: give full access to the overlayJ-P Nurmi2015-12-192-3/+3
| | | | | Change-Id: I704bec5ff8f59bebe100ebc19f322b0b556d2586 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Just tidy up QQuickPopup a bitJ-P Nurmi2015-12-194-48/+41
| | | | | Change-Id: Ibc8097299f0796f943682f0c1de628a8da87e430 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Rename Popup transitionsJ-P Nurmi2015-12-193-47/+49
| | | | | | | | | Use Android-inspired enter & exit, which eliminates the need of using a "transition" suffix, and also less prone to appear in auto-completion when new users try to open/show/close/hide popups. Change-Id: I3a448d3e9be33fbfffbf08488858aa63a70233f2 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* SpinBox: fix behavior on touch devicesJ-P Nurmi2015-12-182-16/+48
| | | | | | Change-Id: Ic56f7882bc6070c85f87ab171ee7feb6dd0b260d Task-number: QTBUG-50033 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Fix laggy background fading for DrawersJ-P Nurmi2015-12-181-4/+15
| | | | | Change-Id: I01bfff39f0018694f0ac4109733a2a441d90da31 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Fix Drawer to not steal touch too eagerlyJ-P Nurmi2015-12-181-6/+16
| | | | | | Change-Id: I52ae65685cd2087b82bb07e8ed50e2fb0d073123 Task-number: QTBUG-50045 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Fix build on ARM with -qreal floatJ-P Nurmi2015-12-188-11/+11
| | | | | | Change-Id: Id80ecea7bd79265d731e5c5e37c0acf0e344c8ab Task-number: QTBUG-50048 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Drawer: fix positioning when content size changesJ-P Nurmi2015-12-171-5/+18
| | | | | Change-Id: I0664084b3d96a2c6cbd387fb63aae700a588247d Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Make Drawers use the overlay background dimmingJ-P Nurmi2015-12-161-4/+34
| | | | | Change-Id: I6ec68983b06918d60acc2d60164d70cac0e37fac Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Fix StackView resizingJ-P Nurmi2015-12-163-14/+7
| | | | | Change-Id: Ib09996a9f12b669ae10fb7197f1e5b443540f7b0 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* StackView: print better error messagesJ-P Nurmi2015-12-161-0/+2
| | | | | | | | | "QQmlComponent: Component is not ready" alone is not too descriptive. Now StackView prints also the actual error string from QQmlComponent. Change-Id: I3d8a379f0565d1cc0f66e622c93de2a2dec87bcb Task-number: QTBUG-49957 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Add Overlay::background that is shown when any modal popup is openJ-P Nurmi2015-12-153-2/+59
| | | | | Change-Id: Idc2a5bbb5cf7a08ff21731537a378b1dd8050833 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Expose the actual type of QQuickApplicationWindow::overlay()Mitch Curtis2015-12-153-4/+6
| | | | | | Change-Id: I4fdff4049d469781ad6324a0d85cc519bd95a038 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com> Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* QQuickOverlay: use d-pointerMitch Curtis2015-12-152-17/+39
| | | | | | Change-Id: Ic97452efa8a356d323e74a824a496b947c26187f Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com> Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Fix ScrollBar & ScrollIndicator for the new GalleryJ-P Nurmi2015-12-144-8/+34
| | | | | | | | | | | | | | | The Gallery example exposed some new bugs. We must let the scroll bar/indicator initialize its size before layouting it, or else it will be posioned on the edge and eventually grows outside of the flickable it is attached to. Therefore, we must monitor the size changes of the scroll bar/indicator the same way we're monitoring the size changes of the attached flickable. Furthermore, while debugging the issue, I noticed that QQuickScrollBar/Indicator were unnecessarily monitoring all geometry changes. Monitoring only size changes is enough. Change-Id: I2581dba29bb4606642ba470dce85534632d7752e Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Popup: rename show()/hide() to open()/close()J-P Nurmi2015-12-145-24/+24
| | | | | | | | | 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>
* Add QQuickControl::focusReasonJ-P Nurmi2015-12-129-2/+168
| | | | | | | | | This allows the Universal style ApplicationWindow to visualize key/tab focus with a focus rectangle, but hide the focus rectangle when the focus moves around for other reasons (mouse, active window, popups...) Change-Id: I5c5b43d7c4c051679e34b806ee43cd80180d7ab8 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* AppWindow docs: fix \L -> \lJ-P Nurmi2015-12-121-1/+1
| | | | | Change-Id: I89fadddbceb77fc20af102f20fed45db17019c14 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Cleanup duplicate ApplicationWindow::activeFocusControl docsJ-P Nurmi2015-12-121-8/+0
| | | | | Change-Id: I939e3788eaf535a126d674dec861313b6f536b83 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Add missing TextArea::pressAndHold() docsJ-P Nurmi2015-12-121-0/+8
| | | | | Change-Id: I09c42985a116feaacc9896a8f0ccaca5fd4c57f9 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Fix QQuickComboBox::focusOutEvent()J-P Nurmi2015-12-121-1/+1
| | | | | | | Call the immediate base class, QQuickControl, instead of QQuickItem. Change-Id: If48283375f010c30a5860903097f3693cbc2b097 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Pane: don't let presses leak throughJ-P Nurmi2015-12-101-0/+2
| | | | | | | | | | | A regression introduced by 38c47c0. Pane is the base type for Frame, GroupBox, and ToolBar. These type of containers shouldn't let presses through. For example, an application that has a listview scrolled below a toolbar, list items under the toolbar should not react when interacting with the toolbar. Change-Id: I7668452fe2d6d89372f032220fa5623b50d334bb Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Add ApplicationWindow::activeFocusControlJ-P Nurmi2015-12-102-15/+91
| | | | | | | | | This makes it possible for ApplicationWindow to visualize key focus navigation with a single focus rectangle that follows the currently active focus control. Change-Id: Ief92bcdc64891b7baa3503216137665a8badcd17 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Use TabButtonFont and GroupBoxTitleFont from QPlatformThemeLiang Qi2015-12-102-2/+2
| | | | | | | | * QQuickGroupBox: GroupBoxTitleFont * QQuickTabButton: TabButtonFont Change-Id: Ib2e58a95c49353536231cc93d28dba075629c59f Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Docs: ApplicationWindowJ-P Nurmi2015-12-102-5/+60
| | | | | Change-Id: Ic565ef245985a5dbbd69cd2fd6473748c66b4f54 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Introduce PaneJ-P Nurmi2015-12-097-135/+367
| | | | | | | | Provides a background color that matches with the application style and theme. Change-Id: I5e7ea4fededaaf46687a2ea0391f43dbf55e3b42 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Rename Panel to PopupJ-P Nurmi2015-12-0911-184/+183
| | | | | | | | | Popup is a more descriptive name. Furthermore, this name change opens the door for another type called Pane. It gives the appropriate background color for the current style & theme. Change-Id: Idb91d37e807f62e870b50f0b656e84ee2d43a9fb Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* StackView: fix property initializationJ-P Nurmi2015-12-091-2/+5
| | | | | | | | | | | When pushing a url or component, ensure that properties passed to push() are initialized during the incubation. When pushing an item, the properties are set the same way than before, at stack element initialization phase. Change-Id: I19ca10baae43857e1349486059a3317d68d3b2d4 Reviewed-by: Liang Qi <liang.qi@theqtcompany.com> Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Remove Control::layoutDirectionJ-P Nurmi2015-12-093-63/+8
| | | | | | | | Calculate QQuickControl::isMirrored() from LayoutMirroring.enabled (QQuickItemPrivate::isMirrored()) and QLocale::textDirection(). Change-Id: I0e391d27df732734031f3e94d9828a1a2cfa7474 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* GroupBox: add an example of a checkable groupboxJ-P Nurmi2015-12-091-1/+14
| | | | | | | Adjust the size calculation so that the example works smooth. Change-Id: Iaf25107b0cfaa3ceef0caeba120d1bd74c9bc854 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Add Control::localeJ-P Nurmi2015-12-075-30/+41
| | | | | | Change-Id: I6c6647de6d286a92b35bca09a45e82cd3343a623 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com> Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* StackView: fix crash when attempting to transition null itemsJ-P Nurmi2015-12-041-6/+6
| | | | | | | | Don't attempt to kick off view transitions for stack elements that have failed to load. Change-Id: I6e42785a30abc815d14a07e7d16aad5bde66391d Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Add ComboBoxJ-P Nurmi2015-12-043-0/+943
| | | | | Change-Id: I4cfc2367db92786097a1ce66bd4b5a2f71322a2e Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* QQuickApplicationWindow: add font propertyLiang Qi2015-12-033-0/+67
| | | | | Change-Id: I6f946994f789704aa2efa94aaea0129d0d73d005 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Implement QQuickMenuItem::defaultFont()J-P Nurmi2015-12-032-0/+8
| | | | | Change-Id: I93205a226cd2a66236f9dd98e0b9039363900d75 Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* Promote Button::highlighted to AbstractButtonJ-P Nurmi2015-12-035-54/+33
| | | | | Change-Id: I0e17a6c25dfd89fdb547720e9a626c2ec9d7765a Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>