qtdeclarative/tests
Shawn Rutledge 31ca3936d3 TextEdit and TextInput: map QContextMenuEvent to text cursor pos
...if the position is not already set. Events that come from a keyboard
menu key or shortcut often have pos() == {0, 0}, but we want the context
menu to be in the context of what the user is editing.

First though, we need QQuickDeliveryAgentPrivate::contextMenuTargets()
to search for items at the correct position. We don't override delivery
order, but activeFocusItem should be in the list that is returned.

Pick-to: 6.9 6.8
Fixes: QTBUG-136253
Change-Id: I7eea03e118a95a1a267f02bd3385cc1ae4cbb0a0
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
2025-05-02 07:27:07 +02:00
..
auto TextEdit and TextInput: map QContextMenuEvent to text cursor pos 2025-05-02 07:27:07 +02:00
baseline Support fill-opacity and stroke-opacity in VectorImage 2025-04-30 11:21:20 +02:00
benchmarks Tests: include QTest, not QtTest 2025-04-15 19:27:07 +02:00
global
libfuzzer/qml
manual Doc: Version string '6.9.0' found in 6.10.0 sources 2025-04-24 08:40:17 +03:00
system
testapplications
CMakeLists.txt
README

README

This directory contains autotests and benchmarks based on QTestlib. In order
to run the autotests reliably, you need to configure a desktop to match the
test environment that these tests are written for.

Linux X11:

   * The user must be logged in to an active desktop; you can't run the
     autotests without a valid DISPLAY that allows X11 connections.

   * The tests are run against a KDE3 or KDE4 desktop.

   * Window manager uses "click to focus", and not "focus follows mouse". Many
     tests move the mouse cursor around and expect this to not affect focus
     and activation.

   * Disable "click to activate", i.e., when a window is opened, the window
     manager should automatically activate it (give it input focus) and not
     wait for the user to click the window.