mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 02:39:28 +00:00
Fixed kebab casing of previous appwindow.slint
.
This commit is contained in:
parent
844590cac8
commit
9894eca229
25 changed files with 33 additions and 33 deletions
|
@ -56,7 +56,7 @@ channel = "esp"
|
|||
# define DRAW_BUF_SIZE (BSP_LCD_H_RES * CONFIG_BSP_LCD_DRAW_BUF_HEIGHT)
|
||||
#endif
|
||||
|
||||
#include "appwindow.h"
|
||||
#include "app-window.h"
|
||||
|
||||
extern "C" void app_main(void)
|
||||
{
|
||||
|
@ -93,7 +93,7 @@ extern "C" void app_main(void)
|
|||
ui->run();
|
||||
}
|
||||
```
|
||||
8. Create `main/appwindow.slint` with the following contents:
|
||||
8. Create `main/app-window.slint` with the following contents:
|
||||
```
|
||||
import { VerticalBox, AboutSlint } from "std-widgets.slint";
|
||||
export component AppWindow inherits Window {
|
||||
|
@ -108,10 +108,10 @@ export component AppWindow inherits Window {
|
|||
}
|
||||
```
|
||||
9. Edit `main/CMakeLists.txt` to adjust for the new `slint-hello-world.cpp`, add `slint` as required component,
|
||||
and instruction the build system to compile `appwindow.slint` to `appwindow.h`. The file should look like this:
|
||||
and instruction the build system to compile `app-window.slint` to `app-window.h`. The file should look like this:
|
||||
```cmake
|
||||
idf_component_register(SRCS "slint-hello-world.cpp" INCLUDE_DIRS "." REQUIRES slint)
|
||||
slint_target_sources(${COMPONENT_LIB} appwindow.slint)
|
||||
slint_target_sources(${COMPONENT_LIB} app-window.slint)
|
||||
```
|
||||
10. Open the configuration editor with `idf.py menuconfig`:
|
||||
* Change the stack size under `Component config --> ESP System Settings --> Main task stack size` to at least `8192`. You may need to tweak this value in the future if you run into stack overflows.
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
add_executable(libraries main.cpp)
|
||||
target_link_libraries(libraries PRIVATE Slint::Slint)
|
||||
slint_target_sources(libraries appwindow.slint
|
||||
slint_target_sources(libraries app-window.slint
|
||||
LIBRARY_PATHS
|
||||
helper_components=${CMAKE_CURRENT_SOURCE_DIR}/../../../../tests/helper_components/
|
||||
helper_buttons=${CMAKE_CURRENT_SOURCE_DIR}/../../../../tests/helper_components/test_button.slint
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
||||
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
|
||||
|
||||
#include "appwindow.h"
|
||||
#include "app-window.h"
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
|
|
|
@ -3,5 +3,5 @@
|
|||
|
||||
add_executable(multiple-includes main.cpp logic.cpp)
|
||||
target_link_libraries(multiple-includes PRIVATE Slint::Slint)
|
||||
slint_target_sources(multiple-includes appwindow.slint COMPILATION_UNITS 0)
|
||||
slint_target_sources(multiple-includes app-window.slint COMPILATION_UNITS 0)
|
||||
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
|
||||
|
||||
#include "logic.h"
|
||||
#include "appwindow.h"
|
||||
#include "app-window.h"
|
||||
// Test that it's ok to include twice
|
||||
#include "appwindow.h"
|
||||
#include "app-window.h"
|
||||
|
||||
void setup_logic(const Logic &logic)
|
||||
{
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
|
||||
|
||||
#include "logic.h"
|
||||
#include "appwindow.h"
|
||||
#include "app-window.h"
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue