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
Olivier Goffart
3ea8be06e8
Make StandardButton focusable
...
Fixes #7230
ChangleLog: Fixed StandardButton not focusable
2024-12-30 13:33:15 +01:00
ogoffart
f309a551b5
Bump version number to 1.9.2
2024-12-30 10:18:16 +00:00
aurindam
dc3f29b6da
Bump version number to 1.9.1
2024-12-19 12:57:19 +00: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
Arnold Loubriat
9b9a34561d
Improve keyboard navigation of StandardListView
( #6955 )
2024-12-09 15:14:15 +01:00
Olivier Goffart
a3dad45f0b
Accessibility: rename a few properties after API review:
...
- Rename `accessible-selectable` and `accessible-selected` to `accessible-item-{selectable,selected}`.
Because the property is for items in list rather than eg Text
- Rename `accessible-position-in-set` to `accessible-item-index`.
- Rename `accessible-size-of-set` to `accessible-item-count` and move
the property to the container element rather than the item itself
2024-12-07 08:25:42 +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
Arnold Loubriat
97219c21bf
Add the accessible-size-of-set
property
2024-10-30 15:54:01 +08:00
Ryan Naddy
58efd5312b
Added rejected to TextInput ( #6649 )
2024-10-25 17:24:47 +02:00
DataTriny
28b5a67583
Implement accessible-delegate-focus
for the AccessKit backend
2024-10-22 12:54:00 +02:00
FloVanGH
b3f19e446e
LineEdit: fixes cursor draws out of bounds ( #6382 )
2024-10-09 14:31:42 +00: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
Olivier Goffart
d6706494a5
Binding between a read only property to input-output is deprecated ( #6419 )
...
ChangeLog: deprecated two way binding between `in` and `in-out` property
Fixes #6400
2024-10-01 16:00:06 +02:00
ogoffart
eb273a63ee
Bump version number to 1.9.0
2024-09-25 11:49:15 +00:00
FloVanGH
4b6b64f521
Select text on SpinBox on double click ( #6157 )
...
* Select text on SpinBox on double click
* Update CHANGELOG.md
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
* Code review feedback
---------
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
2024-09-16 09:01:10 +00:00
FloVanGH
c9f005b40a
Fixed TimePickerPopup does not open minute view by click on selected hour ( #5959 )
2024-08-27 09:56:55 +00:00
FloVanGH
7a0c3dcc50
Do not trigger current-item-changed on StandardListView if current-item is set on the same value ( #5958 )
2024-08-27 07:22:18 +00:00
ogoffart
4dd7d96a28
Bump version number to 1.8.0
2024-08-15 12:44:46 +00:00
ogoffart
bbf7edc5a3
Bump version number to 1.7.2
2024-08-09 09:52:17 +00:00
FloVanGH
9b7397f9ac
Fixed text input on 24hour time picker ( #5723 )
2024-07-31 07:00:37 +00:00
ogoffart
aa25e3cd44
Bump version number to 1.7.1
2024-07-23 12:05:34 +00:00
Florian Blasius
806d12bcb3
Made ComboBox scrollable ( #5581 )
2024-07-12 15:14:00 +02:00
Florian Blasius
6e2013e4ff
API Review: DatePicker and TimePicker ( #5582 )
2024-07-09 22:16:54 +02:00
Olivier Goffart
a4c0cc9f09
Move the used_types from the (root) Component in the Document
...
Preparation for multi-components
Note that this had to rename one instance of TextStyle because it
conflicts with the struct of the same name used in the FontSettings
in the style. This wasn't a problem before because it shares some
property in common, and the the order of processing of component has
changed leading to the other one being generated.
(But that is a wider bug in the compiler outside of the scope of this
refactoring)
2024-06-20 12:03:38 +02:00
Olivier Goffart
b5aea0ed64
Spinner: simplify the arc path ( #5420 )
...
Since we use the stroke and stroke with, then a single arc is enough
instead of two connected by lines
2024-06-18 15:52:17 +02:00
Daniel Stuart
9f63d157d1
Add character wrapping for Qt Backend
...
This adds a new wrapping mode called `char-wrap`, which allows for wrapping at any character.
Currently, it only supports the Qt backend, with the other backends falling back to `word-wrap` when this option is selected.
2024-06-17 23:52:04 -07:00
Florian Blasius
1d92d29649
DatePicker: Fix bug where switch from input to selection clears date text
2024-06-14 06:43:28 +00:00
Florian Blasius
029ed7e4c2
DatePicker: fix selection on month navigation
2024-06-14 06:43:28 +00:00
Florian Blasius
557c95d0eb
TimePicker: Fix foreground of selected input for cosmic
2024-06-06 09:53:29 +02:00
Olivier Goffart
3da0ee5bb9
DatePicker: Logic in C++
...
Had to simplify a bit the rust logic to make it work
2024-06-06 09:03:50 +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
Florian Blasius
3ccee816be
Added TimePicker widget ( #5251 )
2024-06-05 15:23:06 +02:00
Simon Hausmann
c27cbb94a6
Simplify spinbox test
...
Replace dummy accessible-label use with the new element id lookup mechanism for testing.
2024-06-05 01:29:58 -07:00
ogoffart
3a6e34ba45
Bump version number to 1.7.0
2024-06-04 20:34:29 +00: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
5313044f36
Fix text update of SpinBox ( #5243 )
2024-05-16 05:07:48 +00:00
Florian Blasius
310b01a2e2
ComboBox reset current on model changed ( #5217 )
...
---------
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
2024-05-15 14:28:57 +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