slint/internal/backends/qt/qt_widgets
Avery Townsend c41d4a4df3
Add FocusEventReason to FocusEvent and add a select all on keyboard focus for TextInput (#8523)
Closes #5992

Adds the enum FocusEventReason and makes it an argument for FocusEvent. This reason could eventually be exposed in Slint to solve #8387.

Using the focus reason tracking, I also added a select all on keyboard focus for TextInputs (except on macOS), which should close #5992.

ChangeLog: TextInput selects its content when focused with the keyboard on Windows and Linux
2025-05-27 07:56:13 +02:00
..
button.rs Add FocusEventReason to FocusEvent and add a select all on keyboard focus for TextInput (#8523) 2025-05-27 07:56:13 +02:00
checkbox.rs Add FocusEventReason to FocusEvent and add a select all on keyboard focus for TextInput (#8523) 2025-05-27 07:56:13 +02:00
combobox.rs Support default-font-* properties in Live-Preview 2025-04-24 09:18:45 +02:00
groupbox.rs Support default-font-* properties in Live-Preview 2025-04-24 09:18:45 +02:00
lineedit.rs Support default-font-* properties in Live-Preview 2025-04-24 09:18:45 +02:00
listviewitem.rs Support default-font-* properties in Live-Preview 2025-04-24 09:18:45 +02:00
palette.rs Upgrade cbindgen and use unsafe(no_mangle) attributes (#8539) 2025-05-26 11:21:33 +02:00
progress_indicator.rs Support default-font-* properties in Live-Preview 2025-04-24 09:18:45 +02:00
scrollview.rs Support default-font-* properties in Live-Preview 2025-04-24 09:18:45 +02:00
slider.rs Add FocusEventReason to FocusEvent and add a select all on keyboard focus for TextInput (#8523) 2025-05-27 07:56:13 +02:00
spinbox.rs Add FocusEventReason to FocusEvent and add a select all on keyboard focus for TextInput (#8523) 2025-05-27 07:56:13 +02:00
stylemetrics.rs Upgrade cbindgen and use unsafe(no_mangle) attributes (#8539) 2025-05-26 11:21:33 +02:00
tableheadersection.rs Support default-font-* properties in Live-Preview 2025-04-24 09:18:45 +02:00
tabwidget.rs Add FocusEventReason to FocusEvent and add a select all on keyboard focus for TextInput (#8523) 2025-05-27 07:56:13 +02:00