James Blacklock
a3ba958197
remove cast
2021-10-18 10:21:06 +02:00
James Blacklock
36f4b32506
use shared pointer in cpp test
2021-10-18 10:21:06 +02:00
James Blacklock
1f0a5a6d7c
fix formatting & cpp test case
2021-10-18 10:21:06 +02:00
James Blacklock
642e4b539a
(hopefully) fix cpp generation
2021-10-18 10:21:06 +02:00
James Blacklock
25f14ab58c
add test case
2021-10-18 10:21:06 +02:00
James Blacklock
745abe7019
handle array length in eval.rs
2021-10-18 10:21:06 +02:00
James Blacklock
cc4105e274
no need for InferredGenericType!
2021-10-18 10:21:06 +02:00
James Blacklock
ab665ba7b6
enable scripts to access the length of arrays
2021-10-18 10:21:06 +02:00
Olivier Goffart
9f3d02c319
Fixup previous commit
...
I got the condition wrong.
CC: #581
2021-10-15 17:20:10 +02:00
Olivier Goffart
19ce555d36
Don't hardcode ScrollArea's viewport size
...
The Flickable should already have sane default
But we need to make sure that the default binding don't override bindings
set with aliases. So we must use BindingsMap::set_binding_if_not_set which
sets the priority properly
Closes #581
2021-10-15 15:43:44 +02:00
Olivier Goffart
4436b422e5
Fix LineEdit.has-focus witht he native style
...
The property had the wrong name.
Also it is not a native-output
2021-10-14 15:34:25 +02:00
Olivier Goffart
bb4e5d8b55
Fix animation not starting when set from a callback
...
Two problems:
- We were not marking the property as dirty, so dependent property would not
update themselves
- In the generated rust/c++ code, we would not call set_animated_value
2021-10-13 14:33:40 +02:00
Simon Hausmann
e3ce136106
Provide a modern introduction to the language reference
2021-10-13 10:38:05 +02:00
Olivier Goffart
ae5f19e60f
Fix typo
2021-10-13 09:44:56 +02:00
Simon Hausmann
f7193d2c53
Mention DYLD_FRAMEWORK_PATH
in the Qt install docs
...
cc #566
2021-10-13 09:14:59 +02:00
Olivier Goffart
89c43bcd36
Workaround a rust-analyzer parse error in the generated code
...
Workaround for https://github.com/rust-analyzer/rust-analyzer/issues/10492
2021-10-12 21:13:07 +02:00
Olivier Goffart
5438f2650a
ChangeLog entry for b74ab8969e
2021-10-12 15:01:35 +02:00
Olivier Goffart
b74ab8969e
Implement Model::set_row_data for ModelHandle
2021-10-12 14:05:33 +02:00
Olivier Goffart
6b55821707
sixtyfps-build: don't print rerun-if-changed before the compilation error
...
Because otherwise it shows in the output in case of .60 compilation error
2021-10-12 14:05:33 +02:00
Simon Hausmann
912913d88d
Fix sysinfo_macos.sh with mount points that have spaces in their path
2021-10-12 14:00:18 +02:00
Olivier Goffart
82a1cc1e83
Viewer: Added way to execute commands on callbacks
2021-10-12 13:58:52 +02:00
Simon Hausmann
15f2b19a95
Reorder sysinfo.60 once more
...
... to match the blog :-)
2021-10-12 11:35:38 +02:00
Simon Hausmann
64ec25f8e3
Clean up sysinfo.60 a little
...
Re-order the first properties and bindings for improved readability
2021-10-12 11:26:35 +02:00
Simon Hausmann
db60a5c4e1
Provide a slightly simpler language reference intro sentence
2021-10-12 10:30:46 +02:00
Simon Hausmann
e305f0e61c
Fix sixtyfps::quit_event_loop()
not exiting the event loop with Qt 6 on macOS
...
As per commit 0c02f133f3daee146b805149e69bba8cee6727b2 in qtbase (qt6),
quit() on QCoreApplication on macOS calls [NSApp terminate], which will
not return to main. The latter however is documented behavior, and
sixtyfps-viewer for example relies on it.
2021-10-11 16:55:32 +02:00
Olivier Goffart
f0f264a94a
Document the ternary operator
...
CC: https://github.com/sixtyfpsui/sixtyfps/discussions/562
2021-10-11 10:49:45 +02:00
Olivier Goffart
acf2ef38a6
Don't put no-frame
on the printer demo example
...
Prefer just put it in a random test instead
2021-10-11 10:30:31 +02:00
Robert Broketa
52ff84c0a1
Add changelog entry and move no-frame
logic to cpp closure
2021-10-11 10:21:21 +02:00
Robert Broketa
938252d740
Not set bordeless/frameless mode if fullscreen
2021-10-11 10:21:21 +02:00
Robert Broketa
c3c7765f80
Add no-frame
property for a borderless/frameless window
2021-10-11 10:21:21 +02:00
Olivier Goffart
503a9b3722
Avoid spurious "cancel" event sent to TouchArea.pointer-event
2021-10-11 10:19:59 +02:00
Olivier Goffart
40e0698373
TouchArea: Grab the mouse regardless of the button
2021-10-11 10:19:59 +02:00
Olivier Goffart
396820243d
Fix typo and size in the sysinfo script
...
(The default size was too small to see the picture on my machine because of
the long CPU string)
2021-10-08 19:22:30 +02:00
Olivier Goffart
b0c87cb089
Fix the middle mouse button with Qt
2021-10-08 17:30:15 +02:00
Olivier Goffart
85772d5bc5
Fix extra '}' when doing a debug()
with an enum.
...
The code was copy-pasted from the code that output the structs
2021-10-08 17:29:32 +02:00
Olivier Goffart
3b6e0e5802
Fixes the PointerEvent.kind always being down
...
Fixes #558
2021-10-08 16:56:35 +02:00
Simon Hausmann
2983ae48c4
Remove unnecessary dependency
2021-10-08 10:02:02 +02:00
Simon Hausmann
39a713c2e7
Update examples/bash/README.md
...
Mention the sysinfo scripts
Co-authored-by: Olivier Goffart <ogoffart@sixtyfps.io>
2021-10-08 09:33:09 +02:00
Simon Hausmann
0c4da4809f
Split out the memory into a separate tab
...
and add some more information about memory and swap
2021-10-08 09:33:09 +02:00
Simon Hausmann
bcf4f2b3de
Add an icon to the general tab
2021-10-08 09:33:09 +02:00
Philipp Gesang
f916ca4124
Bound Text contents width
...
The contents of a Text would wander to the left with center and
right alignment because some size calculations don't take the
maximum available width into account.
2021-10-08 08:05:42 +02:00
Olivier Goffart
b99ff1b766
Put filename in quote in import errors
...
So that the `debug_assert!` that fires when a error message ends with a
period does not crash the LSP when typing an incomplete filename that ends
with a '.'
2021-10-07 14:44:12 +02:00
Olivier Goffart
98e1bb19db
Document the current-index property of the TabWidget
2021-10-07 12:21:11 +02:00
ogoffart
77fcd5221b
Bump version number to 0.1.4
2021-10-07 09:36:43 +00:00
Olivier Goffart
7c813a70fd
sysinfo example: Improve the disk use section
2021-10-07 11:27:10 +02:00
Olivier Goffart
d058e4c10e
Viewer: Make the "Close" button properly close
2021-10-07 11:26:09 +02:00
Olivier Goffart
19200fefac
sysinfo script: escape strings
2021-10-07 11:24:07 +02:00
Simon Hausmann
434f13a741
Use "close" instead of "ok" in the sysinfo dialog
...
Because that's what the button does, there's no need to "okay" :)
2021-10-07 11:09:55 +02:00
Simon Hausmann
35907dd098
Fix typo
2021-10-07 11:04:49 +02:00
Olivier Goffart
cc0d5e17a1
Fix materialized property being wrongly re-initilized when used within the same Element
...
Because the `bindings` field is taken in order not to keep the Element borrowed.
Fixes original report from #553
2021-10-07 09:23:24 +02:00