diff options
| author | Frederic Lefebvre <frederic.lefebvre@qt.io> | 2025-10-29 14:12:39 +0100 |
|---|---|---|
| committer | Frederic Lefebvre <frederic.lefebvre@qt.io> | 2025-10-31 07:48:08 +0000 |
| commit | 65e39a210ce4dc5bd61a490cd1bc6b17cbf706c4 (patch) | |
| tree | e0314e056bde39984dcbebf415260d4b066d536e /src/quickcontrols/basic/impl/TextEditingContextMenu.qml | |
| parent | 1b0e5474c0297e8151029952c379ad94cb91dd76 (diff) | |
Change PopupType of textEditingContextMenu for Popup.Item on Wayland
Use Popup.Item popupType when test is run on Wayland.
Remove the need for a transient parent on Wayland that was
causing several tests of tst_QQuickTextField to consistently fail.
Fix the following failing tests on Ubuntu 24.04 wayland
tst_QQuickTextField::contextMenuCopy, contextMenuCut,
contextMenuDelete, contextMenuPaste, contextMenySelectAll,
releaseAfterPressAndHold, touchscreenDoesNotSelect.
Pick-to: 6.10
Change-Id: I5a411dae63ae36361ed83055a1eb4c87de17acae
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quickcontrols/basic/impl/TextEditingContextMenu.qml')
| -rw-r--r-- | src/quickcontrols/basic/impl/TextEditingContextMenu.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quickcontrols/basic/impl/TextEditingContextMenu.qml b/src/quickcontrols/basic/impl/TextEditingContextMenu.qml index ab00553ee0..3cd5027f9e 100644 --- a/src/quickcontrols/basic/impl/TextEditingContextMenu.qml +++ b/src/quickcontrols/basic/impl/TextEditingContextMenu.qml @@ -7,7 +7,7 @@ import QtQuick.Controls.impl Menu { id: menu - popupType: Popup.Window + popupType: Qt.platform.pluginName !== "wayland" ? Popup.Window : Popup.Item required property var control |
