mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-27 04:19:37 +00:00
Fix a few links to the docs that changed with the new structure
This commit is contained in:
parent
b4cddbbe18
commit
9200480b53
8 changed files with 12 additions and 12 deletions
2
FAQ.md
2
FAQ.md
|
@ -63,7 +63,7 @@ This license is suitable for those who develop desktop or web applications and d
|
||||||
|
|
||||||
You need to do all of the following:
|
You need to do all of the following:
|
||||||
|
|
||||||
1. Display the [`AboutSlint`](https://slint.dev/snapshots/master/docs/slint/src/builtins/widgets.html#aboutslint) widget in an "About" screen or dialog that is accessible from the top level menu of your application.
|
1. Display the [`AboutSlint`](https://slint.dev/docs/slint/src/language/widgets/aboutslint) widget in an "About" screen or dialog that is accessible from the top level menu of your application.
|
||||||
2. Display the [Slint attribution badge](https://github.com/slint-ui/slint/tree/master/logo/madewithslint) on a public webpage, where the binaries of your application can be downloaded from, in such a way that it can be easily found by any visitor to that page.
|
2. Display the [Slint attribution badge](https://github.com/slint-ui/slint/tree/master/logo/madewithslint) on a public webpage, where the binaries of your application can be downloaded from, in such a way that it can be easily found by any visitor to that page.
|
||||||
3. You may not remove or alter any license notices (including copyright notices, disclaimers of warranty, or limitations of liability) contained within the source code form of Slint.
|
3. You may not remove or alter any license notices (including copyright notices, disclaimers of warranty, or limitations of liability) contained within the source code form of Slint.
|
||||||
|
|
||||||
|
|
|
@ -121,7 +121,7 @@ myst_url_schemes = {
|
||||||
|
|
||||||
rst_epilog = """
|
rst_epilog = """
|
||||||
.. |ListView| replace:: :code:`ListView`
|
.. |ListView| replace:: :code:`ListView`
|
||||||
.. _ListView: ../../slint/src/builtins/widgets.html#listview
|
.. _ListView: ../../slint/src/language/widgets/listview
|
||||||
.. |Repetition| replace:: :code:`for` - :code:`in`
|
.. |Repetition| replace:: :code:`for` - :code:`in`
|
||||||
.. _Repetition: ../../slint/src/reference/repetitions.html
|
.. _Repetition: ../../slint/src/reference/repetitions.html
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -35,7 +35,7 @@ actual instance and keeps it alive as long as at least one
|
||||||
|
|
||||||
For more complex user interfaces it's common to supply data in the form of an
|
For more complex user interfaces it's common to supply data in the form of an
|
||||||
abstract data model, that's used with <a href="../slint/src/reference/repetitions.html">`for` - `in`</a>
|
abstract data model, that's used with <a href="../slint/src/reference/repetitions.html">`for` - `in`</a>
|
||||||
repetitions or <a href="../slint/src/builtins/widgets.html#listview">`ListView`</a> elements in the
|
repetitions or <a href="../slint/src/language/widgets/listview">`ListView`</a> elements in the
|
||||||
`.slint` language. All models in C++ are sub-classes of the
|
`.slint` language. All models in C++ are sub-classes of the
|
||||||
{cpp:class}`slint::Model` and you can sub-class it yourself. For convenience,
|
{cpp:class}`slint::Model` and you can sub-class it yourself. For convenience,
|
||||||
the {cpp:class}`slint::VectorModel` provides an implementation that's backed
|
the {cpp:class}`slint::VectorModel` provides an implementation that's backed
|
||||||
|
|
|
@ -60,7 +60,7 @@ export component HelloWorld inherits Window {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
then you can use the following code in you `main` function to show the [`Window`](../slint/src/builtins/elements.html#window)
|
then you can use the following code in you `main` function to show the [`Window`](../slint/src/language/builtins/elements#window)
|
||||||
and change the text:
|
and change the text:
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
|
|
|
@ -54,7 +54,7 @@ models.
|
||||||
|
|
||||||
More complex user interfaces commonly consume data in the form of an abstract
|
More complex user interfaces commonly consume data in the form of an abstract
|
||||||
data model, that is used with <a href="../slint/src/reference/repetitions.html">`for` - `in`</a>
|
data model, that is used with <a href="../slint/src/reference/repetitions.html">`for` - `in`</a>
|
||||||
repetitions or <a href="../slint/src/builtins/widgets.html#listview">`ListView`</a> elements in the
|
repetitions or <a href="../slint/src/language/widgets/listview">`ListView`</a> elements in the
|
||||||
`.slint` language. All models in C++ with the interpreter API are sub-classes
|
`.slint` language. All models in C++ with the interpreter API are sub-classes
|
||||||
of the {cpp:class}`slint::Model` where the template parameter is
|
of the {cpp:class}`slint::Model` where the template parameter is
|
||||||
{cpp:class}`slint::interpreter::Value`. To provide your own data model, you can
|
{cpp:class}`slint::interpreter::Value`. To provide your own data model, you can
|
||||||
|
|
|
@ -3,11 +3,11 @@
|
||||||
|
|
||||||
The game is visually a little bare. Here are some ideas how you could make further changes to enhance it:
|
The game is visually a little bare. Here are some ideas how you could make further changes to enhance it:
|
||||||
|
|
||||||
- The tiles could have rounded corners, to look a little less sharp. The [border-radius](https://slint.dev/docs/slint/src/builtins/elements.html#rectangle)
|
- The tiles could have rounded corners, to look a little less sharp. The [border-radius](https://slint.dev/docs/slint/src/language/builtins/elements#rectangle)
|
||||||
property of _Rectangle_ can be used to achieve that.
|
property of _Rectangle_ can be used to achieve that.
|
||||||
|
|
||||||
- In real world memory games, the back of the tiles often have some common graphic. You could add an image with
|
- In real world memory games, the back of the tiles often have some common graphic. You could add an image with
|
||||||
the help of another _[Image](https://slint.dev/docs/slint/src/builtins/elements.html#image)_
|
the help of another _[Image](https://slint.dev/docs/slint/src/language/builtins/elements#image)_
|
||||||
element. Note that you may have to use _Rectangle_'s _clip property_
|
element. Note that you may have to use _Rectangle_'s _clip property_
|
||||||
element around it to ensure that the image is clipped away when the curtain effect opens.
|
element around it to ensure that the image is clipped away when the curtain effect opens.
|
||||||
|
|
||||||
|
|
|
@ -3,11 +3,11 @@
|
||||||
|
|
||||||
The game is visually a little bare. Here are some ideas how you could make further changes to enhance it:
|
The game is visually a little bare. Here are some ideas how you could make further changes to enhance it:
|
||||||
|
|
||||||
- The tiles could have rounded corners, to look a little less sharp. The [border-radius](https://slint.dev/docs/slint/src/builtins/elements.html#rectangle)
|
- The tiles could have rounded corners, to look a little less sharp. The [border-radius](https://slint.dev/docs/slint/src/language/builtins/elements#rectangle)
|
||||||
property of _Rectangle_ can be used to achieve that.
|
property of _Rectangle_ can be used to achieve that.
|
||||||
|
|
||||||
- In real world memory games, the back of the tiles often have some common graphic. You could add an image with
|
- In real world memory games, the back of the tiles often have some common graphic. You could add an image with
|
||||||
the help of another _[Image](https://slint.dev/docs/slint/src/builtins/elements.html#image)_
|
the help of another _[Image](https://slint.dev/docs/slint/src/language/builtins/elements#image)_
|
||||||
element. Note that you may have to use _Rectangle_'s _clip property_
|
element. Note that you may have to use _Rectangle_'s _clip property_
|
||||||
element around it to ensure that the image is clipped away when the curtain effect opens.
|
element around it to ensure that the image is clipped away when the curtain effect opens.
|
||||||
|
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
|
|
||||||
The game is visually bare. Here are some ideas on how you could make further changes to enhance it:
|
The game is visually bare. Here are some ideas on how you could make further changes to enhance it:
|
||||||
|
|
||||||
- The tiles could have rounded corners, to look less sharp. Use the [border-radius](https://slint.dev/docs/slint/src/builtins/elements.html#rectangle)
|
- The tiles could have rounded corners, to look less sharp. Use the [border-radius](https://slint.dev/docs/slint/src/language/builtins/elements#rectangle)
|
||||||
property of _[Rectangle](https://slint.dev/docs/slint/src/builtins/elements#rectangle)_ to achieve that.
|
property of _[Rectangle](https://slint.dev/docs/slint/src/language/builtins/elements#rectangle)_ to achieve that.
|
||||||
|
|
||||||
- In real-world memory games, the back of the tiles often have some common graphic. You could add an image with
|
- In real-world memory games, the back of the tiles often have some common graphic. You could add an image with
|
||||||
the help of another _[Image](https://slint.dev/docs/slint/src/builtins/elements.html#image)_
|
the help of another _[Image](https://slint.dev/docs/slint/src/language/builtins/elements#image)_
|
||||||
element. Note that you may have to use _Rectangle_'s _clip property_
|
element. Note that you may have to use _Rectangle_'s _clip property_
|
||||||
element around it to ensure that the image is clipped away when the curtain effect opens.
|
element around it to ensure that the image is clipped away when the curtain effect opens.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue