Commit Graph

30584 Commits

Author SHA1 Message Date
Amir Masoud Abdol c41f1c3228 Exclude `qmldomlib` from Unity Build
Pick-to: 6.5
Task-number: QTBUG-109394
Change-Id: Ic6e8ff63120a207cc2b40fc55f15753e378f466f
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2023-04-17 18:09:30 +02:00
Mitch Curtis 52459925e9 ScrollView: replace "content" bool with enum
This makes the code clearer than just passing true or false everywhere.

Change-Id: I975c69080681db4ee7e9cc3b8a5509ef118348cd
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
2023-04-17 11:43:06 +08:00
Mitch Curtis db8f3607e0 Fix visibility of scroll bars in ScrollView
When imperatively assigning a contentItem, we need to make sure that
we respect the policy of the scroll bars, otherwise they could end up
visible when they shouldn't be, and vice versa.

This patch also sets the ScrollView as the parent item of the
contentItem, as a ListView assigned imperatively may already have a
parent item, and so setContentItem_helper will not set one.
When setting the parent item, we also need to ensure that the
stacking order is correct, otherwise the scroll bars will be
behind the contentItem and can't be interacted with.

Task-number: QTBUG-106118
Pick-to: 6.2 6.5
Change-Id: I88d342282ea6d202cbe0f776a6bf4fb1f9cadc48
Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
2023-04-17 11:42:57 +08:00
Ulf Hermann f27cb5e3c1 QmlCompiler: Merge bool and any pointer type into the pointer type
A pointer type can hold bool as either nullptr or some value. We don't
need to produce a QVariant for that.

Change-Id: I368c3fa703d08ff396a5b4702ba7d1f2614b1467
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-04-15 20:14:42 +02:00
Tasuku Suzuki efc037191a XHR: Add responseURL
https://xhr.spec.whatwg.org/#the-responseurl-attribute
the attribute was introduced around 2014.

[ChangeLog][Qml][XMLHttpRequest] Added missing responseURL property. This returns the url that was used to retrieve the response data, after any redirects have occurred.

Change-Id: Ice70520913bb306885a10dfd7a3a89da31bcfdeb
Task-number: QTBUG-111217
Reviewed-by: Lars Knoll <lars@knoll.priv.no>
2023-04-15 16:11:19 +00:00
Volker Hilsheimer 3991a2e8ca MultiTouchArea: only subscribe to hover events when enabled
On macOS we always subscribe to hover events in the constructor so
that we can enable touch event handling when the mouse enters the
area. However, a disabled item should not accept hover events, so
we also need to override itemChange so that hover-acceptance is
flipped based on the enabled state.

Items should also never accept hover events, they should always
propagate. As the events are accepted by default and ignored in the
default event handler implementation in QQuickItem, we need to
ignore explicitly when we override. Do that by calling the parent
class implementation explicitly.

A disabled MultiPointTouchArea should also not subscribe to touch
events, even when the mouse enters.

Fixes: QTBUG-107037
Pick-to: 6.5
Change-Id: Ifa57cb2af4fbf11a0c8eacde87d80e60afa3f895
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
2023-04-15 05:51:38 +02:00
Fabian Kosmale f7648db03f QQmlSA: Remove dead code
Change-Id: Iec9f607ead6ee32cc9bb1d40c5cd9967e86c7772
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
2023-04-14 16:57:38 +02:00
Santhosh Kumar e397e5b43c Fix stack layout index when loaded asynchronously
Lazy loading of stack layout causes incorrect index value in the
attached property for the child items. This is because,
attachedProperties are created and updated for the child object, after
being added to the stack layout.

This patchset triggers childItemsChanged() to reset child objects of
stack layout with right index value.

Fixes: QTBUG-111902
Pick-to: 6.4 6.5
Change-Id: Iad06d028d0f977189b5da1122904dc754060a609
Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
2023-04-14 13:20:42 +02:00
Tim Blechmann 8fc8a2df6e quicktemplates: include missing headers
compile fix with clang++/libstdc++: unique_ptr requires <memory>

Pick-to: 6.5
Change-Id: Ib01f660b6b43ee1eb5d729fbbd7b064cdfd22e9b
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
2023-04-14 19:20:42 +08:00
Shawn Rutledge c9e8ad0320 Use correct names for QEventPoint::State, PointerDevice::GrabTransition
Qt::TouchPointState is not the actual type here, and we should not
encourage e.g. making a comparison between eventPoint.state and
Qt.TouchPointMoved in an onGrabChanged handler. The equivalence is
an internal detail; and eventPoint can come from any pointing device,
not only from a touchscreen.

QEventPoint is a Q_GADGET; we keep the registration to expose it as a
value type (eventPoint). But such types cannot be created in QML, and we
also need to give it an uppercase name to scope the enum values that it
declares: that's a new foreign namespace called EventPoint. So it's
possible to compare an eventPoint instance's state property against
EventPoint.Pressed, and so on.

Also show complete QML syntax in the \value tables where
PointerDevice::GrabTransition is emitted to QML, namely
PointerDevice::grabChanged and PointerHandler::grabChanged.

Amends b43a873264

Task-number: QTBUG-102160
Change-Id: If1a97f21d8e005e3692298b8512f7f8b56a92c97
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2023-04-14 07:32:30 +02:00
Amir Masoud Abdol 430d62c28a Place the QT_END_NAMESPACE in the right place
Moving the QT_END_NAMESPACE before the #endif of the include guard.

Pick-to: 6.5
Task-number: QTBUG-109394
Change-Id: Ia6b17c8c5b54840b84629b58e35f530dd09433d4
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
2023-04-13 21:06:35 +02:00
Qt Submodule Update Bot b9bdffd169 Update dependencies on 'dev' in qt/qtdeclarative
Change-Id: Ia8eb0e23a7e5ab3583fad7aefe8a6876aac62210
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2023-04-13 15:34:24 +00:00
Fabian Kosmale 015a1ed8e0 QQmlScriptString: Avoid allocation in default constructed state
Classes like QQuickAnchorSetPrivate have multiple script string
properties, most of them being unused. Avoid allocating memory
in that case by simply letting the d pointer be null, and
adding null-checks in the various accessor methods.

Change-Id: I4b7a1298c4a5892028174b82c3a92ccd93bdf65e
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
2023-04-13 14:01:56 +02:00
Tasuku Suzuki 922c89cf95 Fix build with -no-feature-listview and itemviews
tested with each/all of below
-no-feature-gridview
-no-feature-listview
-no-feature-pathview
-no-feature-tableview
-no-feature-treeview

Pick-to: 6.5
Change-Id: I90cc7bc45bb9065000bc0fc7eeb8e80f02acb0d0
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2023-04-13 12:07:51 +09:00
Fabio Falsini e774a88e51 Material: add support for elevation to Page
Since Page control is supposed to be a derivate of Pane it should
support Material.elevation too

Change-Id: I05ad88d1fa9756456ac1672e40551200622bf120
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
2023-04-12 21:00:25 +02:00
Sami Shalayel fba9a80d47 QQmlDomAstCreator: split into header and implementation and rename
Split QmlDomAstCreator into an implementation and a header and rename it
to QQmlDomAstCreator.

Task-number: QTBUG-92876
Change-Id: I52a082d44f37e4fb111a5ca3e60704a02814d0d9
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-04-12 18:29:36 +02:00
Qt Submodule Update Bot 4f53307daf Update dependencies on 'dev' in qt/qtdeclarative
Change-Id: I6ed5c876cef2a777eb798a4c696109175d90267d
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2023-04-12 13:56:01 +00:00
Semih Yavuz b5274d073b qmlformat: change comment handling behavior
Cumulative commit for adding zero-length comments in qmljsengine and
also handling of empty lines after comments.

qmljsengine only adds comments if the relavant comment length is larger
than 0. Allow adding zero length comments since empty comments might be
useful and required in some situations.

Unlike the  other formatting tools (clang-format, rustfmt) qmlformat
didnt respect the emptylines after comments and stick the comments to
the associated element. Change this behavior such that a newline/
blankline is added(but no more than one).

A few tests in qmldom/reformatter needed to be edited due to this new
behavior.

Pick-to: 6.5
Fixes: QTBUG-111231
Change-Id: I2fcdda0bfe569b7a1d19c4058e1604cb0d73291d
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
2023-04-12 15:56:01 +02:00
Andreas Eliasson 9e83e0caff Doc: Fix Material.containerStyle constant descriptions
The current header and descriptions seem to have been copied from the
above Material.roundedScale section, but they don't make sense for the
Material.containerStyle section.

Fixes: QTBUG-112672
Pick-to: 6.5
Change-Id: I6ffb9d30cf4ff7a1d0a72888f804d1d92da1ecb2
Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
2023-04-12 15:56:01 +02:00
Axel Spoerl c6fdaa5ab0 tst_QQuickTextInput: Stabilize clipboard related functions on XCB
Even if compiled with QT_CONFIG(clipboard), a functional clipboard
might not be available on XCB (e.g. due to restrictions on CI VMs).

This patch adds an explicit test for XCB to platformquirks_p.h.
It skips the test functions canPaste() and canPasteEmpty().
As a drive-by it constifies local variables in canPaste() and
middleClickPaste() and unifies the skip message.

It also removes the BLACKLIST entries for clipboard-related tests on
opensuse.

Fixes: QTBUG-95940
Pick-to: 6.5
Change-Id: If6da9b589e98c1f63435f3d444567ce310ddee8a
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2023-04-12 11:07:07 +00:00
Sami Shalayel f53edf6dc9 Dom: add static_assert for ElementT
Add a static_assert that prints a more understandable error
message when invalid types are added to the ElementT-variant.
Without this assert, compilation fails in mostly unrelated
std::visit()-calls.

Change-Id: Idef6b471c6d2d26d91b71350bb4577d012a40860
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-04-12 13:07:07 +02:00
Sami Shalayel ca1c8269b2 Dom: cosmetic fixes
Rewrite a comment such that it is readable again (I think it got messed
around by clang-format), add a using declaration for filter-function in
DomItem and some white space changes by clang-format.

Change-Id: I8964b4e2b08ee4fb972bc4eac572ba6c7050dcc5
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-04-12 13:07:07 +02:00
Sami Shalayel 89b0960418 Dom: add QQmlJSScope to QmlObject
Add a flag that allows to construct the Dom with the QQmlJSScopes
obtained by semantic analysis.

Added a new AST visitor called QQmlDomAstCreatorWithQQmlJSScope.
This visitor synchronizes the qqmldomastcreator and the qqmljsimportvisitor
to construct the Dom and the QQmlJSScope from the AST at the same time.
It mainly does keeping track which subvisitor (dom creator or scope creator)
is active, as one subvisitor may visit AST nodes that the other does not.
Using both visitors at the same time allows to insert the newly-generated
QQmlJSScope::Ptr directly into the correct Dom structure.

The actual implementation of QQmlDomAstCreatorWithQQmlJSScope is in its
visitT and endVisitT methods. Both are called in the AST-visitor-overloads.

Added a benchmark on two big generated qml files to see how fast/slow
does the qqmljsccope semantic analysis runs, compared to the QmlDom
creation runtime.

Task-number: QTBUG-92876
Change-Id: Ia05b6fdd59a637fef9c14b6ab284f4550414f908
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-04-12 13:07:06 +02:00
Sami Shalayel be92908acf Use X-Macro for AST-visitor declaration
Use the X-Macro to simplify the AST-Visitor and BaseVisitor definitions.

Task-number: QTBUG-92876
Change-Id: I8f20490ae551a27a50cd037eb705baac3673eba5
Reviewed-by: Semih Yavuz <semih.yavuz@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-04-12 13:07:06 +02:00
Sami Shalayel 309545b6de Kill TypeArgument(List)
Remove the forward declarations of TypeArgument(List) and its uses.
This amends e89a06753c  that removed
TypeArgument(List)'s definition while leaving its forward declarations
and uses around.

Change-Id: I1a3e27ce18611beaf84b7c59e01a622f9e7f2477
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-04-12 13:07:06 +02:00
Sami Shalayel 1c566c5124 Dom: add overload helper to create visitors
Add a struct that helps overloading multiple lambdas to help write
short visitors.
Put it in a new private header qqmldom_utils_p.h.

Task-number: QTBUG-92876
Change-Id: I6b830c4760550f9d4392edd8f3b156d9c8a2a686
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-04-12 13:07:06 +02:00
Alexandru Croitor dec9919cb2 CMake: Mark dependency between QmlMeta and qmlplugin in a static build
Just like we do for workerscript plugin, in a project that uses a
static Qt without using qmlimportscanner, linking to the qmlplugin
automatically initialize the QmlMeta plugin as well.

Otherwise the application errors out with:
 module "QtQuick" version 6.6 cannot be imported because:
 module "QtQml" plugin "qmlmetaplugin" not found
     import QtQuick

Pick-to: 6.5
Fixes: QTBUG-112712
Change-Id: I566eaf94e2a13a8d8bb7b5509af1594c6c3206e9
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Reviewed-by: Amir Masoud Abdol <amir.abdol@qt.io>
2023-04-12 09:37:03 +02:00
Alexandru Croitor 32f6cbe9f0 Fix filesystemexplorer example to work in macOS bundles
The FileSystemModule qmldir was explicitly put into the "/" resource
prefix, but that prefix is not a default qml import path. That caused
the qml module not to be found when building on macOS as an app
bundle, which relies only on resources and not the file system to find
the module.

To ensure the module qmldir is found in the resources, we want it to
be placed in the default qml import path ':/qt/qml'. To do that,
remove the previously specified RESOURCE_PREFIX option and enable
the QTP0001 policy by requiring Qt 6.5+, which will put the module
qmldir into :/qt/qml/FileSystemModule/qmldir.

Because the policy also changes the resource prefix for other
resources (images), adjust all Image source urls to be relative paths
(relative to the component), instead of absolute paths.

Also adjust the qmake generated qrc file to place the files into the
new resource prefix.

Amends 213e932e13

Fixes: QTBUG-112683
Change-Id: I5205cf6d399a6faaf7cce68d55c71dade37479a7
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Reviewed-by: Dennis Oberst <dennis.oberst@qt.io>
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Reviewed-by: Amir Masoud Abdol <amir.abdol@qt.io>
2023-04-12 09:36:57 +02:00
Volker Hilsheimer 0230ceaec8 Enable tst_QQuickCanvasItem on Android
The test mostly passes in the emulator and has generally no reason to
fail in CI. Test functions that should be blacklisted can be added to
BLACKLIST file, or QSKIP'ed if they crash, which none of them do.

Blacklist the test_save function, which fails on Android as we don't
have permission to write to the file system.

Fixes: QTBUG-103257
Task-number: QTBUG-41043
Pick-to: 6.5
Change-Id: I5ef99a01dc26d9290be91675a5ff15e4de59e812
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2023-04-12 03:36:21 +02:00
Fabian Kosmale 69db2dbc4a QML: Allow some more backing types for enums
Task-number: QTBUG-112180
Done-with: Fabian Kosmale <fabian.kosmale@qt.io>
Change-Id: I48a2a696d3424ab1d8b9e693a92361a978ad70e9
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
2023-04-12 03:36:21 +02:00
Shawn Rutledge 951ab9f3c0 Fix TapHandler signals in combination with exclusiveSignals
TapHandler does not emit any singleTapped or doubleTapped signals after
emitting it once, if exclusiveSignals is set to `SingleTap | DoubleTap`.

This change corrects the behavior by resetting m_tapCount properly.

Fixes: QTBUG-111800
Pick-to: 6.5
Change-Id: Ice7af2f41c2f30448004033d8330e733abe44110
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
2023-04-11 15:27:42 +00:00
Shawn Rutledge 07aaa7c1b6 Fix PinchHandler.persistentTranslation; test cumulative native gestures
Since we do not want persistentTranslation to be always the same as
target.position, clearly we cannot use xAxis/yAxis to store the initial
target position: thus the startPos() function was wrong, and is now
removed. We need to store it in a separate m_startTargetPos variable
like DragHandler does, and as PinchHandler did before
7867a683fc.

Add an internal doc comment to clarify the arguments to
QQuickItemPrivate::adjustedPosForTransform().

tst_QQuickPinchHandler::cumulativeNativeGestures() now checks the result
of adjustedPosForTransform(): how far the target item moved.

Pick-to: 6.5
Fixes: QTBUG-111220
Change-Id: I04237cb82a1abaaeab873a0d887acaf322f262ce
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
2023-04-11 17:27:42 +02:00
Santhosh Kumar 79d61b3ab7 Ignore tap events for table view when interactive is disabled
TableView uses QQuickTapHandler internally to handle tap events. This
handler accepts tap events considering pointerNavigationEnabled property
of table view. TableView accepts mouse events if either 'interactive'
or 'pointerNavigationEnabled' property is set as true, otherwise, it
has to pass mouse or touch events to the below item.

This patch introduces QQuickTableViewTapHandler inherited from
QQuickTapHandler that can explicitly check pointerNavigationEnabled
property of QQuickTableView during wantsEventPoint to either accept
or ignore tap events.

Fixes: QTBUG-108596
Pick-to: 6.4 6.5
Change-Id: I330ae319706b6dbadc3a7319f62d636708aab995
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
2023-04-11 17:27:41 +02:00
Laszlo Agocs fa3b472c13 Add missing Direct3D12 enum value to GraphicsInfo
Change-Id: I2f379ab944e46ec3d5e4631ac32eb28126034b37
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
2023-04-11 17:27:41 +02:00
Topi Reinio 820516ec76 Doc: Use the \examplecategory macro to tag examples
The '\meta category' command was used for tagging examples with a
specific category, used in Qt Creators Welcome mode.

As we want to also generate lists of examples belonging to a category
elsewhere in the documentation, replace the command with a macro that
expands to the original \meta command and also adds the example to
a group using the \ingroup command. This way, the category names can
be used as arguments to the \generatelist or \annotatedlist commands.

Pick-to: 6.5
Task-number: QTBUG-112731
Change-Id: I673207be9dd73a010069828b92146c37e45e9143
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
2023-04-11 15:27:41 +00:00
Volker Hilsheimer e62f489209 tst_qquickimage: modernize
Replace foreach with ranged-for and brace-initialize lists.

Pick-to: 6.5
Change-Id: Ieccebcf953d36ffa1dcaf0a1eebef21f2e9074a4
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2023-04-11 13:51:29 +02:00
Volker Hilsheimer c42b41cfe8 Unblacklist tst_qquickimage:mirror test
The test has no business failing on macos-12 when it passes on macos-11
and macos-13. The test does depend on screen grabbing, which might
have been temporarily resulted in flakiness due to a system dialog or
similar disturbance.

Fixes: QTBUG-98402
Pick-to: 6.5
Change-Id: I5fe548ec63e3ad6639a290cd83a96cfabdf4fb4b
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
2023-04-11 13:51:29 +02:00
Qt Submodule Update Bot ba93f001a3 Update dependencies on 'dev' in qt/qtdeclarative
Change-Id: Ie203b034109fbe61af22a6dc1174e12339156199
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2023-04-11 09:18:17 +00:00
Allan Sandfeld Jensen 30e46e37a3 Fix problem with subFocusItem on non-OpenGL QSG
The subFocusItem state was forgotten because the old parent was deleted,
before its focused child was reparented.

The test doesn't pass on Android and makes the test process exit with
error. Since it prints warnings that indicate issues further down in
the RHI stack, we'll skip it for now on that platform.

Task-number: QTBUG-112696
Pick-to: 6.5 6.2
Change-Id: Ibb32a11564ff6fbb2091c241d508f12479b234b0
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2023-04-07 22:52:30 +02:00
Fabian Kosmale e1402abff9 Fix Qt Quick Compiler docs
A subtitle is not a section

Pick-to: 6.5
Change-Id: I870df8d9a69f3a9975cc8c64c213dfaf58105523
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-04-06 15:21:55 +02:00
Mikolaj Boc 163443c6f7 Correctly discover metaType for UntypedProxyProperty
When attempting to set two behaviors on the same property, the second
behavior's target property gets intercepted by the first behavior. Then,
meta type for UntypedProxyPropertyBindable in UntypedProxyProperty's ctor
will not be discovered correctly, since UntypedProxyPropertyBindable
interface's metaType is explicitly set to nullptr. Use
QUntypedBindable::metaType instead to access MetaTypeAccessorFlag
via iface->getter.

A warning shall also be reported in case two or more interceptors are
set on the same property.

Fixes: QTBUG-98896
Change-Id: Ie38ae75235e000e25a60a1c2ccaad70a46f5018e
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-04-05 22:47:33 +02:00
Samuel Gaist 10d5066983 Improve QUICK_TEST_MAIN_WITH_SETUP snippet
The current snippet does not provide all the methods that are available
to customize the setup and teardown of the test. This patch adds the
two other methods that are called in the implementation.

Pick-to: 6.5
Change-Id: Icfd298c9b987bd2a3fc6d05e588ae0962ea8ceff
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
2023-04-05 12:47:16 +02:00
Qt Submodule Update Bot 90da1cfc1a Update dependencies on 'dev' in qt/qtdeclarative
Change-Id: I3d865e30b73345bcd0e806901c3fafcc81990629
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2023-04-05 08:02:08 +00:00
Tasuku Suzuki 3674ef3f88 tst_qqmlxmlhttprequest: remove unneeded property set in redirects
"expectedText" is not defined in the files below
- redirects.qml
- redirectError.qml
- redirectRecur.qml

Change-Id: Ib07f72fc902b90286ec709399216be7b2fce392a
Pick-to: 6.5
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-04-05 14:41:12 +09:00
Fabio Falsini 21386f4df7 Material: add support for roundedScale to Pane
Pane should support Material.roundedScale property too
to create a nice Material 3 interface in an easy way.

Task-number: QTBUG-97993
Pick-to: 6.5
Change-Id: I9f30104c7a006129b07e56427e331bca26f83e06
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
2023-04-05 03:15:39 +00:00
Sze Howe Koh a1569fa218 QQuickStackView: Fully-qualify enum type in invokable function signature
Fixes: QTBUG-112604
Pick-to: 6.5
Change-Id: I1916904fe899eb8cc167634babfb6451a0aa643f
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
2023-04-04 22:09:29 +08:00
Mitch Curtis 27adb3b91d Doc: explain how to make a menu button close its menu when clicked
Task-number: QTBUG-63614
Task-number: QTBUG-111595
Pick-to: 6.5
Change-Id: I739ffde0bf0b43e53c46d2c093d6c1f8f5182ec6
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io>
2023-04-04 19:18:00 +08:00
Amir Masoud Abdol f15c22e728 Remove the extra backslash
Pick-to: 6.5
Change-Id: Ife3ae2398fb5d2e50cd6f46b1f22d8905b042612
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-04-04 13:18:00 +02:00
Amir Masoud Abdol 4bfb341e36 Replace AUTO_RESOURCE_PREFIX with QTP0001 policy
AUTO_RESOURCE_PREFIX is deprecated, and we should start using our CMake
policies instead.

Pick-to: 6.5
Change-Id: Ic0b317929a2d9b9297d113f4382e895d63673e1d
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-04-04 13:18:00 +02:00
Mitch Curtis 35026b48a2 Doc: remove "2" from Controls doc page URLs
This was missed earlier as part of the changes that went in to 6.5.
As it affects redirects, it's important that it goes in to the next
patch release.

Task-number: QTBUG-95413
Pick-to: 6.5
Change-Id: If1da80424687bceb345ef1b19047c1acc4e1a9dc
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
2023-04-04 08:18:28 +00:00