| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
This makes the controls visualize focus only when interacting with
keys, so this basically allows us to set for example Qt.StrongFocus
policy by default on buttons and friends.
Change-Id: I6c81c58b7acfd2bc592bdd12d804e7e48ee65e95
Task-number: QTBUG-51796
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: I7b4b34e77c2bee4890871615d31af2f52afb39ac
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
|
|
|
|
| |
Using pluginBasePath() ensures that it finds the qml files in the expected
place so it needs to use this to work correctly when statically built.
Change-Id: I685a98efc284a7c7d2b6a182f269a09e381a3472
Reviewed-by: Andy Shaw <andy.shaw@theqtcompany.com>
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
|
|
|
|
| |
Non-default plugins aren't located under
qrc:/qt-project.org/imports/Qt/labs/controls, but rather a
sub-directory of it.
Change-Id: I9b6e21da29dd50a4aeb7b080a0f7a1d45b744be9
Reviewed-by: Andy Shaw <andy.shaw@theqtcompany.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is a convenience property that combines Item::activeFocus and
Control::focusReason. This allows us to solve QTBUG-51796 in an elegant
way - we can simply set Qt::StrongFocus policy on most of the interactive
controls, such as buttons. The only thing we need to make sure is to use
activeKeyFocus instead of activeFocus in the styles. This ensures that key
focus is only visualized when actually interacting with keys - not when
interacting via touch or mouse. This is a generalized version of the
solution that was already used in the Universal style ApplicationWindow.
Change-Id: Ifbf78e3e412f3791c8f7c369bb2de53af9ac6b0f
Task-number: QTBUG-51796
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
|
|
|
|
| |
This is a common base class for QtQuickMaterialStylePlugin and
QtQuickUniversalStylePlugin that takes care of the proxy theme
installation and manages its life time by using a scoped pointer.
Change-Id: I2cbe38287565d284b18fab4265456a41a2dbd8d4
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: Iec1762d4abed06ee6713288af9007dbebd7bfa6a
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: Ic1f3ad7f931af87bf1e0fb2938ce8d61351238b4
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: I42a68accfbc493b1047a473ab786fe5d417b2265
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: Ie6fea8d57886ba2c6ed3b3016cd6402f86395f34
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
|
|
|
| |
QQuickProxyTheme's destructor restores platform_theme,
so keep proxy theme around and destroy it when we don't need it anymore.
Change-Id: I2fef7c295251af1cd944cea27531c1c117d34d51
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
|
|
|
|
| |
Passing null to i.e. Page's header resets the header item to Page's
initial value, so that Page with unset header must look exactly like
Page that never had header set.
Change-Id: I553e5d2463e099723b74b0eec1b2224ae8ee970f
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
|
|
|
| |
When the header or footer item's visibility changes, contentItem's
geometry have to be adjusted.
Change-Id: I9e73c48ff2301f8b371fc797ac4972ef5937b22f
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
|
| |
Change-Id: I07d1b255baa741ae7c12ae2a04a348c5559f757c
Reviewed-by: Martin Smith <martin.smith@theqtcompany.com>
Reviewed-by: Topi Reiniö <topi.reinio@theqtcompany.com>
|
|
|
|
|
|
|
|
|
| |
This is needed to register private QML files that are necessary for
the implementation of some controls. Previously, this information
was only available in registerTypes().
Change-Id: I9d0c293d6fad2afbf240771044165b048b77136c
Reviewed-by: Andy Shaw <andy.shaw@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: I57cdc6c7b7bb91781b352931772a5aaa8196e0e2
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
|
|
|
|
|
|
|
|
|
| |
A custom-shaped Button's contains() could return false just anywhere
within the content rect, so we should handle this exactly the same way
as for the drag threshold overrun.
Change-Id: Ie1665933be228334c6f95e97bd42e2dcd892b947
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: I1e175917b12c5f41c2e43a5317da1220b24f296e
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
|
|
|
| |
Replaced all remaining instances of "Qt Labs Controls"
Change-Id: Iab8ca27d98a16a7c99bd364c66efc8b98d93eacc
Reviewed-by: Topi Reiniö <topi.reinio@theqtcompany.com>
Reviewed-by: Martin Smith <martin.smith@theqtcompany.com>
|
|
|
|
|
|
|
| |
Task-number: QTBUG-52156
Change-Id: Ic299475adeef7142e717699ba787b35e66b552c1
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Reviewed-by: Vlad Stelmahovsky <vladstelmahovsky@gmail.com>
|
|
|
|
|
|
|
| |
Replaced all remaining instances of "Qt Labs Controls"
Change-Id: Iad784417b9b4ce015c11b4737dab2105b338ff5f
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
|
|
|
|
|
| |
- Add "Delegate Controls" doc page. This will list future delegate
controls, such as CheckDelegate, RadioDelegate and SwitchDelegate.
- Add GIF for ItemDelegate.
Change-Id: If8c66ab2178185f96d190f29ef7815beaa6e8d68
Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com>
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: Ic1c8c678f24d2c17d34c1ea7df82bd92806e29b9
Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: I6525612814ff5f2d56db53c305aa4a6ea057dcea
Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
This reverts commit faa65aebb2e52cc809248f6cbb86b994ff329285.
It's not just OS X that fails, and tst_styles doesn't have a blacklist,
so the test still causes integration failures for the material and
universal styles. Rather than maintain two blacklist files, we'll just
go back to skip().
Change-Id: Idcd460f5e90b205bc40367e48406b1b05b96d7fc
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
This reverts commit 68eec20b69851e5c0901a186ad27fe56abac1745.
It's not just OS X that fails, and tst_styles doesn't have a blacklist,
so the test still causes integration failures for the material and
universal styles. Rather than maintain two blacklist files, we'll just
go back to skip().
Change-Id: I3d7536aa86189a238346cb2e73a601a227b2b409
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
|
|
| |
Don't evaluate condition twice. Just use result of width.
Change-Id: I38152353e7a2a5f60430684d38eb61140075d56f
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
|
|
| |
Just cache it.
Change-Id: Ibc1ec94331be6b019834f39c570b9ec43aabbae7
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
|
|
| |
Just cache it.
Change-Id: I3055352378b14e6ccebb6de91163f01da0b0b0d3
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Change \title, \page, and \l instances that used "qtlabs" instead
of "qtquick".
- Renamed the qdocconf file and changed the qch parameters in it to use
"Qt Quick Controls 2".
- Added "2" as output suffix for the html filenames.
Change-Id: Ia2fdd1c835229e5216f42a2fdfa5f7e11965e21d
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Reviewed-by: Topi Reiniö <topi.reinio@theqtcompany.com>
|
|
|
|
|
|
|
|
|
| |
Don't allocate memory to extract name: use QStringRef.
Replace QStringLiteral with QL1S to use QStringBuilder.
Extract color only when it's needed.
Change-Id: Ic02315e95defcffecce0128fb175b1d4a08db817
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
|
|
|
|
|
| |
Replace QString::arg() chain with multi-arg overloaded function.
It's faster because of args are replaced in one pass.
While touching the code, also cache width and height of bound.
Change-Id: Id8d19143f426ed1998713204dc9c8d4b51e58db5
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
|
|
|
|
| |
... with known size and known value by according ctor.
Don't use appending for this case.
Change-Id: Ib2bf9703bb03bdfa628d1ae78c6d0353e991b3e4
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
|
|
| |
De-duplicate calls and cache results.
Change-Id: Ia3424ac5149b947530e724b07adbff95cb54faf7
Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: I5318a61dbb699e2f251d218e614c1a2ff02d53a7
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
|
|
|
| |
Don't evaluate condition twice. Just use result of
parent.border.color
Change-Id: Ib0c31fd5eba9d12cb95143c77e40514637028f8a
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
|
|
|
| |
Environment values take presedence over the default values requested in
qtquickcontrols.conf, the same way than style name.
Change-Id: I4641317bdce320c33a89f3614f3c782883c9c843
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: I353f9c8b0dec4eef71d27300645a1dc3cbca82cd
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: Ifeb927d7d3edde0b01b4ed666b6a19354171e605
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
|
| |
Change-Id: Icf71270e63aedd93ba975ab9743de68c3a54e849
Task-number: QTBUG-51007
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
|
| |
Change-Id: I35df7eef5ea47dc45d94a5c2c52e436c364a3fe4
Task-number: QTBUG-50993
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
|
| |
Change-Id: I3f566f138b3e26e75ad3e7ab36078ee04e5d627c
Task-number: QTBUG-50993
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
|
| |
Change-Id: Ic828f82d38da4a16dc3d308cb67d94a11582768c
Task-number: QTBUG-50993
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
|
| |
Change-Id: Id95e48ee694cb205bf2f16acbc90b1cb54e6d596
Task-number: QTBUG-50993
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
|
|
|
| |
This way the tests are run at least on other platforms.
Task-number: QTBUG-52003
Change-Id: Ibb5809aa56dc998d67e464d8d76cb51954d1581e
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
|
| |
Change-Id: Ie8fb9fcf415670102d9364f85120bc315a8a067e
Task-number: QTBUG-51991
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
|
|
|
| |
Except the .qdocconf all .qdoc files are renamed to use "qtquickcontrols2"
instead of "qtlabscontrols".
Change-Id: I317a4e81ea4e78b63a0d4d849d7352f496824cb3
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
|
| |
Change-Id: I917f7e83219788fc63389773eb07ee39757bed7f
Task-number: QTBUG-51003
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
|
|
|
| |
This way the tests are run at least on other platforms.
Change-Id: Ibceb60e8069e74a93ee2e5de5c24711e01a91cba
Task-number: QTBUG-52003
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: Ib209b03133309069d7bef5df77acf7b50e0e9698
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|