- PointerTracker: per-finger gesture state machine (pure, unit-tested) - AlternatesPicker + AlternatesPopup.qml: long-press choices, finger selects - Space long-press trackpad moves the cursor with arrow keysyms - Slide from .?123 onto a symbol types it and switches back - New finger commits pending taps (iOS rollover) - Flick animation: secondary symbol slides down as the finger moves - Transparent popup margin with an input region that passes clicks through - tst_keyboardsurface: end-to-end gesture tests on the real QML Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
19 lines
788 B
CMake
19 lines
788 B
CMake
function(sloposk_add_test name)
|
|
qt_add_executable(${name} ${name}.cpp)
|
|
target_link_libraries(${name} PRIVATE sloposk_core Qt6::Test)
|
|
add_test(NAME ${name} COMMAND ${name})
|
|
set_tests_properties(${name} PROPERTIES ENVIRONMENT "QT_QPA_PLATFORM=offscreen")
|
|
endfunction()
|
|
|
|
sloposk_add_test(tst_shiftstate)
|
|
sloposk_add_test(tst_layoutloader)
|
|
sloposk_add_test(tst_keygeometry)
|
|
sloposk_add_test(tst_controller)
|
|
sloposk_add_test(tst_pointertracker)
|
|
sloposk_add_test(tst_alternatespicker)
|
|
|
|
# Needs the QML module itself, not just the C++ backing library.
|
|
sloposk_add_test(tst_keyboardsurface)
|
|
target_link_libraries(tst_keyboardsurface PRIVATE sloposk_coreplugin)
|
|
set_tests_properties(tst_keyboardsurface PROPERTIES ENVIRONMENT "QT_QPA_PLATFORM=offscreen;QT_QUICK_BACKEND=software")
|