aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/qquickcontrol.cpp
Commit message (Collapse)AuthorAgeFilesLines
* QQuickApplicationWindow: add locale propertyLiang Qi2015-12-211-0/+3
| | | | | Change-Id: I1292d1fb856710e38add8d77ae6e3dac28137cd9 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Control: implement locale inheritanceLiang Qi2015-12-211-9/+64
| | | | | Change-Id: I2f16141b53dd44e471050ef6901ddc480c77895f Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Fix build on ARM with -qreal floatJ-P Nurmi2015-12-181-2/+2
| | | | | | Change-Id: Id80ecea7bd79265d731e5c5e37c0acf0e344c8ab Task-number: QTBUG-50048 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Add QQuickControl::focusReasonJ-P Nurmi2015-12-121-1/+47
| | | | | | | | | 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>
* Docs: ApplicationWindowJ-P Nurmi2015-12-101-1/+1
| | | | | Change-Id: Ic565ef245985a5dbbd69cd2fd6473748c66b4f54 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Remove Control::layoutDirectionJ-P Nurmi2015-12-091-54/+8
| | | | | | | | Calculate QQuickControl::isMirrored() from LayoutMirroring.enabled (QQuickItemPrivate::isMirrored()) and QLocale::textDirection(). Change-Id: I0e391d27df732734031f3e94d9828a1a2cfa7474 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Add Control::localeJ-P Nurmi2015-12-071-1/+30
| | | | | | Change-Id: I6c6647de6d286a92b35bca09a45e82cd3343a623 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com> Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* QQuickApplicationWindow: add font propertyLiang Qi2015-12-031-0/+8
| | | | | Change-Id: I6f946994f789704aa2efa94aaea0129d0d73d005 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Control: resolve the font a bit earlierLiang Qi2015-12-011-1/+8
| | | | | | | Also applied to QQuickLabel, QQuickTextArea and QQuickTextField. Change-Id: Icf10500905980445809eb2375e8957db2c41e03c Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Added defaultFont() for QQuickControl and etcLiang Qi2015-12-011-1/+26
| | | | | | | | | | | | | | | 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>
* Fix accessibility initializationJ-P Nurmi2015-11-201-0/+10
| | | | | | | | | | | | 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>
* Added QQuickControl::accessibleRole() and etcLiang Qi2015-10-291-19/+9
| | | | | | | | * m_accessibleRole was removed * also applied to QQuickLabel, QQuickTextArea and QQuickTextField Change-Id: I4b487f32cccfba0e16b3dba7e39882e8cd7ea616 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Control: fix available sizeJ-P Nurmi2015-10-271-4/+4
| | | | | | | | | | | First of all, don't allow negative available size, because it doesn't make much sense. Secondly, geometryChanged() was comparing new width to old height, so availableHeightChanged() was emitted under wrong conditions. Furthermore, the comparisons should are better done fuzzy to avoid unnecessary change notifiers. Change-Id: Ic2bbc106670882b421f79db82d4b47d846e1c4e0 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* QQuickControl: dynamically create a11y attached objectLiang Qi2015-10-211-20/+39
| | | | | | | Using QAccessible::ActivationObserver approach. Change-Id: Ib99c1f9b7b0c37a3e8a4747db265c9df77acc1f8 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Docs: Control::fontJ-P Nurmi2015-10-141-0/+20
| | | | | Change-Id: If2196bc7c82f8edb630c48aad3e7e00e0d7c2cee Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com>
* Docs: use constant-value -tables for supported enum valuesJ-P Nurmi2015-10-041-5/+3
| | | | | Change-Id: I6243e08099d1fdd0584817f7ff5ccf5825a8cae0 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Rename QtQuick.Controls 2.0 to Qt.labs.controls 1.0J-P Nurmi2015-10-011-14/+14
| | | | | Change-Id: I142622dd85e95ef70b11132e77ccf48701f2cabc Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Rename QtQuick.Templates 2.0 to Qt.labs.templates 1.0J-P Nurmi2015-10-011-1/+1
| | | | | | Change-Id: I3263a600065dfa2bfe7334ec44a74e2dca83aa36 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com> Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Doc: Replaced the module name qualifier used for QML docsVenugopal Shivashankar2015-09-231-13/+13
| | | | | | | | Also made changes to avoid qdoc warnings about qml snippets. Change-Id: Ide047fe7a4901fcf4b03efdccf457662e60585d2 Reviewed-by: Topi Reiniƶ <topi.reinio@digia.com> Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Tidy up QQuickControlPrivate::updateFontRecur() a bitJ-P Nurmi2015-09-181-17/+12
| | | | | Change-Id: I420c48e95380f79c4d4f3aaa40f7f65f1646834d Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* Add QQuickControlPrivate::get()J-P Nurmi2015-09-181-1/+1
| | | | | Change-Id: Ide0e32f5a91d866cb45a96414713facba3d48e6c Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* Rename libQtQuickControls to libQtQuickTemplatesJ-P Nurmi2015-09-161-0/+728
Change-Id: I1e663bb7be2be8b3d4edf0c038862cc2150aec40 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>