aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/universal
Commit message (Collapse)AuthorAgeFilesLines
* Universal: fix Pane backgroundv5.6.0-beta1J-P Nurmi2015-12-141-1/+1
| | | | | Change-Id: I8187a968f4f11438c02374ffb2b6b8d33ecb8dc1 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Remove QQuickStyleSelector::instance()J-P Nurmi2015-12-141-2/+2
| | | | | | | | | | | 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>
* 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>
* 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>
* Use TabButtonFont and GroupBoxTitleFont from QPlatformThemeLiang Qi2015-12-102-11/+11
| | | | | | | | * QQuickGroupBox: GroupBoxTitleFont * QQuickTabButton: TabButtonFont Change-Id: Ib2e58a95c49353536231cc93d28dba075629c59f Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Introduce PaneJ-P Nurmi2015-12-092-0/+62
| | | | | | | | 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-091-7/+6
| | | | | | | | | 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>
* GroupBox: add an example of a checkable groupboxJ-P Nurmi2015-12-091-2/+4
| | | | | | | Adjust the size calculation so that the example works smooth. Change-Id: Iaf25107b0cfaa3ceef0caeba120d1bd74c9bc854 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Implement Universal style Menu & MenuItemJ-P Nurmi2015-12-073-0/+172
| | | | | Change-Id: I1dd04a9424c69d6824d00e49a9ea5ae2b1a97342 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Add ComboBoxJ-P Nurmi2015-12-047-0/+147
| | | | | Change-Id: I4cfc2367db92786097a1ce66bd4b5a2f71322a2e Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* ItemDelegate: implement highlighted stateJ-P Nurmi2015-12-031-2/+10
| | | | | Change-Id: I6c4cdd97fcdaa86c2bdc5a8f465c2d9b6eddcf13 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* QQuickStyleSelector: don't inherit QObjectJ-P Nurmi2015-12-021-1/+1
| | | | | | | | Fixes the "QObject: Cannot create children for a parent that is in a different thread." -warnings. Change-Id: I94ed34c6c4c7a6b6507e91e74a354630b0ad6d04 Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* Add QQuickStyleJ-P Nurmi2015-12-023-70/+42
| | | | | | | | | Now that we have a good place for it, we can share a common base class for QQuickMaterialStyle and QQuickUniversalStyle. QQuickStyle implements the inheritance pattern for attached styles, in one place. Change-Id: I459d98f96ce7c6de1ce7ef716e859f459278d8ad Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Universal: move to QQuickProxyTheme way for font settingsLiang Qi2015-12-0120-65/+178
| | | | | Change-Id: I90d91ceaea245dc19d2c0de683cb7c1172e1042e Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Universal: use QRgb instead of color namesJ-P Nurmi2015-11-281-73/+73
| | | | | | | | Constructing colors from QRgb (typedef unsigned int) is a million times faster than parsing named color strings. Change-Id: I01453c6d6c500e32736f3e331569e7034140c644 Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* fix linking / usage on iOSJochen Seemann2015-11-271-1/+1
| | | | | | | | | | | | | | | | Using QtQC2 in an application on iOS was failing during linking with: duplicate symbol __Z13initResourcesv in: .../controls/libqtlabscontrolsplugin_iphonesimulator.a(qtlabscontrolsplugin.o) .../controls/material/libqtlabsmaterialstyleplugin_iphonesimulator.a(qtlabsmaterialstyleplugin.o) duplicate symbol __Z13initResourcesv in: .../controls/libqtlabscontrolsplugin_iphonesimulator.a(qtlabscontrolsplugin.o) .../controls/universal/libqtlabsuniversalstyleplugin_iphonesimulator.a(qtlabsuniversalstyleplugin.o) Making initResources() static inline as intended. Change-Id: I340b5eb711aaa195f4110f049bcc3a6eb84341cc Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Specify baseline offsetsJ-P Nurmi2015-11-256-0/+6
| | | | | | Change-Id: I4845a7beac2edc0f0bcc1c810edd7d9e86f31c87 Task-number: QTBUG-49468 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Add ItemDelegateJ-P Nurmi2015-11-252-0/+98
| | | | | Change-Id: I133be230d0d4b2fd36565f8f05d91426c314a085 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Universal: handle Button::highlightedJ-P Nurmi2015-11-161-2/+2
| | | | | Change-Id: I060980e8110cdc9158ce7f1030186cbdbadbe48e Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Cleanup & align the .pro filesJ-P Nurmi2015-11-161-2/+2
| | | | | | | | Remove some superfluous spaces, include paths, and module deps. Also, use more explicit QT_PRIVATE for private dependencies. Change-Id: I85d48213441749ab18442928a20cbb4c9c6dad0b Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Add missing QT_NO_CAST_TO_ASCII QT_NO_CAST_FROM_ASCIIJ-P Nurmi2015-11-163-4/+6
| | | | | | | http://lists.qt-project.org/pipermail/development/2012-February/002001.html Change-Id: Id6815c3bd9b196590b0c93b8ddf2f977cdc6a511 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Add Universal styleJ-P Nurmi2015-11-1251-0/+3911
https://dev.windows.com/design Change-Id: I1d8c633ae246724649a6ed71b300a56ba9572405 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>