Tobias Hunger
87df173d17
Janitor: Fix clippy::explicit_counter_loop
2021-08-09 13:19:34 +02:00
Tobias Hunger
52869170c1
Janitor: Fix clippy::identity_op
2021-08-09 13:19:34 +02:00
Simon Hausmann
55056aec3b
doc: Remove mention of the Clip
element, as it has been replaced with a clip: true
on a Rectangle
a while ago
2021-08-09 13:06:59 +02:00
Simon Hausmann
043407eb74
Cleanup: Remove use of the Clip element
2021-08-09 13:01:30 +02:00
Olivier Goffart
a0a8cc3bc9
Mark the TabWidget as internal and re-export it from the style
2021-08-09 12:41:03 +02:00
Olivier Goffart
16325d5474
Remove dbg!
2021-08-09 12:40:21 +02:00
Olivier Goffart
8728052578
Fix panic when typing into the line edit in the gallery
...
The problem was that the item array's parent was not properly
computed. Leading to corrupted item when getting the parent of the
focus item.
2021-08-09 12:00:17 +02:00
Tobias Hunger
b347642f28
Fix typos, grammar and formatting issues in the docs
2021-08-08 11:06:58 +02:00
Olivier Goffart
c33e4d76aa
Use proper rustdoc link.
...
Its ``[`...`]`` not ``[[..]]``
2021-08-07 17:07:41 +02:00
Olivier Goffart
d2e2eecf0d
Allow parent element to contain contraints and still be able to set the height or width
2021-08-07 14:05:05 +02:00
Olivier Goffart
339ca0dc55
Tiny adjustment to the fluent style
2021-08-07 13:28:30 +02:00
Olivier Goffart
23e3c68357
Online editor: ability to select the style
2021-08-07 12:49:53 +02:00
Olivier Goffart
d03c9e3e5d
Flient style: small fixup so that cargo-ui can compile with it
2021-08-07 10:17:22 +02:00
Olivier Goffart
84fb18d6cf
Add a fluent style
2021-08-06 23:23:26 +02:00
Olivier Goffart
58af765b07
Fix the qt backend always rebuilding
...
(because of one of the previous changes which renamed the file)
2021-08-06 21:48:38 +02:00
Olivier Goffart
fa770ec262
Fix panic when one of the two branch of a condition is Type::Void
...
Throw a proper compilation error.
Note that there may be a bit too many error now when the two
branch of a condition are not the same, but it's better than a panic
2021-08-06 19:44:05 +02:00
Olivier Goffart
3d7ce0fed8
Rename the qt/widgets.rs to qt/qt_widgets.rs
...
there are other files wih widgets in their name, so disambiguate
2021-08-06 18:48:58 +02:00
Olivier Goffart
fb5be2ed8a
Fix compiler warning
2021-08-06 18:46:56 +02:00
Simon Hausmann
b4ba77dba7
Fix SharedVector creation from iterators with default size hints
...
* In capacity_for_grow, don't compare the number of elements
(current_cap) with the size of an element in bytes, but
with the required capacity instead (to detect that we don't need
to grow). Not all call sites check for that (i.e. push), so there's
a new test for that.
* When re-allocating due to growth and copying elements from the old
inner to the new inner, make sure to copy all old elements from the beginning,
not only the last element repeatedly.
2021-08-06 16:18:33 +02:00
Simon Hausmann
c8e96f60b0
Added link from the README to the YouTube tutorial
2021-08-06 16:14:25 +02:00
Simon Hausmann
8b4e41ff41
README: link to the tutorial
...
... and rename the section to "Documentation" and move the badges to the front
2021-08-06 16:01:00 +02:00
Olivier Goffart
6789e7195e
Fix compilation
...
The recently removed property was actually not complely unused
2021-08-06 15:58:13 +02:00
Olivier Goffart
a89d83e58f
Apply suggestions from code review
...
Co-authored-by: Simon Hausmann <simon.hausmann@sixtyfps.io>
2021-08-06 15:58:13 +02:00
Olivier Goffart
63db0959f9
Fix the TabWidget's ugly style size constraints
2021-08-06 15:58:13 +02:00
Olivier Goffart
b5f34fd1d7
Make it an error to use dynamic tabs in the TabWidget
2021-08-06 15:58:13 +02:00
Olivier Goffart
d41839abe3
Compiler pass for the TabWidget
...
it will lower the TabWidget into a TabWidgetImpl and the tabs into TabImpl
2021-08-06 15:58:13 +02:00
Olivier Goffart
c58ffe1589
Better panic message when we reference a property that does not exist
2021-08-06 15:58:13 +02:00
Olivier Goffart
29e0ae913c
TabBar: implement something in the ugly style
...
and change the TabImpl API
2021-08-06 15:58:13 +02:00
Olivier Goffart
18572fbaa3
WIP: More TabWidget work in progress
2021-08-06 15:58:13 +02:00
Olivier Goffart
9d40779d69
WIP work for TabWidget
2021-08-06 15:58:13 +02:00
Simon Hausmann
045356bf58
Added links from the tutorials to the YouTube recording
2021-08-06 15:54:31 +02:00
Tobias Hunger
61af35afe1
Janitor: Fix clippy::needless_update
...
This leaves some of these issues in, which may be triggered depending on
selected features. `#[allow(needless_update)]` is used to silence those.
2021-08-05 23:41:56 +02:00
Tobias Hunger
ff76aa8953
Janitor: Fix clippy::blocks_in_if_conditions
2021-08-05 23:41:56 +02:00
Tobias Hunger
9c12421c18
Janitor: Fix clippy::option_map_unit_fn
2021-08-05 23:41:56 +02:00
Olivier Goffart
511bd6a5c1
Add link to the license offering in the FAQ
2021-08-05 14:35:18 +02:00
Simon Hausmann
5c01eb07a8
Fix typo
...
Thanks cSpell :-)
2021-08-05 14:28:12 +02:00
Olivier Goffart
8f4caa5d6f
Add link to the license offering for the commercial license
2021-08-05 14:25:28 +02:00
Simon Hausmann
acb10caea3
internal cleanup: don't bother with Cargo.toml files
...
Crates names just create noise
2021-08-05 13:54:17 +02:00
Simon Hausmann
9f4fa3599a
internal cleanup: make the GL backend cSpell clean
2021-08-05 13:52:55 +02:00
Simon Hausmann
3ec2274365
internal cleanup: rename the eventloop module to event_loop
...
That's consistent with graphics_window and silences cSpell
2021-08-05 13:46:42 +02:00
Tobias Hunger
4c7ecc57d8
Janitor: Fix clippy::or_fun_call
2021-08-04 22:50:35 +02:00
Tobias Hunger
04738a900f
Janitor: Fix clippy::map_clone
2021-08-04 22:50:35 +02:00
Tobias Hunger
0d73917526
Janitor: Fix clippy::writeln_empty_string
2021-08-04 22:50:35 +02:00
Tobias Hunger
2606d6d9e7
Janitor: Fix clippy::clone_on_copy
2021-08-04 22:50:35 +02:00
Tobias Hunger
46edbd0410
Janitor: Fix clippy::useless_format
2021-08-04 22:50:35 +02:00
Tobias Hunger
cbeecfefba
Remove unnecessary clone() calls
...
window is just &self once the redundant clone() call has been removed,
so remove that variable entirely.
2021-08-04 22:50:35 +02:00
Tobias Hunger
ce976a1dbb
Janitor: Fix clippy::useless_conversion
2021-08-04 22:50:35 +02:00
Tobias Hunger
c74565a883
Janitor: Fix clippy::needless_return
2021-08-04 22:50:35 +02:00
Tobias Hunger
24a2021226
Janitor: Fix clippy::needless_borrow
2021-08-04 22:50:35 +02:00
Tobias Hunger
22c65707b2
Janitor: Fix clippy::len_zero
2021-08-04 22:50:35 +02:00