Cockatrice/cockatrice
BruebachL 0498ea8907
[Tests] Drive item views from a playback (#7819)
QtTesting's own `currentChanged` command aborts on a one-element row list, so
pqWidgetTestEventPlayer drives views itself:

- selectRow selects a row through the selection model, the whole row, without a
  mouse event
- clickRow left-clicks the centre of a cell, so the view's own handlers run
- doubleClickRow double-clicks it, for views whose double click acts

A tree addresses a row by the path of rows leading to it ("2/0" is the first
child of the third top-level row), and a click opens a collapsed path first.
Rows are model rows, so a filtered or sorted model counts the rows it shows.

Asserting what a command did needs QtTesting's check players, which the XML
source never reached: it marked every event an action, so `modelRowCount` was
rejected as unknown. An event now carries `type="check"` to be played as a
check.

Testing/item_view_test.xml drives the grouped settings navigation through
selectRow and clickRow and asserts the page stack followed.
Testing/deck_editor_double_click_test.xml proves the difference between the two
clicks: a single click on a card database row only selects it, a double click
adds the card to the deck.
2026-11-10 09:12:10 +01:00
..
resources [Card] Add Scryfall Tagger tag search and filtering (#7337) 2026-11-08 20:57:45 +01:00
sounds Add cmake format (#4618) 2022-05-08 21:22:43 +02:00
src [Tests] Drive item views from a playback (#7819) 2026-11-10 09:12:10 +01:00
themes [Fonts] Retire max font size setting into theme CardText min/max range (#7544) 2026-11-09 14:02:59 +01:00
translations Updates for project Cockatrice and language ru (#7561) 2026-10-17 16:43:14 +02:00
.qdevelop icon_draw and icon_untap added, icon_general and icon_messages modified 2009-07-31 13:37:16 +02:00
CMakeLists.txt [Tests] Capture screenshots and dump the widget tree from a playback (#7818) 2026-11-09 14:19:57 +01:00
cockatrice-cod.xml Define Cockatrice as an editor/handler for .cod files and cockatrice:// protocol on all platforms (#6775) 2026-08-08 19:02:19 +02:00
cockatrice.desktop fix the desktop file, removing the invalid key (#7406) 2026-10-10 17:15:10 +02:00
cockatrice.qrc [Card] Add Scryfall Tagger tag search and filtering (#7337) 2026-11-08 20:57:45 +01:00
cockatrice.rc Included uninstaller for Windows version 2010-09-17 15:26:07 +02:00
cockatrice_en@source.ts Update translation source strings (#7397) 2026-10-04 21:08:47 +02:00