aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* ItemDelegate: implement highlighted stateJ-P Nurmi2015-12-033-3/+13
| | | | | Change-Id: I6c4cdd97fcdaa86c2bdc5a8f465c2d9b6eddcf13 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Promote Button::highlighted to AbstractButtonJ-P Nurmi2015-12-035-54/+33
| | | | | Change-Id: I0e17a6c25dfd89fdb547720e9a626c2ec9d7765a Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Adapt MenuItem to designsMitch Curtis2015-12-031-4/+3
| | | | | | | Decrease the padding and swap the label/indicator order. Change-Id: I0ee2528d3c3111024fe1a6e52acc0da1a0d30990 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Make Qt::Key_Escape close MenuMitch Curtis2015-12-031-0/+3
| | | | | Change-Id: Ib7d74b556378f7ec5ac3156c92a02d6834bff82e Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* QQuickStyleSelector: don't inherit QObjectJ-P Nurmi2015-12-026-28/+20
| | | | | | | | 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-0212-315/+387
| | | | | | | | | 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>
* Add MenuMitch Curtis2015-12-0218-0/+1169
| | | | | | | | | An item-based menu derived from QQuickPanel. Eventually we'd like to make Panel itself a QQuickItem, as it makes both the implementation and the actual usage of Menu a lot easier. Change-Id: Ic1bf2a05ab98d9e17824c402ed8326ef65d26c69 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Control: resolve the font a bit earlierLiang Qi2015-12-018-1/+64
| | | | | | | Also applied to QQuickLabel, QQuickTextArea and QQuickTextField. Change-Id: Icf10500905980445809eb2375e8957db2c41e03c Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Material: move to QQuickProxyTheme way for font settingsLiang Qi2015-12-016-3/+169
| | | | | Change-Id: Ib3fe1809887bbcf3db1822c6eb0182e0181cf70f Reviewed-by: J-P Nurmi <jpnurmi@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>
* Added defaultFont() for QQuickControl and etcLiang Qi2015-12-0115-1/+92
| | | | | | | | | | | | | | | The map between controls and QPlatformTheme::Font: * QQuickControl and etc: SystemFont * QQuickButton: PushButtonFont * QQuickToolButton: ToolButtonFont * QQuickCheckBox: CheckBoxFont * QQuickRadioButton: RadioButtonFont * QQuickLabel: LabelFont * QQuickGroupBox: MdiSubWindowTitleFont (tmp) * QQuickTabButton: DockWidgetTitleFont (tmp) Change-Id: If8c0239ece673941164fd97f52240ef27d97b950 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Added QQuickProxyThemeLiang Qi2015-12-013-0/+281
| | | | | Change-Id: I0e34c99564f30aef9ab17a8faa4ead6fa3829f5f Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Remove QQuickMaterialStylePrivateJ-P Nurmi2015-11-302-134/+79
| | | | | | | | | This paves the road for QQuickStyle, a common base class for QQuickMaterialStyle and QQuickUniversalStyle. QQuickStyle will be in a static library -> no BC requirements -> no pimpl. Change-Id: Ibac37bef3a9282a3b7aaf29c4de854cab3cd8d7d Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* QQuickStyleSelector: add instance() static methodLiang Qi2015-11-303-30/+40
| | | | | Change-Id: Id2a412175f9907651d8e4e0fdacb624ac2444552 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* QQuickStyleSelector: move the style detection to constructorLiang Qi2015-11-302-12/+7
| | | | | | | Command line argument has more priority than environment variable. Change-Id: Id76f703d1d4395b6bae1a2e6be162a9250fb8dfa Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* QQuickStyleSelector: removed the env overrideLiang Qi2015-11-301-6/+0
| | | | | Change-Id: I0e42b339ddfff81ad9029cfbff14e21aee5178ff Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* QQuickMaterialStyle: move colors into a static const C-arrayJ-P Nurmi2015-11-301-288/+335
| | | | | | | | | | Populating and accessing is faster than QHash, and the array is initialized once per application. The original hash map was also meant to be static, but it slipped in as non-static meaning that the colors were initialized once per style instance. Change-Id: I915615a4294e11f49d2fb47b3c50f0e5c50adbe2 Reviewed-by: Mitch Curtis <mitch.curtis@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>
* Cleanup unused QQuickMaterialStylePrivate::MethodJ-P Nurmi2015-11-281-2/+0
| | | | | Change-Id: I0e33ff9d87b336e7b55958632c4ee5440d2e7916 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* QQuickMaterialStyle: remove duplicate QQuickItemChangeListenerJ-P Nurmi2015-11-281-6/+3
| | | | | Change-Id: I45582349a97f0ed5b265da4d4f617b1f12f0d48d Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Remove theme.json leftoverJ-P Nurmi2015-11-273-19/+0
| | | | | Change-Id: I7b8aaedf3a3c645db7bf6a1ca88472d8458de568 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Re-order imports.pro - styles togetherJ-P Nurmi2015-11-271-1/+1
| | | | | Change-Id: I59810b3b116ba8bd3aae938ab571ee83ce2802bd Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* fix linking / usage on iOSJochen Seemann2015-11-273-3/+3
| | | | | | | | | | | | | | | | 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>
* Add high DPI variants of Dial's indicatorMitch Curtis2015-11-276-0/+4
| | | | | Change-Id: I56f9e26fa96955d25adf47c8963e7e23765266ba Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Material: add high DPI versions of check.pngMitch Curtis2015-11-275-0/+3
| | | | | | | | I didn't have the original SVG, so I remade it, hence the slight change in size. Change-Id: I24c8049655dbc379577b8c7913d2db31c12da6d2 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Update plugins.qmltypesMitch Curtis2015-11-271-45/+40
| | | | | Change-Id: I9cdb652f20deb3c0e7b1705d37f69ff4f954e233 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Remove ThemeMitch Curtis2015-11-2722-1023/+19
| | | | | | | | | Given the presence of alternative styles, we'd like to focus on making the default style as performant as possible. Removing Theme usage is a step towards this. Change-Id: I8f76dc98442e6c02703885591a44758f40c7a362 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Rename QQuickFileSelector to QQuickStyleSelectorLiang Qi2015-11-267-50/+53
| | | | | | | Also moved to QtLabsControls lib. Change-Id: I8ed1256da2b9aa63db4ca3b51a0ace3ba730e542 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Implement more of default style designMitch Curtis2015-11-267-25/+32
| | | | | Change-Id: Ieaa2fa1b876d75f94f48a7fce0c47c166b969d57 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Update Material editorsJ-P Nurmi2015-11-262-12/+40
| | | | | | | | | | | | | - hide the cursor and stop the timer when the editor doesn't have active focus - bring the cursor visible when gaining focus, and keep it visible while it's being moved - make use of QStyleHints::cursorFlashTime() - fix background positioning - set selection color to avoid the default blue Change-Id: I588f1f1cceaa2a6c9930cbdb1f0d1680117e0eef Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Optimize Material ItemDelegateJ-P Nurmi2015-11-261-87/+37
| | | | | Change-Id: I868475a828e35a08c3f9c65996e896863a372bae Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Optimize Material CheckBoxJ-P Nurmi2015-11-261-87/+37
| | | | | | | | | | | | | | | | | | | Before: tst_ObjectCount::material(CheckBox): QQuickItems: 5 (total of QObjects: 28 ) tst_CreationTime::material():"CheckBox": 0.28 msecs per iteration (total: 72, iterations: 256) After: tst_ObjectCount::material(CheckBox): QQuickItems: 5 (total of QObjects: 19 ) tst_CreationTime::material():"CheckBox": 0.20 msecs per iteration (total: 53, iterations: 256) Change-Id: I63a76f5bfb190655237d21d68397d5dc93941fe0 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Specify baseline offsetsJ-P Nurmi2015-11-2518-0/+18
| | | | | | Change-Id: I4845a7beac2edc0f0bcc1c810edd7d9e86f31c87 Task-number: QTBUG-49468 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Add ItemDelegateJ-P Nurmi2015-11-2519-0/+734
| | | | | Change-Id: I133be230d0d4b2fd36565f8f05d91426c314a085 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Material style: remove unnecessary QPainter operationsMitch Curtis2015-11-241-3/+0
| | | | | | | Change-Id: I4151421420838d66931aa00ab08ddbfecdf8944c Reviewed-by: Liang Qi <liang.qi@theqtcompany.com> Reviewed-by: Gunnar Sletta <gunnar@sletta.org> Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Fix ScrollBar layoutingJ-P Nurmi2015-11-241-14/+26
| | | | | | | | | QQuickScrollBar was relying on itemGeometryChanged() for the attached flickable. If the flickable geometry didn't change _after_ scroll bar was attached, the bar was not positioned and resized as appropriate. Change-Id: I8f8695b468596acf570e028dae96f7c31d73ffba Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Fix ScrollIndicator layoutingJ-P Nurmi2015-11-241-14/+26
| | | | | | | | | | QQuickScrollIndicator was relying on itemGeometryChanged() for the attached flickable. If the flickable geometry didn't change _after_ scroll indicator was attached, the indicator was not positioned and resized as appropriate. Change-Id: Ib5b4816b4ba96ad73873722045ac4e3b7e47038d Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Docs: remove bogus \qmlabstract from AbstractButtonJ-P Nurmi2015-11-241-1/+0
| | | | | Change-Id: I75ce73d77fdd5dfab824fb98ba8a7cd670316cc8 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Add QQuickPaddedRectangleJ-P Nurmi2015-11-235-1/+333
| | | | | Change-Id: I72c535c2be99d345e1474a70e5c639f3b5a68e10 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Visualize Material Button's highlighted stateMitch Curtis2015-11-233-7/+46
| | | | | | Change-Id: I1c638c0b70a0ba8d0f5cfe1d7e41fd514c38c1c9 Task-number: QTBUG-49551 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Material: qualify resources (such as images) with a prefixMitch Curtis2015-11-232-2/+2
| | | | | Change-Id: Id59eee0982cc7dd197de26b6579947d615449d8b Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Mark the controls plugin as "designersupported"J-P Nurmi2015-11-201-0/+1
| | | | | Change-Id: I0daf2780fdf7c9f9155a27e1f3ef2e1a28fb4052 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
* Fix accessibility initializationJ-P Nurmi2015-11-202-0/+11
| | | | | | | | | | | | If accessibility is already enabled at construction time, QQuickControl does not get a notification of accessibility activation change. This patch fixes the issue that the attached property object was not created at all, by calling accessibilityActiveChange(true) when appropriate at component completion. Change-Id: I5d763d66c97a540687b217b8ae453d073f6bfdb4 Task-number: QTBUG-49361 Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* Adjust default style to match current specs.Mitch Curtis2015-11-1918-219/+115
| | | | | | | There are still more changes to come. Change-Id: I94ed2c5d649d72d90e43120841c2457091200b59 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Remove outdated paragraph from styling documentationMitch Curtis2015-11-191-5/+0
| | | | | Change-Id: If98b7296964b457e6a073cb232ca2ef1e024fb1d Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Keep the overlay visible when there are any childrenJ-P Nurmi2015-11-171-6/+3
| | | | | Change-Id: I1446e88d7102ebae0e9933710e8e67d8ce925c5b Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* ApplicationWindow: cleanup content item codeJ-P Nurmi2015-11-171-6/+3
| | | | | Change-Id: I0133870a273ff44a07ee1a372498c2c242a63b36 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Docs: PanelJ-P Nurmi2015-11-171-5/+63
| | | | | Change-Id: Ifdf779c8a7ab85a303d4a018397b8700e48e85fd Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>