mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-02 00:27:27 +00:00
C++: fix including the generated file in several translation units
This commit is contained in:
parent
155b1443e2
commit
81cb89d374
8 changed files with 76 additions and 1 deletions
10
api/cpp/tests/multiple-includes/logic.cpp
Normal file
10
api/cpp/tests/multiple-includes/logic.cpp
Normal file
|
@ -0,0 +1,10 @@
|
|||
// Copyright © SixtyFPS GmbH <info@slint-ui.com>
|
||||
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial
|
||||
|
||||
#include "logic.h"
|
||||
#include "appwindow.h"
|
||||
|
||||
void setup_logic(const Logic &logic)
|
||||
{
|
||||
logic.on_increment([](int x) { return x + 1; });
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue