| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
Change-Id: I0e34c99564f30aef9ab17a8faa4ead6fa3829f5f
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: Id2a412175f9907651d8e4e0fdacb624ac2444552
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
|
|
| |
Command line argument has more priority than environment variable.
Change-Id: Id76f703d1d4395b6bae1a2e6be162a9250fb8dfa
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: I0e42b339ddfff81ad9029cfbff14e21aee5178ff
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
|
|
| |
Also moved to QtLabsControls lib.
Change-Id: I8ed1256da2b9aa63db4ca3b51a0ace3ba730e542
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: I72c535c2be99d345e1474a70e5c639f3b5a68e10
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: I1e663bb7be2be8b3d4edf0c038862cc2150aec40
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
|
| |
Task-number: QTBUG-48052
Change-Id: I0d6d27cc352d999d8071b979349f2364f0edf74d
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This concerns TextField and TextArea.
It is an almost universal UX pattern on touch platforms where
the user long presses to pop the context menu up. In many
cases the context menu is used for copy and cut operations,
which means that poping it up should keep the selection.
The implementation works by not forwarding the initial mouse
press event to the parent class until we're sure it's not going
to be a long press. If the long press timer is cancelled for any
reason, we will then send the delayed mouse press event to the
parent class followed by whichever event triggered the cancellation.
Auto-tests refactored and updated.
Change-Id: If3aa8075f07a80929f4bd723895d9599bf8d169e
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
|
|
| |
error: no member named 'qmlGlobal' in 'QQmlV4Function'
Change-Id: I45610c13e634b341fe5a77a37a05633f5f211f0c
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Controls 2.0 could be built with QT_NO_ACCESSIBILITY defined.
Added a few helper functions for accessible in QQuickControl.
Don't set text as Accessible.name for TextArea and TextField.
Change-Id: I40383bbcec2f8c742f709bdec0209623f80da449
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
|
|
| |
In 0addfd5d, we missed QQuickLabel.
Change-Id: Icc352f8db04b2b981d386513454650e376f0a955
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
|
|
| |
Fix complilation with -no-pch option.
Change-Id: I169c39cf51cb6d3776636f043553ac3bf17a068d
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Exclusive checkables typically share the same parent item. For example,
a row or column positioner or layout. This change makes it convenient
to handle such cases so that one can add the whole list of children to
an exclusive group, without the need of creating any attached objects.
Column {
id: column
ExclusiveGroup {
id: eg
checkables: column.children
}
Switch { id: s1; text: qsTr("First") }
Switch { id: s2; text: qsTr("Second") }
Switch { id: s3; text: qsTr("Third") }
}
Last but not least, this allows breaking the C++ dependency between
QQuickTabBar and QQuickExclusiveGroup.
Change-Id: Ic75065b87ef8fa532f77118d740f04484994bbf0
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>
|
|
|
|
|
|
|
| |
Makes possible to bind contentChildren to ExclusiveGroup::checkables.
Change-Id: Idf9afabb93f78b012d2ca5c77fe79f34bf76e584
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
|
|
|
| |
This piece of code was promoted from QQuickTabBar to QQuickContainer
at some point -> "bar" looks confusing.
Change-Id: I8e1c1c2233bf34ed3cfacbc539aeb98c2a945012
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
As illustrated by QTBUG-48072, setting Window.minimumWidth and
Window.minimumHeight automatically may cause very unpleasant
surprises.
Qt Quick Controls 2.x gives the user direct access to the header
and footer items, so they can easily calculate the desired minimum,
default and maximum sizes for the window.
Change-Id: I974566ee81af63a3e9cfd0fa1c1fa36e3989548a
Task-number: QTBUG-48072
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
|
|
|
|
| |
When the font of a QQuickControl subclass is set, it will
propagate it to all children that are also derived from
QQuickControl, as well as TextField and TextArea.
Change-Id: I7c851f84b89609094d9a81d239ade0f0ac212985
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
|
|
|
| |
Do not use fun abbreviations such as look'n'feel, but make it proper
boring English.
Change-Id: I6369058a455c04e0fc13b5bfff18f4e45b940c20
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
QTBUG-47317 revealed that dynamically created items remained visible
after popping, so they were not only kept visible but also weren't
properly destroyed. The visibility issue had to be fixed so that
"indestructible" (not owned by StackView) were hid.
This change tackles the destruction part, and marks pop-exit items
for removal so they get destroyed when transitions are finished.
Now that the transitionable items are actually destroyed, a new
problem was releaved. We must not delete transitionable items until
both enter & exit transitions have been finished. If we did that,
the finished() callback would not get called for the pop-exit
transition and tst_StackView::test_transitions() would fail (yay).
Change-Id: Ie2eedf99d0366820260776591ad1f8b5b68e2ec3
Task-number: QTBUG-47317
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
|
|
|
| |
This can start off as just a table, but could be extended to its own
doc page with snippets for each control type.
Change-Id: I32ed00ebf7634c09f3c513c357b0ff6c6341c7ed
Reviewed-by: Topi Reiniƶ <topi.reinio@digia.com>
|
|
|
|
|
|
|
|
|
| |
This will be seen immediately by users when they come to see what the controls
are all about. It's good to be transparent about why the controls exist
and why/when you'd want to use one module over the other.
Change-Id: If5e891583d28bfb3b8f1ffd6d6e10846fb6f16a7
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
|
|
|
|
|
| |
Only items that were created from pushed components were initialized.
This change fixes item initialization for StackView::initialItem and
pushed items.
Change-Id: I6fe1afa233e63320180dfe8eac3874fed69cbb3b
Task-number: QTBUG-47318
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Passing null view bounds for the transitionable exit item helps to kick
off the transition as appropriate. Otherwise the view transition item
determines in QQuickItemViewTransitionableItem::prepareTransition()
that no transition is necessary.
Change-Id: Icb664725c4393ef3bb894b71a5912652f82c9da0
Task-number: QTBUG-47949
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is a partial revert of 6ee9612. The idea was to keep items visible
until both transitions had finished.
StackView {
pushExit: null
pushEnter: Transition { ... }
}
When both transitions had finished, all stack elements (except the
current one) were hid. The problem was that in pop & replace operations
the exiting item was no longer part of the stack (because it had been
already popped out) and therefore was never hid.
This change restores the original (intended) behavior that a null
transition would equal to an immediate operation. This keeps the code
simpler, and makes the behavior consistent in a sense that all items
are hidden as soon the respective transition finishes. PauseAnimation
can be used to wait if desired.
Change-Id: Ia9e78506754bdc18949676f061dbfff28a7128b7
Task-number: QTBUG-47317
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
|
|
| |
Reused content from Qt Quick Controls1 StackView.
Change-Id: I0d21610ebec0b107a269f5acb9bde98c307f0acb
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
|
|
|
|
|
|
| |
The overview page doesn't seem necessary; it's one more click that can be
avoided by presenting the information that it contains on the index page.
I didn't categorise the QML types as was done for Qt Quick Controls,
because we don't have enough types to fill most of those categories.
Change-Id: I8456fe219eb69983229712b0d9f5eef1f3a83ada
Reviewed-by: Topi Reiniƶ <topi.reinio@digia.com>
|
|
|
|
|
|
|
|
| |
error: too many arguments to function call, expected 2, have 3
d->initializeObjectWithInitialProperties(*qmlGlobal.valueRef(), ipv, item);
Change-Id: Ic8dd42102a80856f72d7ec5eba08dd8b5e82cf71
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: Ia3bb2b8a4bcbe98f6ceabeb4f57f254cd625bb37
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
|
|
| |
Also adds the manual test that allows the GIF to be regenerated.
Change-Id: I90ddb770281a53d3ef342d7c6080664b74fe3b25
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
|
|
| |
Added a short description with a snippet
Change-Id: I861647610e13a9e2209eb4449a20ace0373d3208
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: I546b8ef2343ba189b67c53036ee59c2547a93615
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
|
|
|
| |
We factorize the feature code identical to TextField's
into a helper class.
Change-Id: I4496f2d192a023f6a6c03ed81d81bca4c08a59d0
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
|
|
|
|
| |
This is following the advice in the mailing list:
http://lists.qt-project.org/pipermail/development/2015-July/022283.html
Change-Id: I900f68c0cc6979f413016bb177446a1e93b01bc5
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
|
|
|
|
|
|
|
|
|
|
| |
- Use outputsuffixes variable to generate html filenames
that do not clash with Qt Quick Controls/Extras 1.x
- Fix 'examplesinstallpath' for Qt Quick Extras
- Clean up and remove unneeded comments
Change-Id: Ie2dae3af1181f9528630d78aaac8df693262afdf
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: I634da6568a456a5f21e30e6295d139a4e1a89e75
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: If7378556edd3a024bf3973ae0f119007d232b5b3
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: I0c9626d091534a178a5e736c5977f1885faeccf2
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: I66b4416979162122df822b6151f2e467cb8ab76f
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: I2c17e7b218706c1288b8d0a8483e157da4c5f5f3
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
|
|
|
|
|
| |
Don't inherit QQuickButton directly for the checkables, so that we can
add checkable, iconSource, icon (delegate item) etc. properties to
Button if desired. Such properties wouldn't make sense for CheckBox,
RadioButton, and Switch.
Change-Id: Ic1a8d4b3ddeda67a2d49d8c87e0fe7c7d01d36f0
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: Iae5ed3198aeefcaeda237dfcc62751e5b7836c68
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: Ib319755e80197e48ff558abef152554323cb4a78
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: I6d9ba297629934c1f496581b99a8a3b98f9a9dad
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: Ifc6b98681f7d45aec89640dfe72eb7b72ec0f6b5
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In the following snippet:
ApplicationWindow {
header: TextField { }
}
TextField should stay at the width of AppWindow. It should obviously
not start following its implicit width changes whilst typing...
Change-Id: I2a2a2a2862e27acb2d676ac482123312a1d390c1
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add support for toggled() and toggled(bool) signals to bring
ExclusiveGroup 2.0 on par with ExclusiveGroup 1.0. Furthermore,
the attached property is now "ExclusiveGroup.group" to be consistent
with all other attached properties like StackView.view, TabView.view,
and others. It looks clumsy to repeat, but it's better to keep the
type names to the minimum, and the documentation also stays in one
place.
Change-Id: Ic46f8d2ec4b58c5056e8b2bbca5c9f88968bfb80
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: Ie2e5e09e906b2886525a986bccbd1b2722a0a795
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|