mirror of
https://github.com/KLayout/klayout.git
synced 2026-08-29 17:30:09 +02:00
WIP: removed old Qt5 binding code, fixed a segfault (static argc), enabled pya without interpreter
This commit is contained in:
@@ -1318,14 +1318,14 @@ rename "QPrintDialog", /QPrintDialog::accepted\(QPrinter/, "accepted_sig"
|
||||
|
||||
# special implementations:
|
||||
|
||||
drop_method "QApplication", /QApplication::QApplication/ # geht nicht wegen char** und wird auch nicht gebraucht wegen singleton
|
||||
drop_method "QApplication", /QApplication::QApplication/ # uses char **
|
||||
|
||||
# provide a dummy application for the constructor for test purposes
|
||||
add_native_impl("QApplication", <<'CODE', <<'DECL')
|
||||
static QApplication *ctor_QApplication()
|
||||
{
|
||||
static char *(dummy_argv[]) = { (char *)"undefined_application" };
|
||||
int argc = 1;
|
||||
static int argc = 1;
|
||||
return new QApplication (argc, dummy_argv);
|
||||
}
|
||||
CODE
|
||||
|
||||
@@ -1443,7 +1443,7 @@ add_native_impl("QApplication", <<'CODE', <<'DECL')
|
||||
static QApplication *ctor_QApplication()
|
||||
{
|
||||
static char *(dummy_argv[]) = { (char *)"undefined_application" };
|
||||
int argc = 1;
|
||||
static int argc = 1;
|
||||
return new QApplication (argc, dummy_argv);
|
||||
}
|
||||
CODE
|
||||
|
||||
Reference in New Issue
Block a user