mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
Add the accessible-read-only
property
This commit is contained in:
parent
e5c27d57ca
commit
cc91de2d38
18 changed files with 60 additions and 1 deletions
|
@ -22,6 +22,7 @@ export component LineEdit {
|
|||
accessible-enabled: root.enabled;
|
||||
accessible-value <=> text;
|
||||
accessible-placeholder-text: text == "" ? placeholder-text : "";
|
||||
accessible-read-only: root.read-only;
|
||||
accessible-action-set-value(v) => { text = v; edited(v); }
|
||||
|
||||
public function set-selection-offsets(start: int, end: int) {
|
||||
|
|
|
@ -29,6 +29,7 @@ export component TextEdit {
|
|||
accessible-enabled: root.enabled;
|
||||
accessible-value <=> text;
|
||||
accessible-placeholder-text: text == "" ? placeholder-text : "";
|
||||
accessible-read-only: root.read-only;
|
||||
|
||||
public function set-selection-offsets(start: int, end: int) {
|
||||
base.set-selection-offsets(start, end);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue