Age | Commit message (Collapse) | Author | Files | Lines |
|
Tizen-Bug: TIVI-2416
Change-Id: Ifae6f14d683064eca4c2dba27f670b3683ca1a29
Signed-off-by: Tomasz Olszak <olszak.tomasz@gmail.com>
|
|
Change-Id: I560e18f54e76c736884f8d5dc7bf3447076fb26f
|
|
|
|
Change-Id: I2045c02380fb0279a1a90a558dc55d10be6296ac
|
|
Change-Id: Iad011baa39f955681613656028c6ccf852a8f869
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
|
|
Change-Id: Ibf4431b20b61c5e16c6936775647ba3eb0049abe
Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
|
|
At the moment mouse selection on android can make text input
unusable when certain virtual keyboard features are enabled.
This patch will temprorarily disable this feature on
TextField and TextArea until we have a workable solution for
these cases.
Change-Id: Ia04db31d1e83ddfc47bec7519e5a78746e6626a9
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
|
|
The Key event needs to be in a item that has focus.
Change-Id: I6f7293ac74b477e37c200dbb7ee8629d4f769d05
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
|
|
Change-Id: I6a4b4e546a726b2719f607da7219f1f40cba1167
|
|
Previously, we marked the layout as not dirty straight after a
rearrange was done. However, in the case of when a size hint changed
during a rearrange that would block the pending rearrange (since it
only perform the actual rearrange if its dirty).
Instead, mark the layout as not dirty *before* the rearrange.
This will allow bindings such as
implicitWidth: height
to execute the pending rearrange.
(Although such bindings are not encouraged)
Task-number: QTBUG-36169
Change-Id: I75bd821a0ca4302026bd5dac01287ca3359d471b
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
|
|
input
By forwarding key events from the internal control.
It includes TextField, TextArea, ComboBox, SpinBox. The key events from
internal are Keys.forwardTo controls, then user could customize their
own behavior for those controls.
Autotest are included.
[ChangeLog][QtQuickControls] Fixed support for Keys attached property on
controls allowing text input, by forwarding key events from the internal
control.
Task-number: QTBUG-33493
Task-number: QTBUG-34101
Task-number: QTBUG-35763
Change-Id: I00ea131160e55048b34fe0713e1ee02ff9472f05
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
|
|
The extra "property Component" breaks the examples.
Task-number: QTBUG-35864
Change-Id: I1317f9a2ce42f4d9e4a03ecc3b85286b1eb3e855
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
|
|
This patch ensures that we take the minimum width of the SpinBox
into account when getting the size from the style item.
The patch still relies on the height of the TextField since we
want to ensure that they keep similar height and the existing
spinbox code behaves somewhat erratic.
Task-number: QTBUG-36283
Change-Id: I50d14e5afb2576548c381e7f70063dfcb727e7d6
[ChangeLog][QtQuickControls]Fixed implicit width for SpinBox
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
|
|
The spinbox has a white rectangle which overlaps the frames with some
styles (eg. oxygen). However the Rectangle itself serves no real purpose
and so it's removed.
Change-Id: I37a6862dfd8ac21fb24b54261fa7d7ab54aa23c7
Reviewed-by: David Edmundson <davidedmundson@kde.org>
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
|
|
For usability reasons the placeholder text is kept always visible when
the control is empty, even when focused.
Task-number: QTBUG-36303
Change-Id: I79733b0cf2a48807fb45d5697399f183c2b97f94
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
|
|
drowDownButtonWidth seems to be a typo in an exposed property name.
In order to keep compatibility an (undocumented) alias is added.
Change-Id: I2ab04b3518325e339c31cf6f403c488256a4aabe
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
|
|
This tests
* default spacing
* explicit positive spacing
* negative spacings
Negative spacings that causes the layout to shrink down to 0 or
a negative spacing are not supported.
(But make sure they don't crash the whole engine)
Task-number: QTBUG-35741
Change-Id: I69521dffb03c35a63db37ab51a2e99152d88272b
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
|
|
It seems we forgot to update the documentation when the default spacing
got changed to 5.
Change-Id: Id76ebd3d75ec5c0d5806aab65723d046c0f49864
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
|
|
Change-Id: I148e6396627239765059467605eda5a29761942e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
|
|
Change-Id: I90bf97432063e37beb637c38e35529e81633311e
|
|
ComboBox was editable since 4c184095d378622fb0c3bb1692b331b3cc04e010. It
should get focus when editable is true in tab focus chain. The behavior
was fixed in qtdeclarative side.
Change-Id: I85f26e99e00f970b8603d8ca23b1e55daa52159b
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
|
|
Change-Id: Ib1bf616d13701f64cbfc268dd6cfaa8c17af8fcd
|
|
Task-number: QTBUG-35794
[ChangeLog][QtQuickControls]ComboBox: Allow setting currentIndex to -1 to clear selection
Change-Id: I034b061484ab095a9ec049fb3b35614b98bfb956
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
|
|
... for editable ComboBoxes, that is.
Change-Id: Ieda089f715e8252ae47bbbff647982f96ec5f797
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
|
|
Task-number: QTBUG-35674
Change-Id: If0b995fc8a28adf949189138106a2a1e7bd16147
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
|
|
There is no point in searching through all cells to see if an item of
columnSpan 3 fits into a layout with 2 columns, since it won't ever
fit.
So instead we detect this case early and ignore the item for
inclusion.
Task-number: QTBUG-35778
Change-Id: I3f7963df17b05b3eb14ba0bae49e5a885d15b33b
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
|
|
Change-Id: If364332017669732fa429efe90c26000b01b0580
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
|
|
It turns out the currentIndex/CurrentRow was updated but the selection,
was ignored for the last row in a TableView.
[ChangeLog][Qt Quick Controls][Fixed: TableView regression where
the last row in a TableView could not be selected by keyboard.]
Task-number: QTBUG-35572
Change-Id: Ifdf11f665733dd63ba56e12fe0dabdd7932a4ab9
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
|
|
Change-Id: I145b6f66c08da6188d50104d0b107902f94e6a9b
|
|
They don't have any QPA counterpart as they're just plain containers.
This also removes that "Menu does not contain the item to be removed"
warning on Mac.
Task-Number: QTBUG-32197
Change-Id: I06e08817194c2e3ad3efd7ded193bfac9d3a1948
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
|
|
For some controls an explicit QStyleOptionFrame is created. By setting
the styleObject the QStyle can recognize that it's a QQuickItem and
adjust the rendering. This is for example needed in the oxygen style to
get the frame around a menu.
Change-Id: I52d2a8b259477b2ff668827334d5073c6934f23c
Reviewed-by: Martin Klapetek <mklapetek@kde.org>
Reviewed-by: David Edmundson <davidedmundson@kde.org>
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
|
|
This fixes the issue that onAccepted would not update the currentText or
current index if the string was a substring/partial match.
Note that the new internal MatchFixedString case matches the complete
string in a case insensitive way.
[ChangeLog][Qt Quick Controls][Editable Combobox would not update
currentText when accepting a substring of an existing value.]
Task-number: QTBUG-35521
Change-Id: Ied850208425ae71b2414f1abf9389e9a8ed50cfb
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
|
|
Automatic value selection and focus must go hand in hand. A selection
without focus is pointless, because one can't then type or even copy
the value.
This patch ensures that the automatic selection is only done when the
control has active focus. Furthermore, manual selection is only enabled
when either activeFocusOnPress is true or when the control has gained
active focus by other means (activeFocusOnTab or programmatically).
Change-Id: Id0c6a55a6f4a55eb419d06d5dcb3f25a36fe2ec5
Reviewed-by: Martin Klapetek <mklapetek@kde.org>
Reviewed-by: Liang Qi <liang.qi@digia.com>
|
|
This introduces text eliding in Base style tabs when there is not
enough space to draw the entire text label. In addition it removes the
need for clipping completely.
Change-Id: I58be7c88bff275984b97b04c1bd1a942e9d256e0
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
|
|
Change-Id: Ia53d8d46e0397ab94048c85245997be63960dc67
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
|
|
Change-Id: I7c0f5565161719905e973d3fd1a75b3c9d8a4007
Reviewed-by: David Edmundson <davidedmundson@kde.org>
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
|
|
The problem is that the content item of both these controls have
the focus property set to true. This property will then affect the
implicit focus logic and should be protected by a focusscope.
Currently adding a ToolBar or StatusBar to an application could
result in this content item grabbing focus implicitly even if the
application only sets focus: true on a single item.
Task-number: QTBUG-34713
Change-Id: I94cb79d25e4cfd727915f5b5ab612ad5c0132db7
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
|
|
Change-Id: Ib886a4bc9254d8e9c91ae52e927e651200b455a4
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
|
|
Paints the hover highlight around the slider handle when mouse hovers
it.
Change-Id: I883d5c5b97b0542a36e796ce6a07398ab67e94bd
Reviewed-by: David Edmundson <davidedmundson@kde.org>
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
|
|
Change-Id: Ie78468f6e001e67467175cd39bd4db1bd6b2dbbf
Reviewed-by: Martin Klapetek <mklapetek@kde.org>
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
|
|
Change-Id: I5d09aa0da0675bce961f6445982cae16b894dbf1
Reviewed-by: David Edmundson <davidedmundson@kde.org>
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
|
|
Handles mouse scrolling event over combobox - scrolling up does the same
as pressing up arrow and scrolling down equals pressing down arrow.
Change-Id: I67adef46f201c0d4c88dabd5a717effc8f1e909d
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Reviewed-by: David Edmundson <davidedmundson@kde.org>
|
|
So for example "-0", which is a valid intermediate value, becomes
"0" when the spinbox is accepted (enter) or it loses focus.
Task-number: QTBUG-34774
Change-Id: Ie153294755aae2bf94ba1cb53c40a8fc5f1f5862
Reviewed-by: Liang Qi <liang.qi@digia.com>
|
|
Change-Id: I1b4f7508ead5631abb70b4cdf29d6efa05f33b5b
|
|
QStyleAnimation automatically stopped for hidden QWidgets, but didn't
know anything about QQuickItems and kept animating regardless of their
visibility. QStyleAnimation was changed so that it will keep animating
only as long as the animation target accepts animation updates. This
change ensures that the style animation updates are accepted only when
the control is visible.
Note: In order to restart such style animations, QQuickStyleItem needs
to be manually updated when it becomes visible.
Task-number: QTBUG-35319
Change-Id: Ia053912883b9babb184a5467adfc90dd619b3dc5
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
|
|
Change-Id: I818bff2fcc416215c07b65e6714fcc995e9d3409
Reviewed-by: Jarosław Staniek <staniek@kde.org>
|
|
Sortindicator => Sort indicator
Change-Id: Id9897268bb21e9ba0dc14de2c4cc9e7f9f9a66d4
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
|
|
This fixes the binding loop warning that is printed in any application
that makes use of TabView. It was casued by a QTBUG-35038 and a
proper fix for that will be posted to the stable branch.
Task-number: QTBUG-35134
Change-Id: Ia60c789d9fb8ee662215628fa9733b17cf9be90c
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
|
|
Replace the inconvenient QT_QUICK_CONTROLS_EXAMPLE_MAIN macro with a
simpler macro that merely defines the actual application type. This way
it's easier to do tweaks to main() when for example testing a different
application font size. Moreover, browsing the example code becomes more
convenient (especially online).
Task-number: QTBUG-35083
Change-Id: I8203816a9112bf29b4661baa86bf4a196554db05
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
|
|
Change-Id: I752595495a3cb1347eb5f43dcf8ff36044a02e02
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
|