aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Universal: set larger touch areas for SpinBox buttonsJ-P Nurmi2015-12-181-9/+11
| | | | | | Change-Id: Id7b6bb25b69deb1d0a7a12bb7d2416faf5a3adba Task-number: QTBUG-50033 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Material: show/hide transition for MenuJ-P Nurmi2015-12-181-0/+13
| | | | | Change-Id: I710aa7d12353374b852078379738c755073c5da3 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Material style for MenuJ-P Nurmi2015-12-185-6/+90
| | | | | Change-Id: Ifb00d1ddfc326cf206f6d1ffd93ccbe248eb5a3d 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>
* Fix build orderKonstantin Ritt2015-12-181-2/+2
| | | | | | | | `imports.depends` doesn't work for qmake -r. Change-Id: Ia853f4bca830ea199e8fe867ae5cde1ea722365b Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Update plugins.qmltypesJ-P Nurmi2015-12-173-18/+1726
| | | | | | | | | The contents of templates/plugins.qmltypes has been manually copied to controls/plugins.qmltypes as suggested in the linked bug report. Change-Id: I6b71af2aa85f6e87f42689018f7814e5c139b7c8 Task-number: QTCREATORBUG-15137 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* QQuickPaddedRectangle: fix antialiasing issuesJ-P Nurmi2015-12-171-5/+18
| | | | | | | Use a transformation node to set the position of the rectangle node. Change-Id: Ic9d8f03d0921236556d363cc66ff2fe66ce296e4 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>
* Button: visualize disabled state more clearlyJ-P Nurmi2015-12-172-1/+4
| | | | | | Change-Id: I0b1bec4aa2c17e875a9a9580e10db80f6b21bc35 Task-number: QTBUG-50008 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* ToolButton: support highlighted modeJ-P Nurmi2015-12-173-7/+6
| | | | | | Change-Id: I8fb754080e204384e0215d60e819f9eaac204de7 Task-number: QTBUG-50018 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* ProgressBar: tweak the default styleJ-P Nurmi2015-12-171-9/+4
| | | | | | | | | The animation is not according to the designs, but the overall looks are now a bit closer (no rounded corners or empty padding). Change-Id: Ia3ee94390f99c7ccc320e2ae87ae1d6d986ed33c Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Material: fix mis-aligned text in tabsJ-P Nurmi2015-12-171-2/+2
| | | | | | | | Same as 5f5654f but for the Material style. Change-Id: I5d206c396099af6dafbe828438cdf9262896502e Task-number: QTBUG-48718 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Implement BusyIndicator according to designsMitch Curtis2015-12-169-23/+310
| | | | | | Change-Id: Iffaafc1d5512b4e47a7c6c304a3883ab8d986b12 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com> Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Make Drawers use the overlay background dimmingJ-P Nurmi2015-12-163-18/+36
| | | | | 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>
* Prefix resources to avoid clashesJ-P Nurmi2015-12-167-9/+9
| | | | | Change-Id: Ia166a0acd1cfae92ba096a687a574f3645fc6f5c Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Run optipng -o7 -strip "all" over default style imagesJ-P Nurmi2015-12-1615-0/+0
| | | | | | | | | | | Strip contained color profiles causing the warning: libpng warning: iCCP: known incorrect sRGB profile Same was done to QQC1 in 58b8833. Change-Id: I4773f59ed6e76e83c2e6b8f5caf3666433f87cb9 Task-number: QTBUG-49924 Reviewed-by: Mitch Curtis <mitch.curtis@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>
* Replace QLatin1Literal occurrences with QStringLiteralKonstantin Ritt2015-12-162-4/+4
| | | | | Change-Id: I37bd9dd933c2125dbe6d382bf6d0a6a46b31c1dd Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* UniversalTheme: Fix typo in the system font family nameKonstantin Ritt2015-12-161-2/+2
| | | | | Change-Id: I5eefd75677a5762fed848c1e174211abd00bafba Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Add Overlay::background that is shown when any modal popup is openJ-P Nurmi2015-12-158-2/+79
| | | | | Change-Id: Idc2a5bbb5cf7a08ff21731537a378b1dd8050833 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Expose the actual type of QQuickApplicationWindow::overlay()Mitch Curtis2015-12-154-4/+8
| | | | | | 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>
* Material: fix drop shadowsJ-P Nurmi2015-12-153-44/+59
| | | | | Change-Id: Ic4b1152a0a8a28a64721f064ccd09b669a12e795 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Universal: fix Pane backgroundv5.6.0-beta1J-P Nurmi2015-12-141-1/+1
| | | | | Change-Id: I8187a968f4f11438c02374ffb2b6b8d33ecb8dc1 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>
* Make QQuickStyleSelector case-insensitiveJ-P Nurmi2015-12-141-3/+3
| | | | | | | | | | | | | | | | | This is especially nice for qtlabscontrols.conf: [Controls] Style=material vs. [Controls] Style=Material Previously, only the first syntax worked. Change-Id: Ib4a47dca002acb5c0227f3dcfea7251296f8386e Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* Remove QQuickStyleSelector::instance()J-P Nurmi2015-12-145-47/+38
| | | | | | | | | | | It was a bad idea to share the same instance, because non-thread-safe instance() ends up being called from multiple threads. Let the style plugins create their own instances instead, QQuickStyleSelector ctor is not that heavy and there's no such shared state as originally was anticipated. Change-Id: Ie23091c6dd50f5d7abbab3b996da4471054da89a Reviewed-by: Liang Qi <liang.qi@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>
* Material style: read theme, accent & primary from qtlabscontrols.confJ-P Nurmi2015-12-142-4/+37
| | | | | Change-Id: Ie55978ae9c76789cf7796752ceefd183c063662b Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Universal style: read theme & accent from qtlabscontrols.confJ-P Nurmi2015-12-142-3/+35
| | | | | Change-Id: Ie41bf8a3b375835a07229eff49e6d10e3ff79992 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Read preferred style from qtlabscontrols.confJ-P Nurmi2015-12-141-0/+7
| | | | | Change-Id: I3aeed5c8316a099eed5ea8df25711193ee3c7d90 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Add QQuickStyle::settings()J-P Nurmi2015-12-142-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Loads ":/qtlabscontrols.conf" from resources. The next step is to make it possible to specify the preferred theme and accent in qtlabscontrols.conf. Different values can be specified for each style, which will take effect when running the app using the respective style. These are the preferred or default values, which can be overridden in code. [Controls] Style=material [Universal] Theme=Dark Accent=Red [Material] Theme=Light Accent=Brown The reason for using our own qtlabscontrols.conf file instead of re-using qt.conf is that qt.conf is strictly purposed for specifying the standard Qt paths for deployment setups. If qt.conf missing paths for QLibraryInfo, Qt fails to load the platform plugin: This application failed to start because it could not find or load the Qt platform plugin "windows|cocoa|xcb". Change-Id: I8da7f0859f004db8adf585b830bce4aa8e7713a9 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Docs: move "Differences between Qt Quick Controls" on its own pageJ-P Nurmi2015-12-142-246/+284
| | | | | Change-Id: Ib00f19f793a4d65b6bd1ba109e92cb310e2d3491 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Universal ComboBox: visualize key & mouse focus differentlyJ-P Nurmi2015-12-121-1/+1
| | | | | Change-Id: I90bc393e63027a4485228a73f571a513cfe5fcc4 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Universal: focus rectangleJ-P Nurmi2015-12-1210-0/+156
| | | | | Change-Id: I74005dcce5f1f41e9455b882f313952f88c364f9 Reviewed-by: J-P Nurmi <jpnurmi@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>
* Register also "unstyled" controls to the Qt.labs.controls namespaceJ-P Nurmi2015-12-101-0/+8
| | | | | | | | | The documentation is full of references to Control and other "unstyled" control. This change makes it possible to use them without importing the templates. Change-Id: I4026d4c212139568ab9229f956b115c328d69b72 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Use TabButtonFont and GroupBoxTitleFont from QPlatformThemeLiang Qi2015-12-106-17/+17
| | | | | | | | * 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-0921-135/+652
| | | | | | | | Provides a background color that matches with the application style and theme. Change-Id: I5e7ea4fededaaf46687a2ea0391f43dbf55e3b42 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>