aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Exclude designer support on iOSJ-P Nurmi2016-02-251-1/+1
| | | | | | | Causing build problems due to RCC'ing 'designer/images/*.png' Change-Id: I4d97d8514fa38e5d78b8a6b1b6647e3834c864d7 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Implement accessibility support for Popup and MenuJ-P Nurmi2016-02-2510-7/+91
| | | | | | Change-Id: I55067bb1cb9888be8e0e991fb73c9365d93d04f4 Task-number: QTBUG-51316 Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* Fix QQuickPopup to respect explicit sizeJ-P Nurmi2016-02-242-5/+29
| | | | | | | | | Don't resize the popup (clamping to its implicit size) unless the popup really has to be resized in order to fit the screen. Change-Id: I81201b77a1001ac22291ede1fc685f7208ff2916 Task-number: QTBUG-51322 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* RangeSlider: forward focus to the handlesJ-P Nurmi2016-02-243-0/+53
| | | | | | | | | | The active focus ends up to RangeSlider when using forceActiveFocus() or QML KeyNavigation. We must forward the focus to one of the handles, because RangeSlider handles key events for the focused handle. If neither handle has active focus, RangeSlider doesn't do anything. Change-Id: I61a53d0c7203fad64306b54c1f96093bd9312416 Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* QQuickMaterialProgressStrip: reset the transformation matrixJ-P Nurmi2016-02-231-0/+1
| | | | | | | | | | The trasformation matrix for the indeterminate animation has to be reset when switching back to non-indeterminate mode, or else the indicator is translated to a wrong position. Change-Id: I8489a504f0b9626dbd0172ba0fba842f4528d027 Task-number: QTBUG-51312 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Doc: fix typos in Qt.labs.calendarJ-P Nurmi2016-02-233-3/+3
| | | | | Change-Id: I13329270602d5b6e59d92dc412d72b2c4714c6c2 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Fix CalendarModel month indicesJ-P Nurmi2016-02-232-6/+147
| | | | | | Change-Id: I25c683cce19436d103d3225ad098daedf6212b64 Task-number: QTBUG-51108 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Extend tst_monthgridJ-P Nurmi2016-02-231-25/+55
| | | | | Change-Id: I8ec0828319e91df42c0bd9540953df7d431ef476 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Material: tweak the accent color and ripples for the dark themeJ-P Nurmi2016-02-221-2/+2
| | | | | | | | | | In general, the appropriate shade is 200 in the dark theme. Furthermore, reduce the translucency of the ripple in the dark theme to make it better visible. Change-Id: I6060dfbdb2d291eded56ca648e1356d6228e3b25 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com> Reviewed-by: BogDan Vatra <bogdan@kdab.com>
* Material: add missing focus highlightsJ-P Nurmi2016-02-226-4/+28
| | | | | | | Change-Id: Id678a095a56f7494c9f32160326ba667a6c0dc28 Task-number: QTBUG-51257 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com> Reviewed-by: BogDan Vatra <bogdan@kdab.com>
* Add icons for the QML DesignerJ-P Nurmi2016-02-2292-44/+43
| | | | | | Change-Id: If5a2e766eff51fb21d81c44f8313d7fdc2a67678 Task-number: QTBUG-50801 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Do not limit ComboBox menu to predefined valueNikita Krupenko2016-02-212-2/+2
| | | | | | | | | This allows ComboBox menu to occupy more screen space and use the window size as limit. Task-number: QTBUG-50758 Change-Id: If430338f7baa291406f3ad0657d0cb267e17a3a2 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Popup: use available size and paddings from the popup itemJ-P Nurmi2016-02-195-188/+345
| | | | | | | | | | | | | | | | Now that the internal popup item inherits Control, which already provides these features, we may use them directly instead of re-doing them in Popup. NOTE: QQuickMenu code has lots of direct references to the content item, which used to be stored in QQuickPopupPrivate, which is the base class of QQuickMenuPrivate. Now that the content item is stored by QQuickPopupItem instead, the direct references don't work. Thus, as a temporary solution to avoid this patch growing large, we'll store the content item in QQuickMenuPrivate. Change-Id: I80a16d34432131a4326c1b6ae54419470be53f96 Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* Recommend the use of ApplicationWindow with popupsMitch Curtis2016-02-192-1/+38
| | | | | | | | It's important to mention that ApplicationWindow provides some extra support for popups. Change-Id: Iecea78d9d4446bbc4694fcde0166d1b1c2fb62ee Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com>
* Gallery: remove conflicting anchorsJ-P Nurmi2016-02-191-1/+0
| | | | | | | Exposed thanks to e19a9044. Change-Id: I9dea1af8e9a9d47391ddaf1fd9c8f7e0c210e9d5 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Controls: fix locale inheritance for popupsLiang Qi2016-02-194-10/+210
| | | | | | | | | QQuickPopup is a QObject, not a QQuickControl. Then need to make QQuickPopup::popupItem() inherit its locale from QQuickPopup::parentItem(). Task-number: QTBUG-50984 Change-Id: Ie5908f86a154502962d6406dd4067b46cc527de7 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Material: make MenuItem highlight visible against any backgroundJ-P Nurmi2016-02-191-1/+1
| | | | | | | | | Same what f56ec245 did to ItemDelegate. Use a translucent color for the highlight, so that the exact background color doesn't matter. Change-Id: I9e1673bbc3e7348b15854d623ee0c37aea51f231 Task-number: QTBUG-51118 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Controls: fix font inheritance for popupsLiang Qi2016-02-185-5/+253
| | | | | | | | | QQuickPopup is a QObject, not a QQuickControl. Then need to make QQuickPopup::popupItem() inherit its font from QQuickPopup::parentItem(). Task-number: QTBUG-50984 Change-Id: I7f417474172b533b744eb668a0476cdcbabba868 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* QQuickControl: delayed the call of resolveFont()Liang Qi2016-02-182-8/+1
| | | | | Change-Id: Iadfbc3a39de102825c9dde60a236883b88834b34 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Material: return proper themeFont() for controlsNikita Krupenko2016-02-173-6/+31
| | | | | | | This allow to get proper fonts for most controls. Change-Id: I4b43ce05b09c30f59dca7d23e8d890fa9dfb74ab Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* clear parentItem of old header and footer itemsJochen Seemann2016-02-172-4/+12
| | | | | | | | | This patch completes the support in QQuickApplicationWindow and QQuickPage to dynamically change the header and footer item. Change-Id: Id230db135ca2957d94aa126e9d58ac486c88557c Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* ItemDelegate: make the highlight visible against any backgroundJ-P Nurmi2016-02-153-1/+8
| | | | | | | | | Use a translucent color for the highlight, so that the exact background color doesn't matter. Change-Id: I63348137dedd04aca8110b8f7610506ca003ec87 Task-number: QTBUG-51118 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* SpinBox: fix JS callback accessJ-P Nurmi2016-02-152-1/+22
| | | | | | | | | | Avoid calling an uninitialized JS callback. This is a regression caused by lazy creation of the JS callbacks in 1f146d9. Change-Id: I1816b491ada0509c5664cffbcaa32ca987095b31 Task-number: QTBUG-51114 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com> Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* Link to examples from index pageMitch Curtis2016-02-151-0/+1
| | | | | Change-Id: I75e9c0d60a555dfb3ed494544af348bdc333f6e1 Reviewed-by: Topi Reiniƶ <topi.reinio@theqtcompany.com>
* Test and fix AbstractButton::pressAndHold()J-P Nurmi2016-02-122-6/+12
| | | | | | | | | | | Using the same auto test that already exists for TextField and TextArea nicely exposed some difference in the behavior: - the signal wasn't canceled on second press - the signal was canceled right away on any tiny move. now it allows the same little threshold than TextField and TextArea Change-Id: I6b9bd19c614b36dd0ec7b232f821af3aa929d02a Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* SwipeView: warn the user for using anchorsJ-P Nurmi2016-02-121-1/+16
| | | | | Change-Id: I49b951f8382277ee9ea86f487ee70fe954cf1ece Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* StackView: warn the user for using anchorsJ-P Nurmi2016-02-122-0/+14
| | | | | Change-Id: I6c977e4bdc62820589a94700291d93b290d796ae Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Bump version to 5.6.1J-P Nurmi2016-02-121-1/+1
| | | | | Change-Id: I489e6f60bda5935e66df592f9d8eff6fb114d4a9 Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* Revert "Fix accessing StackView attached properties via popped item"J-P Nurmi2016-02-111-2/+1
| | | | | | | | | | | | This reverts commit 1cf60c89a8711103a37b0511f4e91ee28d984b45. The fix wasn't good. It leaves a dangling pointer around, which makes tst_stackview fail and often crash. Unfortunately the problem wasn't caught by the CI, because it didn't run qmltestcases at all. :) Change-Id: I7348f1b79a45715f8c5abec416e8a9864b0288e1 Task-number: QTBUG-50937 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Fix accessing StackView attached properties via popped itemJ-P Nurmi2016-02-101-1/+2
| | | | | | Change-Id: I98d84668ce42687577539cb6356b87be9e2bdd98 Task-number: QTBUG-50937 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Universal: fix fontsJ-P Nurmi2016-02-092-9/+14
| | | | | | | | | Request Segoe if exists, fallback to the system font. Even if we fallback to the system font, set the sizes and weights appropriately. Change-Id: I6cd34efcb5e41171758ffb2fbab22dc9d52c95a4 Task-number: QTBUG-50971 Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* Material: fix fontsJ-P Nurmi2016-02-092-8/+16
| | | | | | | | | | | | Request Roboto or Noto if exists, fallback to the system font. Even if we fallback to the system font, set the sizes appropriately. The latest spec for tabs says that the font size 14sp (scaled px) and all caps. https://www.google.com/design/spec/components/tabs.html#tabs-specs Change-Id: I34ecadf21306921e2115630ea41771dfef627b48 Task-number: QTBUG-50971 Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* RangeSlider: choose the nearest handleJ-P Nurmi2016-02-092-15/+72
| | | | | | | | | The handles were hard to touch. This change makes it choose the nearest handle, so that the interaction becomes similar to what Slider has. Change-Id: Ie94eeed6a8466f44e8eee0ce0ba0a45cfb3f6924 Task-number: QTBUG-50972 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Sliders: fix snapping on releaseJ-P Nurmi2016-02-082-2/+10
| | | | | | | | | If the value changes when snapped on release, the position is updated accordingly. However, if the value doesn't change, the position must be updated manually or the handle doesn't snap as it should. Change-Id: I3648e08c2f897d73c84c6d91510795e4aede41d7 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* RangeSlider: fix stepSize handling when snapping is enabledJ-P Nurmi2016-02-082-3/+45
| | | | | | | | Same as the recent fix for Slider. The step size needs to be normalized when added to or subtracted from the position. Change-Id: I490d105f88db361fb0e1888017e1717e9d79e4c8 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Material: corrected padding of TabButtonNikita Krupenko2016-02-081-1/+1
| | | | | | | According to design guidelines, padding should be at least 12. Change-Id: Ifbe57107fc7e15e3a7e09a3923549ba23dc2f7e3 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Slider: fix stepSize handling when snapping is enabledJ-P Nurmi2016-02-082-2/+40
| | | | | | | | | | | The value range and step size are configurable, whereas position is always in the range [0.0..1.0]. The snap handling was applying step size to the position as is, without taking the value range into account. Thus, snapping worked correctly only for the default [0.0..1.0] value range, which happens to match with the position range. Change-Id: If2f48d36c95554de25598d507842576a49e643b9 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Add AbstractButton::pressAndHold() signalJ-P Nurmi2016-02-075-4/+56
| | | | | Change-Id: I41e96a61bfb25b81bad748f559894bf8e2984427 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Material: increase the height of tabsJ-P Nurmi2016-02-072-5/+6
| | | | | | | | | The Material design specifies 48dp as a height for tabs, which is also the minimum touch target size. Change-Id: I7c67e3e0aec92d197df14fd60bbd1ebcd55131f6 Reviewed-by: Nikita Krupenko <krnekit@gmail.com> Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Docs: fix typos in margins linksJ-P Nurmi2016-02-061-4/+4
| | | | | Change-Id: I26b519e03700d163af12ec2d08097b1d51d9e119 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Add minimal docs for Control::contentItemJ-P Nurmi2016-02-061-1/+3
| | | | | | | | It deserves a wireframe to explain, but a minimal docs are better for now than a TODO comment. Change-Id: I3fa1bfb13478065e0c9f4a3f3693ad90a54b3385 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Docs: add missing \readonly tagsJ-P Nurmi2016-02-069-1/+25
| | | | | Change-Id: I314514bca07f9b23ac821d68ba8f3ce05341f1d9 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* QQuickPopup: add some missing propertiesJ-P Nurmi2016-02-064-6/+138
| | | | | Change-Id: I7df64587bf3ba289ba027f6dbe9872362532ec41 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Universal: enable focus rect for ToolButtonJ-P Nurmi2016-02-061-0/+2
| | | | | Change-Id: I5e552762c9beee7747f6bbd1d50d6ae6f50cfe69 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Optimize QQuickUniversalFocusRectangle::paint()J-P Nurmi2016-02-061-11/+22
| | | | | | Change-Id: I75cc70df9f5eef5a1e0132ea8ec90938305dfde2 Task-number: QTBUG-50575 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* QQuickUniversalFocusRectangle: avoid unnecessary paintsJ-P Nurmi2016-02-061-0/+3
| | | | | | | | | | | | | Drawing a double-dashed focus rectangle gets seemingly expensive if the active focus control is eg. a SwipeView that covers the whole screen. In fact, SwipeView does not even request a focus rectangle (useSystemFocusVisuals: false), so it makes no sense to waste CPU cycles drawing a huge double-dashed rectangle. It's a bit unclear why QQuickPaintedItem even calls paint() when it's hidden... Change-Id: I57a8dd309674b8a6e99749544242a00dc02471ee Task-number: QTBUG-50575 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Update example snippets to use qrc:/main.qmlJ-P Nurmi2016-02-052-2/+4
| | | | | | | This matches the Qt Quick application template in Qt Creator. Change-Id: I509481ee60b3f06a5a29202753767f32023e37b8 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Fix Universal & Material style font checksJ-P Nurmi2016-02-022-2/+2
| | | | | | | | Use QFont::exactMatch() to find out whether the font exists. Change-Id: Ie4f0a3a55c9337c504684aa285c93391e41279aa Task-number: QTBUG-50815 Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* Update .gitignoreJ-P Nurmi2016-02-021-0/+9
| | | | | Change-Id: Iff06544f14964e442b66901d5c23254786008293 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Make popups work without ApplicationWindow, to some degreev5.6.0-rc1v5.6.0J-P Nurmi2016-01-308-94/+118
| | | | | | | | | | | | | | Using ApplicationWindow is highly recommended. First of all, with a plain Window, QQuickPopup attempts to set a high z-value, but cannot guarantee correct stacking order. Secondly, we cannot provide style- specific background dimming for modal popups, because it is styled as part of ApplicationWindow. Last but not least, QQuickPopup has to install a window-level event filter, which is far less efficient than how event handling done in QQuickOverlay. Change-Id: I08915abce7a1764177b92f7539eef77c054a405a Task-number: QTBUG-49921 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>