blob: 9366b3817e2d873e2bd56bd8f2c5772c04aaa91c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/***************************************************************************************************
Copyright (C) 2025 The Qt Company Ltd.
SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
***************************************************************************************************/
[assembly: Qt.Generate(
MainIncludes = $@"
#include <generatortestapp/prime.h>
",
MainBeforeAppExec = $@"
GeneratorTestApp::Prime prime;
QObject::connect(&prime, &GeneratorTestApp::Prime::valueChanged,
[&app, dotnetThread, &prime]()
{{
auto index = prime.index();
qInfo() << ""Prime ["" << index + 1 << ""] ="" << prime.value();
if (index < 99) {{
prime.setIndex(index + 1);
}}
}});
prime.setIndex(0);
")]
|