Simon Hausmann
aa332202c5
Rename AccessibleRole.GroupBox to AccessibleRole.Groupbox
...
While unfortunate in casing, this is consistent with Checkbox, Combobox, and Spinbox.
2025-01-10 16:27:14 +01:00
Olivier Goffart
3e94bd2167
Janitor: Remove trailing whitespaces from all files
...
`git grep -I -l -O'sed -i "s/[[:space:]]*$//"' -e ''`
2025-01-10 13:23:22 +01:00
Arnold Loubriat
f7b9da96d4
Set accessible-enabled
on group box widgets
2025-01-07 23:08:03 +01:00
Arnold Loubriat
8b95752de7
Set accessible-label
on group box widgets
2025-01-07 23:08:03 +01:00
Arnold Loubriat
49196728a7
Add AccessibleRole::GroupBox
2025-01-07 23:08:03 +01:00
Arnold Loubriat
9c25040b00
Set accessible-action-default
on tabs
2025-01-06 09:30:11 +01:00
Arnold Loubriat
60aacc8f82
Set accessible-item-selected
on tabs
2025-01-06 09:30:11 +01:00
Arnold Loubriat
67f6e1a737
Set accessible-item-selectable
on tabs
2025-01-06 09:30:11 +01:00
Arnold Loubriat
23e37ce4de
Set accessible-item-index
on tabs
2025-01-06 09:30:11 +01:00
Arnold Loubriat
38499962a9
Set accessible-item-count
on tab bar widgets
2025-01-06 09:30:11 +01:00
Olivier Goffart
3ea8be06e8
Make StandardButton focusable
...
Fixes #7230
ChangleLog: Fixed StandardButton not focusable
2024-12-30 13:33:15 +01:00
Olivier Goffart
60c10213d2
Remove LayoutSpec
and undeprecate StyleMetrics.layout-*
properties ( #7069 )
...
StyleMetrics is the right name for these
2024-12-16 14:52:28 +01:00
FloVanGH
e0ad561c86
widgets: added key-pressed and key-released callbacks to all text input components ( #7081 )
...
* widgets: removed rejected event
* widgets: added key-pressed, key-released callbacks to text input components
* Update docs/astro/src/content/docs/reference/std-widgets/lineedit.mdx
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
---------
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
2024-12-12 16:20:45 +00:00
Olivier Goffart
69d201d6a0
ComboBox: key event when popup is open
...
Fixes #4826
The previous patch changed that the ComboBox was no longer focused when
the popup is shown, so make a hack around that
2024-12-09 15:58:16 +01:00
asuper0
387220227d
Add step
property to Slider
( #6981 )
...
Closes #4549
ChangedLog: Slider: added `step` property
2024-12-05 11:50:08 +01:00
FloVanGH
901afde11f
api review: callback parameters and properties name adjustements
2024-12-02 16:22:39 +00:00
Olivier Goffart
5bd20def0e
Experimental support for MenuBar
...
Introduces `MenuBar{ ... }` that can be put in a Window
2024-11-20 09:25:37 +01:00
FloVanGH
c84af1a8d7
std-widgets: added LayoutSpec global ( #6711 )
2024-11-06 14:47:04 +00:00
Olivier Goffart
929e71e6b0
Widgets: add callback arg names to some callback
...
The ones that have a comment already.
Tests that the name is consistent accross the styles.
2024-11-04 17:09:57 +01:00
Ryan Naddy
908580b951
Added rejected to textedit ( #6662 )
2024-10-31 16:23:50 +01:00
Ryan Naddy
58efd5312b
Added rejected to TextInput ( #6649 )
2024-10-25 17:24:47 +02:00
DataTriny
2de3b9d455
Add the accessible-enabled
property
2024-10-25 10:20:09 +02:00
FloVanGH
14c7910d49
PopupWindow: added close-policy property ( #6614 )
...
* Update api/cpp/include/slint_window.h
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update docs/reference/src/language/builtins/elements.md
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
* Update internal/core/window.rs
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update internal/interpreter/eval.rs
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
* Update internal/backends/qt/qt_window.rs
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update internal/interpreter/dynamic_item_tree.rs
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update internal/compiler/passes/materialize_fake_properties.rs
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
2024-10-24 09:27:39 +00:00
Renato Araujo Oliveira Filho
1e4de3fe0c
Implement ScrollBarPolicy property for ScrollView ( #6442 )
...
ChangeLog: ScrollView: added vertical-bar-policy and horizontal-bar-policy
Fixes : #3552
Fixes : #5578
2024-10-08 17:02:17 +02:00
Olivier Goffart
0c36499936
Rename common.slint -> about-slint.slint
...
The file used to contain many things but now it only contains AboutSlint
widget, so we can as well rename it accordingly
2024-10-08 14:52:03 +02:00
FloVanGH
039f33eaae
Added scrolled callback to ListView and ScrollView ( #5964 )
2024-08-27 10:18:43 +00:00
Simon Hausmann
641b833c91
Fix TextEdit
not invoking edited
callbacks
...
Fixes #5848
2024-08-15 10:10:08 +02:00
Olivier Goffart
f36fed2252
Combobox: Fix ComboBox having a too big popup when it has less than 6 items
...
Fix #5646
Qt is a bit more involved since it always put scrollbar if there is a ScrollArea and we can't
easily know the size to which make the popup. That's why it needs two popups
2024-07-23 14:18:16 +02:00
Florian Blasius
806d12bcb3
Made ComboBox scrollable ( #5581 )
2024-07-12 15:14:00 +02:00
Simon Hausmann
c81ab5cd6d
Remove hard-coded sizes from date and time picker popups
...
Use the layout and position the popup centered relative to its parent.
2024-07-10 13:43:41 +02:00
Florian Blasius
6e2013e4ff
API Review: DatePicker and TimePicker ( #5582 )
2024-07-09 22:16:54 +02:00
Olivier Goffart
66370b6bda
Add export { ... } from "....slint";
syntax. ( #5533 )
2024-07-03 12:50:40 +02:00
Arnold Loubriat
ce2db77e88
Add the accessible-placeholder-text
property ( #5464 )
2024-06-26 12:59:22 +02:00
Simon Hausmann
97dc776557
Add missing accessible-action-default for Switch
...
... and fix Switch defaults to match the docs for all styles.
2024-06-06 01:15:05 -07:00
Florian Blasius
557c95d0eb
TimePicker: Fix foreground of selected input for cosmic
2024-06-06 09:53:29 +02:00
Simon Hausmann
8cc2620dee
Fix up clock and keyboard icon in the qt style
...
These were originally copied from cosmic but should come from material, as the other icons from the date picker PR.
2024-06-06 09:28:56 +02:00
Florian Blasius
973ecac989
DatePicker: finished features
2024-06-06 09:03:50 +02:00
Florian Blasius
f75cedb893
DatePicker: calendar
2024-06-06 09:03:50 +02:00
Florian Blasius
fe6dba9779
DatePicker: base setup
2024-06-06 09:03:50 +02:00
Simon Hausmann
b162e9df45
Make it possible to toggle the state of checkboxes via accessibility
2024-06-05 09:51:41 -07:00
Florian Blasius
3ccee816be
Added TimePicker widget ( #5251 )
2024-06-05 15:23:06 +02:00
Olivier Goffart
7f014050ac
Qt StandardTableView: properly elide the cell in the text
...
Contrary to the ListView that needs a minimum size and can be scrolled,
the TableView needs the cell to be ellided and don't have a minimum size
Fixes #5285
2024-06-05 12:29:43 +02:00
Arnold Loubriat
0b8a0a90dd
Also fix the Qt theme
2024-06-03 01:38:06 -07:00
Simon Hausmann
d183498c4e
Add support for step-size to SpinBox rendered by the Qt style
...
Fixes #5325
2024-05-31 09:45:29 -07:00
Aurindam Jana
3523e86359
Simplify commercial license ( #3063 )
...
Base the commercial license on the Royalty-free license adding clauses pertaining to the fees.
2024-05-31 14:06:17 +02:00
Florian Blasius
dc4e421f2c
Added step-size to SpinBox ( #5293 )
2024-05-31 09:45:37 +00:00
Aurindam Jana
9a3aa265d5
Update Royalty-free license ( #5257 )
...
Add clarification that Application may not expose Slint APIs.
2024-05-31 10:53:19 +02:00
Florian Blasius
a3d4112897
Added placeholder-text to TextEdit ( #5239 )
...
---------
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
2024-05-15 10:20:13 +00:00
Florian Blasius
bd777b4312
Added TextEditBase ( #5236 )
2024-05-15 06:26:50 +02:00
Dirley Jordan
35b9c1e738
Fix a positive minimum causing an incorrect slider/spinbox value ( #5148 )
...
sets the default value to that of the minimum
2024-04-30 09:30:31 +02:00