Commit graph

10295 commits

Author SHA1 Message Date
Aurindam Jana
d45165e984
Update README.md with status of Mobile platforms 2023-12-08 12:31:24 +01:00
Tobias Hunger
2bdcbc8e9f
core: Add a double-click callback to the TouchArea (#4060)
Co-authored-by: Simon Hausmann <hausmann@gmail.com>
Co-authored-by: Olivier Goffart <olivier.goffart@slint.dev>
2023-12-08 12:12:41 +01:00
Tobias Hunger
b54158cac4 README: Small corrections to the readme 2023-12-08 12:01:30 +01:00
Florian Blasius
6d6b18300a
added focus state to StandardLIstView (#4086)
* added focus state to StandardLIstView

* (wip) focus handling for qt style

* Update CHANGELOG.md

Co-authored-by: Thorbjørn Lindeijer <bjorn@lindeijer.nl>

* Share StandardListView between all styles

* Update internal/compiler/widgets/material-base/combobox.slint

Co-authored-by: Thorbjørn Lindeijer <bjorn@lindeijer.nl>

* code review feedback

---------

Co-authored-by: Thorbjørn Lindeijer <bjorn@lindeijer.nl>
2023-12-08 10:58:58 +01:00
Olivier Goffart
f25a419009 swrenderer: More fix to the screen rotation for line by line 2023-12-08 10:36:04 +01:00
Simon Hausmann
0c8a48e1d8 Update to skia-safe 0.69
This updates Skia to milestone 120. For more details see
https://github.com/rust-skia/rust-skia/releases/tag/0.69.0
2023-12-08 10:22:35 +01:00
Update Translations Bot
223d629e3c Update Translations: extract strings 2023-12-08 03:04:01 +00:00
Florian Blasius
c53a70db8d
fixed cupertino spinbox, move more code to base (#4083) 2023-12-07 14:53:31 +01:00
Florian Blasius
5d34c8307b
combobox fix mouse wheel selection direction (#4091) 2023-12-07 14:53:02 +01:00
Update Translations Bot
dde35b2ae5 Update Translations: extract strings 2023-12-07 03:04:04 +00:00
Tobias Hunger
a24190924b cmake-lint: cargo-feature is not a valid identifier in CMake
cmake-lint reports that `cargo-feature` is not a valid identifier. Change
it to `cargo_feature` instead, even though this seems to work anyway.
2023-12-04 17:07:09 +01:00
Olivier Goffart
44ec841609 Fix lookup relative to the manifest path in .rs file
For the slint! macro, we need to lookup files in the manifest path.
The base_directory function regressed in commit 0ff8e2c.
This was not cought by the test because it had falled back to the `pwd`
with a warning, as we used to load ressources relative to `pwd` as a
fallback.
So also check that there are no warning (meaning updating the rest of
the test so that there isn't any warnings)

Fix #4045
2023-12-02 13:11:59 +01:00
Tobias Hunger
3b7e79958a cpp: Make Timer available to other FFI-exported types
We have a nice FFI-compatible wrapper areound rust timers in C++, so
allow to use that in other types exported to C++.

This also makes sure the rust and C++ side agree on the size of the
type, with the nice side effect that the rust Timer now uses half as
much space now as it did before.
2023-12-01 18:47:00 +01:00
Tobias Hunger
3a87342073 testing: Add a method to the testing interface to query the mocked time
I find this helpful when debugging tests using mocked time.
2023-12-01 17:36:18 +01:00
Olivier Goffart
9bb61b8ec6 Revert "Prepare 1.3.2 release"
This reverts commit 1d41f0b402.

Release is done
2023-12-01 14:51:58 +01:00
Simon Hausmann
19f6840452 Remove now unused Qt license files 2023-12-01 14:48:07 +01:00
Simon Hausmann
4b4a7d6ff2 Remove Qt from the C++ packages on Windows and macOS
Commit 79b70782b4 was supposed to do this.

- Remove now unused Qt license file bunding from prepare_binary_package.sh
- Remove CMake Qt bundling option
2023-12-01 14:48:07 +01:00
Simon Hausmann
768084b68e Remove Qt license files from windows tool binary packages
Since they don't ship with Qt anymore,
we can remove LICENSE.Qt and QtThirdPartSoftware_Listing.txt.
2023-12-01 10:49:47 +01:00
Simon Hausmann
6b3dc7c6a3 Revert "Prospective fix for C++ packages on Windows not producing running binaries"
This reverts commit 26543d9555.

That was an accidental change. We may want to continue to test with Qt
in regular CI builds, as opposed to cpp_package.yaml for releases.
2023-12-01 10:25:16 +01:00
Simon Hausmann
26543d9555 Prospective fix for C++ packages on Windows not producing running binaries
Commit 79b70782b4 removed the distribution
of Qt from the binary packages, so when compiling we must make sure Qt
is not there. We keep it for Linux though.
2023-12-01 10:19:02 +01:00
Olivier Goffart
09de1dc5b5
LSP: Also close the popup on wasm
Move the code to close the popup in the function that is common with native and wasm.

Amend af34e4f182
2023-12-01 09:58:51 +01:00
Olivier Goffart
b90bb7bd49 Wasm Demos: fix size of the canvas
Harmonize demos to use `data-slint-auto-resize-to-preferred="true"`.
Otherwise it seems like they are using the minimum size now which is way
too small for these demos
2023-12-01 09:41:02 +01:00
Olivier Goffart
1d41f0b402 Prepare 1.3.2 release 2023-12-01 09:11:02 +01:00
ogoffart
b9255ab8e2 Bump version number to 1.3.2 2023-12-01 08:05:15 +00:00
Simon Hausmann
361900aae8 Minor changelog edits 2023-12-01 08:35:30 +01:00
Olivier Goffart
41f7275c35 Fluent: fix disabled LineEdit
The `color` is the Rectangle's deprecated alias to background. I wonder why we don't get a warning though.
It was meant to change the text-color
2023-12-01 07:25:00 +01:00
Update Translations Bot
2d3267f3fa Update Translations: extract strings 2023-12-01 03:04:08 +00:00
Tobias Hunger
a9976171f9 Add CHANGELOG entry 2023-11-30 20:14:45 +01:00
Tobias Hunger
471bef422d core: Do not report singleshot timers set up via start() as running
... after firing once. `running()` will now return `true` for such timers
till just before the callback is run and `false` after that point.

Add test a new test and update existing C++ tests to make them comply
with the changed behavior.
2023-11-30 20:14:45 +01:00
Laurent Montel
36dfaf3af6 Gallery demo: hide the "enable widgets" checkbox in some pages
These widgets has not enabled boolean support yet
2023-11-30 15:55:00 +01:00
Olivier Goffart
af34e4f182 LSP preview: close the popup menu before loading a new preview
Otherwise we get outdated popup menu, or worse: panics

Fix #4035

(Note that before we had the preview_ui, we were calling
WindowInner::set_component which do close_popup as well)
2023-11-30 11:21:16 +01:00
Simon Hausmann
d69bb1f5c1
Document the preferred linear history approach a little (#4034)
... including some example commands how to do it.
2023-11-30 11:01:53 +01:00
Olivier Goffart
e9079e6db5 Fix position of grabbed event on popups
Fixes #4033  (combobox don't select entries)
Fixes #4036
2023-11-30 10:18:30 +01:00
Simon Hausmann
8886f795d2 Add ChangeLog entry for windows cross-compilation fix 2023-11-30 08:43:26 +01:00
Olivier Goffart
583322be56 Update corrosion 2023-11-30 08:29:35 +01:00
Horbin
9a1857fb36
Fix the window doesn't automatically resize. (#4032)
Try to fix the issue #3911.

In 1.3.0, the function "adjust_window_size_to_satisfy_constraints" is deleted.
I guess that, in Winit 0.29.x, the window will automatically resize, but, at least, it doesn't work on Windows.
So, I try to add this function back.
2023-11-29 21:04:12 +01:00
今何求
607bdbfcf8
Upgrade to fontdue 0.8
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
2023-11-29 10:52:27 +01:00
Simon Hausmann
3e71d1b559 doc: clarify the meaning of the repeat field in KeyEvent
... as suggested by Joceln.
2023-11-29 10:16:21 +01:00
Simon Hausmann
86d5c25d38 Added three changelog entries for a 1.3.2 release 2023-11-29 09:40:43 +01:00
Jocelyn Turcotte
2c922ff7a6 KeyEvent.repeat driver test 2023-11-29 09:31:31 +01:00
Jocelyn Turcotte
678c7678e9 C++ API for KeyEvent.repeat
Add a new dispatch_key_press_repeat_event function to dispatch auto-repeated
key events.
2023-11-29 09:31:31 +01:00
Jocelyn Turcotte
82916bc2ec Implement KeyEvent.repeat
Now that winit was upgraded do 0.29 we can use its KeyEvent::repeat field.
Also feed Qt's QKeyEvent::isAutoRepeat() in the Qt backend.
2023-11-29 09:31:31 +01:00
Florian Blasius
e55bde4c97
fix lineedit callbacks (#4028) 2023-11-29 06:13:23 +01:00
xgroleau🐢
9bc8d203fe doc: matched the comments with the changes 2023-11-28 16:54:00 +01:00
xgroleau🐢
a6feda5233 fix: return transformed on render() 2023-11-28 16:54:00 +01:00
xgroleau🐢
15770ef7e6 fix: compare current line with dirty region 2023-11-28 16:54:00 +01:00
Tobias Hunger
547ba6d998 lsp: Make previewed component resizable 2023-11-28 10:38:46 +01:00
Tobias Hunger
2ad9e07225 component_container: Add has-component property
... that returns a bool when a component is set up in the
ComponentContainer.
2023-11-28 10:38:46 +01:00
Olivier Goffart
f07e05c08b Revert "Prepare for 1.3.1 release"
This reverts commit 76009f199d.

Release is done
2023-11-28 10:26:00 +01:00
Olivier Goffart
032032dc3e ChangeLog: add release date 2023-11-28 09:38:15 +01:00