diff --git a/cmd/genbindings/main.go b/cmd/genbindings/main.go index 53e7b21c..3db30cb1 100644 --- a/cmd/genbindings/main.go +++ b/cmd/genbindings/main.go @@ -161,6 +161,7 @@ func generate(packageName string, srcDirs []string, clangBin, cflagsCombined, ou astTransformChildClasses(parsed) // must be first astTransformOptional(parsed) astTransformOverloads(parsed) + astTransformConstructorOrder(parsed) atr.Process(parsed) // Update global state tracker (AFTER astTransformChildClasses) diff --git a/cmd/genbindings/transformctors.go b/cmd/genbindings/transformctors.go new file mode 100644 index 00000000..3860024b --- /dev/null +++ b/cmd/genbindings/transformctors.go @@ -0,0 +1,38 @@ +package main + +import ( + "sort" +) + +// astTransformConstructorOrder creates a canonical ordering for constructors +// where the 0th entry is any entry taking solely a QWidget* parameter. +// This is so that UIC can safely assume this for types. +// @ref https://github.com/mappu/miqt/issues/46 +func astTransformConstructorOrder(parsed *CppParsedHeader) { + + // QFoo(QWidget* parent); + checkIsDefaultCtor := func(candidate CppMethod) bool { + return len(candidate.Parameters) == 1 && + candidate.Parameters[0].ParameterType == "QWidget" && + candidate.Parameters[0].Pointer + } + + // Iterate all classes + for i, c := range parsed.Classes { + + // Sort + sort.SliceStable(c.Ctors, func(i, j int) bool { + ic := checkIsDefaultCtor(c.Ctors[i]) + jc := checkIsDefaultCtor(c.Ctors[j]) + + if ic && !jc { + return true + } + return false + }) + + // Persist mutation + parsed.Classes[i] = c + + } +} diff --git a/cmd/miqt-rcc/main.go b/cmd/miqt-rcc/main.go new file mode 100644 index 00000000..c9fe8ffe --- /dev/null +++ b/cmd/miqt-rcc/main.go @@ -0,0 +1,89 @@ +// miqt-rcc compiles a Qt resource XML file (*.qrc) to a binary resource file and +// creates a Go stub to load it. +package main + +import ( + "flag" + "fmt" + "go/format" + "io/ioutil" + "os" + "os/exec" + "strings" +) + +func main() { + + // Parse arguments + + input := flag.String("Input", "", "Path to .qrc input file") + outputRcc := flag.String("OutputRcc", "", "(Optional) Path to .rcc output file. If omitted, inferred from the input file path") + outputGo := flag.String("OutputGo", "", "(Optional) Path to .go output file. If omitted, interred from the input file path") + packageName := flag.String("Package", "main", "Package to use in generated Go files") + variableName := flag.String("VariableName", "_resourceRcc", "Temporary global variable name for loading embedded data") + flag.Parse() + + // Check if input file exists + + if _, err := os.Stat(*input); os.IsNotExist(err) { + fmt.Fprintf(os.Stderr, "Input file '%s' not found\n", *input) + os.Exit(1) + } + + // Fill in default output names, if not specified + + if *outputRcc == "" { + *outputRcc = strings.TrimSuffix(*input, `.qrc`) + `.rcc` + } + if *outputGo == "" { + *outputGo = strings.TrimSuffix(*input, `.qrc`) + `.go` + } + + // Compile qrc to binary resource file + + rccCmd := exec.Command(`rcc`, `--binary`, `-o`, *outputRcc, *input) + rccCmd.Stderr = os.Stderr + rccCmd.Stdout = os.Stdout + err := rccCmd.Run() + if err != nil { + fmt.Fprintf(os.Stderr, "rcc: %s\n", err.Error()) + os.Exit(1) + } + + // Create Go file that loads the resource + + goSrcData := ` +package ` + *packageName + ` + +//go:generate miqt-rcc "` + strings.Join(os.Args[1:], `" "`) + `" + +import ( + "embed" + + "github.com/mappu/miqt/qt" +) + +//go:embed ` + *outputRcc + ` +var ` + *variableName + ` []byte + +func init() { + _ = embed.FS{} + qt.QResource_RegisterResourceWithRccData(& ` + *variableName + `[0]) +} + +` + + outputData, err := format.Source([]byte(goSrcData)) + if err != nil { + panic(err) + } + + err = ioutil.WriteFile(*outputGo, outputData, 0644) + if err != nil { + fmt.Fprintf(os.Stderr, "Writing to '%s': %s\n", *outputGo, err.Error()) + os.Exit(1) + } + + fmt.Println("RCC OK") + os.Exit(0) +} diff --git a/cmd/miqt-rcc/miqt-rcc b/cmd/miqt-rcc/miqt-rcc new file mode 100755 index 00000000..7e956947 Binary files /dev/null and b/cmd/miqt-rcc/miqt-rcc differ diff --git a/cmd/miqt-rcc/miqt-rcc.sh b/cmd/miqt-rcc/miqt-rcc.sh deleted file mode 100755 index 229a27ac..00000000 --- a/cmd/miqt-rcc/miqt-rcc.sh +++ /dev/null @@ -1,55 +0,0 @@ -#!/bin/bash -# -# miqt-rcc compiles a Qt resource XML file (*.qrc) to a binary resource file and -# creates a Go stub to load it. - -set -eu - -main() { - - if [[ $# -lt 1 ]] ; then - echo "Usage: miqt-rcc.sh input.qrc [output.rcc] [output.go] [packageName] [variableName]" >&2 - exit 1 - fi - local ARG_INPUT_QRC="$1" - local ARG_DEST_RCC="${2:-$(basename -s .qrc "$ARG_INPUT_QRC").rcc}" - local ARG_DEST_GO="${3:-$(basename -s .rcc "$ARG_DEST_RCC").go}" - local ARG_PACKAGENAME="${4:-main}" - local ARG_VARIABLENAME="${5:-_resourceRcc}" - - if [[ ! -f ${ARG_INPUT_QRC} ]] ; then - echo "Input file ${ARG_INPUT_QRC} not found" >&2 - exit 1 - fi - - # Compile qrc to binary resource file - rcc --binary -o "${ARG_DEST_RCC}" "$ARG_INPUT_QRC" - - # Create Go file that loads the resource - cat > "${ARG_DEST_GO}" <(orientation)); } -QDialogButtonBox* QDialogButtonBox_new3(int buttons) { +QDialogButtonBox* QDialogButtonBox_new4(int buttons) { return new QDialogButtonBox(static_cast(buttons)); } -QDialogButtonBox* QDialogButtonBox_new4(int buttons, int orientation) { +QDialogButtonBox* QDialogButtonBox_new5(int buttons, int orientation) { return new QDialogButtonBox(static_cast(buttons), static_cast(orientation)); } -QDialogButtonBox* QDialogButtonBox_new5(QWidget* parent) { - return new QDialogButtonBox(parent); -} - QDialogButtonBox* QDialogButtonBox_new6(int orientation, QWidget* parent) { return new QDialogButtonBox(static_cast(orientation), parent); } diff --git a/qt/gen_qdialogbuttonbox.go b/qt/gen_qdialogbuttonbox.go index 268c78f5..a7f474e2 100644 --- a/qt/gen_qdialogbuttonbox.go +++ b/qt/gen_qdialogbuttonbox.go @@ -97,32 +97,32 @@ func UnsafeNewQDialogButtonBox(h unsafe.Pointer) *QDialogButtonBox { } // NewQDialogButtonBox constructs a new QDialogButtonBox object. -func NewQDialogButtonBox() *QDialogButtonBox { - ret := C.QDialogButtonBox_new() +func NewQDialogButtonBox(parent *QWidget) *QDialogButtonBox { + ret := C.QDialogButtonBox_new(parent.cPointer()) return newQDialogButtonBox(ret) } // NewQDialogButtonBox2 constructs a new QDialogButtonBox object. -func NewQDialogButtonBox2(orientation Orientation) *QDialogButtonBox { - ret := C.QDialogButtonBox_new2((C.int)(orientation)) +func NewQDialogButtonBox2() *QDialogButtonBox { + ret := C.QDialogButtonBox_new2() return newQDialogButtonBox(ret) } // NewQDialogButtonBox3 constructs a new QDialogButtonBox object. -func NewQDialogButtonBox3(buttons QDialogButtonBox__StandardButton) *QDialogButtonBox { - ret := C.QDialogButtonBox_new3((C.int)(buttons)) +func NewQDialogButtonBox3(orientation Orientation) *QDialogButtonBox { + ret := C.QDialogButtonBox_new3((C.int)(orientation)) return newQDialogButtonBox(ret) } // NewQDialogButtonBox4 constructs a new QDialogButtonBox object. -func NewQDialogButtonBox4(buttons QDialogButtonBox__StandardButton, orientation Orientation) *QDialogButtonBox { - ret := C.QDialogButtonBox_new4((C.int)(buttons), (C.int)(orientation)) +func NewQDialogButtonBox4(buttons QDialogButtonBox__StandardButton) *QDialogButtonBox { + ret := C.QDialogButtonBox_new4((C.int)(buttons)) return newQDialogButtonBox(ret) } // NewQDialogButtonBox5 constructs a new QDialogButtonBox object. -func NewQDialogButtonBox5(parent *QWidget) *QDialogButtonBox { - ret := C.QDialogButtonBox_new5(parent.cPointer()) +func NewQDialogButtonBox5(buttons QDialogButtonBox__StandardButton, orientation Orientation) *QDialogButtonBox { + ret := C.QDialogButtonBox_new5((C.int)(buttons), (C.int)(orientation)) return newQDialogButtonBox(ret) } diff --git a/qt/gen_qdialogbuttonbox.h b/qt/gen_qdialogbuttonbox.h index c3312923..0fea6c99 100644 --- a/qt/gen_qdialogbuttonbox.h +++ b/qt/gen_qdialogbuttonbox.h @@ -27,11 +27,11 @@ typedef struct QPushButton QPushButton; typedef struct QWidget QWidget; #endif -QDialogButtonBox* QDialogButtonBox_new(); -QDialogButtonBox* QDialogButtonBox_new2(int orientation); -QDialogButtonBox* QDialogButtonBox_new3(int buttons); -QDialogButtonBox* QDialogButtonBox_new4(int buttons, int orientation); -QDialogButtonBox* QDialogButtonBox_new5(QWidget* parent); +QDialogButtonBox* QDialogButtonBox_new(QWidget* parent); +QDialogButtonBox* QDialogButtonBox_new2(); +QDialogButtonBox* QDialogButtonBox_new3(int orientation); +QDialogButtonBox* QDialogButtonBox_new4(int buttons); +QDialogButtonBox* QDialogButtonBox_new5(int buttons, int orientation); QDialogButtonBox* QDialogButtonBox_new6(int orientation, QWidget* parent); QDialogButtonBox* QDialogButtonBox_new7(int buttons, QWidget* parent); QDialogButtonBox* QDialogButtonBox_new8(int buttons, int orientation, QWidget* parent); diff --git a/qt/gen_qdockwidget.cpp b/qt/gen_qdockwidget.cpp index 058f9035..07bd031f 100644 --- a/qt/gen_qdockwidget.cpp +++ b/qt/gen_qdockwidget.cpp @@ -9,29 +9,29 @@ #include "gen_qdockwidget.h" #include "_cgo_export.h" -QDockWidget* QDockWidget_new(struct miqt_string title) { +QDockWidget* QDockWidget_new(QWidget* parent) { + return new QDockWidget(parent); +} + +QDockWidget* QDockWidget_new2(struct miqt_string title) { QString title_QString = QString::fromUtf8(title.data, title.len); return new QDockWidget(title_QString); } -QDockWidget* QDockWidget_new2() { +QDockWidget* QDockWidget_new3() { return new QDockWidget(); } -QDockWidget* QDockWidget_new3(struct miqt_string title, QWidget* parent) { +QDockWidget* QDockWidget_new4(struct miqt_string title, QWidget* parent) { QString title_QString = QString::fromUtf8(title.data, title.len); return new QDockWidget(title_QString, parent); } -QDockWidget* QDockWidget_new4(struct miqt_string title, QWidget* parent, int flags) { +QDockWidget* QDockWidget_new5(struct miqt_string title, QWidget* parent, int flags) { QString title_QString = QString::fromUtf8(title.data, title.len); return new QDockWidget(title_QString, parent, static_cast(flags)); } -QDockWidget* QDockWidget_new5(QWidget* parent) { - return new QDockWidget(parent); -} - QDockWidget* QDockWidget_new6(QWidget* parent, int flags) { return new QDockWidget(parent, static_cast(flags)); } diff --git a/qt/gen_qdockwidget.go b/qt/gen_qdockwidget.go index 7889cba4..fd3f3aca 100644 --- a/qt/gen_qdockwidget.go +++ b/qt/gen_qdockwidget.go @@ -58,44 +58,44 @@ func UnsafeNewQDockWidget(h unsafe.Pointer) *QDockWidget { } // NewQDockWidget constructs a new QDockWidget object. -func NewQDockWidget(title string) *QDockWidget { +func NewQDockWidget(parent *QWidget) *QDockWidget { + ret := C.QDockWidget_new(parent.cPointer()) + return newQDockWidget(ret) +} + +// NewQDockWidget2 constructs a new QDockWidget object. +func NewQDockWidget2(title string) *QDockWidget { title_ms := C.struct_miqt_string{} title_ms.data = C.CString(title) title_ms.len = C.size_t(len(title)) defer C.free(unsafe.Pointer(title_ms.data)) - ret := C.QDockWidget_new(title_ms) + ret := C.QDockWidget_new2(title_ms) return newQDockWidget(ret) } -// NewQDockWidget2 constructs a new QDockWidget object. -func NewQDockWidget2() *QDockWidget { - ret := C.QDockWidget_new2() +// NewQDockWidget3 constructs a new QDockWidget object. +func NewQDockWidget3() *QDockWidget { + ret := C.QDockWidget_new3() return newQDockWidget(ret) } -// NewQDockWidget3 constructs a new QDockWidget object. -func NewQDockWidget3(title string, parent *QWidget) *QDockWidget { +// NewQDockWidget4 constructs a new QDockWidget object. +func NewQDockWidget4(title string, parent *QWidget) *QDockWidget { title_ms := C.struct_miqt_string{} title_ms.data = C.CString(title) title_ms.len = C.size_t(len(title)) defer C.free(unsafe.Pointer(title_ms.data)) - ret := C.QDockWidget_new3(title_ms, parent.cPointer()) + ret := C.QDockWidget_new4(title_ms, parent.cPointer()) return newQDockWidget(ret) } -// NewQDockWidget4 constructs a new QDockWidget object. -func NewQDockWidget4(title string, parent *QWidget, flags WindowType) *QDockWidget { +// NewQDockWidget5 constructs a new QDockWidget object. +func NewQDockWidget5(title string, parent *QWidget, flags WindowType) *QDockWidget { title_ms := C.struct_miqt_string{} title_ms.data = C.CString(title) title_ms.len = C.size_t(len(title)) defer C.free(unsafe.Pointer(title_ms.data)) - ret := C.QDockWidget_new4(title_ms, parent.cPointer(), (C.int)(flags)) - return newQDockWidget(ret) -} - -// NewQDockWidget5 constructs a new QDockWidget object. -func NewQDockWidget5(parent *QWidget) *QDockWidget { - ret := C.QDockWidget_new5(parent.cPointer()) + ret := C.QDockWidget_new5(title_ms, parent.cPointer(), (C.int)(flags)) return newQDockWidget(ret) } diff --git a/qt/gen_qdockwidget.h b/qt/gen_qdockwidget.h index 7f71cb54..1a538fa0 100644 --- a/qt/gen_qdockwidget.h +++ b/qt/gen_qdockwidget.h @@ -25,11 +25,11 @@ typedef struct QMetaObject QMetaObject; typedef struct QWidget QWidget; #endif -QDockWidget* QDockWidget_new(struct miqt_string title); -QDockWidget* QDockWidget_new2(); -QDockWidget* QDockWidget_new3(struct miqt_string title, QWidget* parent); -QDockWidget* QDockWidget_new4(struct miqt_string title, QWidget* parent, int flags); -QDockWidget* QDockWidget_new5(QWidget* parent); +QDockWidget* QDockWidget_new(QWidget* parent); +QDockWidget* QDockWidget_new2(struct miqt_string title); +QDockWidget* QDockWidget_new3(); +QDockWidget* QDockWidget_new4(struct miqt_string title, QWidget* parent); +QDockWidget* QDockWidget_new5(struct miqt_string title, QWidget* parent, int flags); QDockWidget* QDockWidget_new6(QWidget* parent, int flags); QMetaObject* QDockWidget_MetaObject(const QDockWidget* self); void* QDockWidget_Metacast(QDockWidget* self, const char* param1); diff --git a/qt/gen_qerrormessage.cpp b/qt/gen_qerrormessage.cpp index 207edbbd..b0e21a52 100644 --- a/qt/gen_qerrormessage.cpp +++ b/qt/gen_qerrormessage.cpp @@ -8,12 +8,12 @@ #include "gen_qerrormessage.h" #include "_cgo_export.h" -QErrorMessage* QErrorMessage_new() { - return new QErrorMessage(); +QErrorMessage* QErrorMessage_new(QWidget* parent) { + return new QErrorMessage(parent); } -QErrorMessage* QErrorMessage_new2(QWidget* parent) { - return new QErrorMessage(parent); +QErrorMessage* QErrorMessage_new2() { + return new QErrorMessage(); } QMetaObject* QErrorMessage_MetaObject(const QErrorMessage* self) { diff --git a/qt/gen_qerrormessage.go b/qt/gen_qerrormessage.go index a2467c1e..8f1efd0d 100644 --- a/qt/gen_qerrormessage.go +++ b/qt/gen_qerrormessage.go @@ -44,14 +44,14 @@ func UnsafeNewQErrorMessage(h unsafe.Pointer) *QErrorMessage { } // NewQErrorMessage constructs a new QErrorMessage object. -func NewQErrorMessage() *QErrorMessage { - ret := C.QErrorMessage_new() +func NewQErrorMessage(parent *QWidget) *QErrorMessage { + ret := C.QErrorMessage_new(parent.cPointer()) return newQErrorMessage(ret) } // NewQErrorMessage2 constructs a new QErrorMessage object. -func NewQErrorMessage2(parent *QWidget) *QErrorMessage { - ret := C.QErrorMessage_new2(parent.cPointer()) +func NewQErrorMessage2() *QErrorMessage { + ret := C.QErrorMessage_new2() return newQErrorMessage(ret) } diff --git a/qt/gen_qerrormessage.h b/qt/gen_qerrormessage.h index 4f7356d6..75ce7c75 100644 --- a/qt/gen_qerrormessage.h +++ b/qt/gen_qerrormessage.h @@ -23,8 +23,8 @@ typedef struct QMetaObject QMetaObject; typedef struct QWidget QWidget; #endif -QErrorMessage* QErrorMessage_new(); -QErrorMessage* QErrorMessage_new2(QWidget* parent); +QErrorMessage* QErrorMessage_new(QWidget* parent); +QErrorMessage* QErrorMessage_new2(); QMetaObject* QErrorMessage_MetaObject(const QErrorMessage* self); void* QErrorMessage_Metacast(QErrorMessage* self, const char* param1); struct miqt_string QErrorMessage_Tr(const char* s); diff --git a/qt/gen_qfiledialog.cpp b/qt/gen_qfiledialog.cpp index 49d01e54..9f424c24 100644 --- a/qt/gen_qfiledialog.cpp +++ b/qt/gen_qfiledialog.cpp @@ -15,16 +15,16 @@ #include "gen_qfiledialog.h" #include "_cgo_export.h" -QFileDialog* QFileDialog_new(QWidget* parent, int f) { - return new QFileDialog(parent, static_cast(f)); +QFileDialog* QFileDialog_new(QWidget* parent) { + return new QFileDialog(parent); } -QFileDialog* QFileDialog_new2() { - return new QFileDialog(); +QFileDialog* QFileDialog_new2(QWidget* parent, int f) { + return new QFileDialog(parent, static_cast(f)); } -QFileDialog* QFileDialog_new3(QWidget* parent) { - return new QFileDialog(parent); +QFileDialog* QFileDialog_new3() { + return new QFileDialog(); } QFileDialog* QFileDialog_new4(QWidget* parent, struct miqt_string caption) { diff --git a/qt/gen_qfiledialog.go b/qt/gen_qfiledialog.go index 298d8214..9221270b 100644 --- a/qt/gen_qfiledialog.go +++ b/qt/gen_qfiledialog.go @@ -92,20 +92,20 @@ func UnsafeNewQFileDialog(h unsafe.Pointer) *QFileDialog { } // NewQFileDialog constructs a new QFileDialog object. -func NewQFileDialog(parent *QWidget, f WindowType) *QFileDialog { - ret := C.QFileDialog_new(parent.cPointer(), (C.int)(f)) +func NewQFileDialog(parent *QWidget) *QFileDialog { + ret := C.QFileDialog_new(parent.cPointer()) return newQFileDialog(ret) } // NewQFileDialog2 constructs a new QFileDialog object. -func NewQFileDialog2() *QFileDialog { - ret := C.QFileDialog_new2() +func NewQFileDialog2(parent *QWidget, f WindowType) *QFileDialog { + ret := C.QFileDialog_new2(parent.cPointer(), (C.int)(f)) return newQFileDialog(ret) } // NewQFileDialog3 constructs a new QFileDialog object. -func NewQFileDialog3(parent *QWidget) *QFileDialog { - ret := C.QFileDialog_new3(parent.cPointer()) +func NewQFileDialog3() *QFileDialog { + ret := C.QFileDialog_new3() return newQFileDialog(ret) } diff --git a/qt/gen_qfiledialog.h b/qt/gen_qfiledialog.h index 096c002e..8cd7bc13 100644 --- a/qt/gen_qfiledialog.h +++ b/qt/gen_qfiledialog.h @@ -35,9 +35,9 @@ typedef struct QUrl QUrl; typedef struct QWidget QWidget; #endif -QFileDialog* QFileDialog_new(QWidget* parent, int f); -QFileDialog* QFileDialog_new2(); -QFileDialog* QFileDialog_new3(QWidget* parent); +QFileDialog* QFileDialog_new(QWidget* parent); +QFileDialog* QFileDialog_new2(QWidget* parent, int f); +QFileDialog* QFileDialog_new3(); QFileDialog* QFileDialog_new4(QWidget* parent, struct miqt_string caption); QFileDialog* QFileDialog_new5(QWidget* parent, struct miqt_string caption, struct miqt_string directory); QFileDialog* QFileDialog_new6(QWidget* parent, struct miqt_string caption, struct miqt_string directory, struct miqt_string filter); diff --git a/qt/gen_qfocusframe.cpp b/qt/gen_qfocusframe.cpp index 9138603e..f8b511e8 100644 --- a/qt/gen_qfocusframe.cpp +++ b/qt/gen_qfocusframe.cpp @@ -8,12 +8,12 @@ #include "gen_qfocusframe.h" #include "_cgo_export.h" -QFocusFrame* QFocusFrame_new() { - return new QFocusFrame(); +QFocusFrame* QFocusFrame_new(QWidget* parent) { + return new QFocusFrame(parent); } -QFocusFrame* QFocusFrame_new2(QWidget* parent) { - return new QFocusFrame(parent); +QFocusFrame* QFocusFrame_new2() { + return new QFocusFrame(); } QMetaObject* QFocusFrame_MetaObject(const QFocusFrame* self) { diff --git a/qt/gen_qfocusframe.go b/qt/gen_qfocusframe.go index 8998d277..572de804 100644 --- a/qt/gen_qfocusframe.go +++ b/qt/gen_qfocusframe.go @@ -44,14 +44,14 @@ func UnsafeNewQFocusFrame(h unsafe.Pointer) *QFocusFrame { } // NewQFocusFrame constructs a new QFocusFrame object. -func NewQFocusFrame() *QFocusFrame { - ret := C.QFocusFrame_new() +func NewQFocusFrame(parent *QWidget) *QFocusFrame { + ret := C.QFocusFrame_new(parent.cPointer()) return newQFocusFrame(ret) } // NewQFocusFrame2 constructs a new QFocusFrame object. -func NewQFocusFrame2(parent *QWidget) *QFocusFrame { - ret := C.QFocusFrame_new2(parent.cPointer()) +func NewQFocusFrame2() *QFocusFrame { + ret := C.QFocusFrame_new2() return newQFocusFrame(ret) } diff --git a/qt/gen_qfocusframe.h b/qt/gen_qfocusframe.h index 5daa2165..2e9f1bba 100644 --- a/qt/gen_qfocusframe.h +++ b/qt/gen_qfocusframe.h @@ -23,8 +23,8 @@ typedef struct QMetaObject QMetaObject; typedef struct QWidget QWidget; #endif -QFocusFrame* QFocusFrame_new(); -QFocusFrame* QFocusFrame_new2(QWidget* parent); +QFocusFrame* QFocusFrame_new(QWidget* parent); +QFocusFrame* QFocusFrame_new2(); QMetaObject* QFocusFrame_MetaObject(const QFocusFrame* self); void* QFocusFrame_Metacast(QFocusFrame* self, const char* param1); struct miqt_string QFocusFrame_Tr(const char* s); diff --git a/qt/gen_qfontcombobox.cpp b/qt/gen_qfontcombobox.cpp index 623115de..3f984045 100644 --- a/qt/gen_qfontcombobox.cpp +++ b/qt/gen_qfontcombobox.cpp @@ -10,12 +10,12 @@ #include "gen_qfontcombobox.h" #include "_cgo_export.h" -QFontComboBox* QFontComboBox_new() { - return new QFontComboBox(); +QFontComboBox* QFontComboBox_new(QWidget* parent) { + return new QFontComboBox(parent); } -QFontComboBox* QFontComboBox_new2(QWidget* parent) { - return new QFontComboBox(parent); +QFontComboBox* QFontComboBox_new2() { + return new QFontComboBox(); } QMetaObject* QFontComboBox_MetaObject(const QFontComboBox* self) { diff --git a/qt/gen_qfontcombobox.go b/qt/gen_qfontcombobox.go index 52f0d5c4..dc7ba15c 100644 --- a/qt/gen_qfontcombobox.go +++ b/qt/gen_qfontcombobox.go @@ -55,14 +55,14 @@ func UnsafeNewQFontComboBox(h unsafe.Pointer) *QFontComboBox { } // NewQFontComboBox constructs a new QFontComboBox object. -func NewQFontComboBox() *QFontComboBox { - ret := C.QFontComboBox_new() +func NewQFontComboBox(parent *QWidget) *QFontComboBox { + ret := C.QFontComboBox_new(parent.cPointer()) return newQFontComboBox(ret) } // NewQFontComboBox2 constructs a new QFontComboBox object. -func NewQFontComboBox2(parent *QWidget) *QFontComboBox { - ret := C.QFontComboBox_new2(parent.cPointer()) +func NewQFontComboBox2() *QFontComboBox { + ret := C.QFontComboBox_new2() return newQFontComboBox(ret) } diff --git a/qt/gen_qfontcombobox.h b/qt/gen_qfontcombobox.h index f149e1d4..bfc477c6 100644 --- a/qt/gen_qfontcombobox.h +++ b/qt/gen_qfontcombobox.h @@ -27,8 +27,8 @@ typedef struct QSize QSize; typedef struct QWidget QWidget; #endif -QFontComboBox* QFontComboBox_new(); -QFontComboBox* QFontComboBox_new2(QWidget* parent); +QFontComboBox* QFontComboBox_new(QWidget* parent); +QFontComboBox* QFontComboBox_new2(); QMetaObject* QFontComboBox_MetaObject(const QFontComboBox* self); void* QFontComboBox_Metacast(QFontComboBox* self, const char* param1); struct miqt_string QFontComboBox_Tr(const char* s); diff --git a/qt/gen_qfontdialog.cpp b/qt/gen_qfontdialog.cpp index 656087ba..99a86f16 100644 --- a/qt/gen_qfontdialog.cpp +++ b/qt/gen_qfontdialog.cpp @@ -9,16 +9,16 @@ #include "gen_qfontdialog.h" #include "_cgo_export.h" -QFontDialog* QFontDialog_new() { - return new QFontDialog(); +QFontDialog* QFontDialog_new(QWidget* parent) { + return new QFontDialog(parent); } -QFontDialog* QFontDialog_new2(QFont* initial) { - return new QFontDialog(*initial); +QFontDialog* QFontDialog_new2() { + return new QFontDialog(); } -QFontDialog* QFontDialog_new3(QWidget* parent) { - return new QFontDialog(parent); +QFontDialog* QFontDialog_new3(QFont* initial) { + return new QFontDialog(*initial); } QFontDialog* QFontDialog_new4(QFont* initial, QWidget* parent) { diff --git a/qt/gen_qfontdialog.go b/qt/gen_qfontdialog.go index 68d237c3..c12e5c91 100644 --- a/qt/gen_qfontdialog.go +++ b/qt/gen_qfontdialog.go @@ -56,20 +56,20 @@ func UnsafeNewQFontDialog(h unsafe.Pointer) *QFontDialog { } // NewQFontDialog constructs a new QFontDialog object. -func NewQFontDialog() *QFontDialog { - ret := C.QFontDialog_new() +func NewQFontDialog(parent *QWidget) *QFontDialog { + ret := C.QFontDialog_new(parent.cPointer()) return newQFontDialog(ret) } // NewQFontDialog2 constructs a new QFontDialog object. -func NewQFontDialog2(initial *QFont) *QFontDialog { - ret := C.QFontDialog_new2(initial.cPointer()) +func NewQFontDialog2() *QFontDialog { + ret := C.QFontDialog_new2() return newQFontDialog(ret) } // NewQFontDialog3 constructs a new QFontDialog object. -func NewQFontDialog3(parent *QWidget) *QFontDialog { - ret := C.QFontDialog_new3(parent.cPointer()) +func NewQFontDialog3(initial *QFont) *QFontDialog { + ret := C.QFontDialog_new3(initial.cPointer()) return newQFontDialog(ret) } diff --git a/qt/gen_qfontdialog.h b/qt/gen_qfontdialog.h index 734efe5d..150eaa8e 100644 --- a/qt/gen_qfontdialog.h +++ b/qt/gen_qfontdialog.h @@ -25,9 +25,9 @@ typedef struct QMetaObject QMetaObject; typedef struct QWidget QWidget; #endif -QFontDialog* QFontDialog_new(); -QFontDialog* QFontDialog_new2(QFont* initial); -QFontDialog* QFontDialog_new3(QWidget* parent); +QFontDialog* QFontDialog_new(QWidget* parent); +QFontDialog* QFontDialog_new2(); +QFontDialog* QFontDialog_new3(QFont* initial); QFontDialog* QFontDialog_new4(QFont* initial, QWidget* parent); QMetaObject* QFontDialog_MetaObject(const QFontDialog* self); void* QFontDialog_Metacast(QFontDialog* self, const char* param1); diff --git a/qt/gen_qformlayout.cpp b/qt/gen_qformlayout.cpp index b885ebc8..40ad3022 100644 --- a/qt/gen_qformlayout.cpp +++ b/qt/gen_qformlayout.cpp @@ -13,12 +13,12 @@ #include "gen_qformlayout.h" #include "_cgo_export.h" -QFormLayout* QFormLayout_new() { - return new QFormLayout(); +QFormLayout* QFormLayout_new(QWidget* parent) { + return new QFormLayout(parent); } -QFormLayout* QFormLayout_new2(QWidget* parent) { - return new QFormLayout(parent); +QFormLayout* QFormLayout_new2() { + return new QFormLayout(); } QMetaObject* QFormLayout_MetaObject(const QFormLayout* self) { diff --git a/qt/gen_qformlayout.go b/qt/gen_qformlayout.go index 05c9a86e..ff6cf7e5 100644 --- a/qt/gen_qformlayout.go +++ b/qt/gen_qformlayout.go @@ -68,14 +68,14 @@ func UnsafeNewQFormLayout(h unsafe.Pointer) *QFormLayout { } // NewQFormLayout constructs a new QFormLayout object. -func NewQFormLayout() *QFormLayout { - ret := C.QFormLayout_new() +func NewQFormLayout(parent *QWidget) *QFormLayout { + ret := C.QFormLayout_new(parent.cPointer()) return newQFormLayout(ret) } // NewQFormLayout2 constructs a new QFormLayout object. -func NewQFormLayout2(parent *QWidget) *QFormLayout { - ret := C.QFormLayout_new2(parent.cPointer()) +func NewQFormLayout2() *QFormLayout { + ret := C.QFormLayout_new2() return newQFormLayout(ret) } diff --git a/qt/gen_qformlayout.h b/qt/gen_qformlayout.h index 9f91cd09..dccb2a7b 100644 --- a/qt/gen_qformlayout.h +++ b/qt/gen_qformlayout.h @@ -37,8 +37,8 @@ typedef struct QSize QSize; typedef struct QWidget QWidget; #endif -QFormLayout* QFormLayout_new(); -QFormLayout* QFormLayout_new2(QWidget* parent); +QFormLayout* QFormLayout_new(QWidget* parent); +QFormLayout* QFormLayout_new2(); QMetaObject* QFormLayout_MetaObject(const QFormLayout* self); void* QFormLayout_Metacast(QFormLayout* self, const char* param1); struct miqt_string QFormLayout_Tr(const char* s); diff --git a/qt/gen_qframe.cpp b/qt/gen_qframe.cpp index 1c108a6a..405a849f 100644 --- a/qt/gen_qframe.cpp +++ b/qt/gen_qframe.cpp @@ -10,12 +10,12 @@ #include "gen_qframe.h" #include "_cgo_export.h" -QFrame* QFrame_new() { - return new QFrame(); +QFrame* QFrame_new(QWidget* parent) { + return new QFrame(parent); } -QFrame* QFrame_new2(QWidget* parent) { - return new QFrame(parent); +QFrame* QFrame_new2() { + return new QFrame(); } QFrame* QFrame_new3(QWidget* parent, int f) { diff --git a/qt/gen_qframe.go b/qt/gen_qframe.go index 2ba19a0a..dabc71ce 100644 --- a/qt/gen_qframe.go +++ b/qt/gen_qframe.go @@ -71,14 +71,14 @@ func UnsafeNewQFrame(h unsafe.Pointer) *QFrame { } // NewQFrame constructs a new QFrame object. -func NewQFrame() *QFrame { - ret := C.QFrame_new() +func NewQFrame(parent *QWidget) *QFrame { + ret := C.QFrame_new(parent.cPointer()) return newQFrame(ret) } // NewQFrame2 constructs a new QFrame object. -func NewQFrame2(parent *QWidget) *QFrame { - ret := C.QFrame_new2(parent.cPointer()) +func NewQFrame2() *QFrame { + ret := C.QFrame_new2() return newQFrame(ret) } diff --git a/qt/gen_qframe.h b/qt/gen_qframe.h index afca8485..14d8570e 100644 --- a/qt/gen_qframe.h +++ b/qt/gen_qframe.h @@ -27,8 +27,8 @@ typedef struct QSize QSize; typedef struct QWidget QWidget; #endif -QFrame* QFrame_new(); -QFrame* QFrame_new2(QWidget* parent); +QFrame* QFrame_new(QWidget* parent); +QFrame* QFrame_new2(); QFrame* QFrame_new3(QWidget* parent, int f); QMetaObject* QFrame_MetaObject(const QFrame* self); void* QFrame_Metacast(QFrame* self, const char* param1); diff --git a/qt/gen_qgraphicsview.cpp b/qt/gen_qgraphicsview.cpp index 9f2957c5..117b0941 100644 --- a/qt/gen_qgraphicsview.cpp +++ b/qt/gen_qgraphicsview.cpp @@ -22,16 +22,16 @@ #include "gen_qgraphicsview.h" #include "_cgo_export.h" -QGraphicsView* QGraphicsView_new() { - return new QGraphicsView(); +QGraphicsView* QGraphicsView_new(QWidget* parent) { + return new QGraphicsView(parent); } -QGraphicsView* QGraphicsView_new2(QGraphicsScene* scene) { - return new QGraphicsView(scene); +QGraphicsView* QGraphicsView_new2() { + return new QGraphicsView(); } -QGraphicsView* QGraphicsView_new3(QWidget* parent) { - return new QGraphicsView(parent); +QGraphicsView* QGraphicsView_new3(QGraphicsScene* scene) { + return new QGraphicsView(scene); } QGraphicsView* QGraphicsView_new4(QGraphicsScene* scene, QWidget* parent) { diff --git a/qt/gen_qgraphicsview.go b/qt/gen_qgraphicsview.go index 50865048..ae00cc3a 100644 --- a/qt/gen_qgraphicsview.go +++ b/qt/gen_qgraphicsview.go @@ -87,20 +87,20 @@ func UnsafeNewQGraphicsView(h unsafe.Pointer) *QGraphicsView { } // NewQGraphicsView constructs a new QGraphicsView object. -func NewQGraphicsView() *QGraphicsView { - ret := C.QGraphicsView_new() +func NewQGraphicsView(parent *QWidget) *QGraphicsView { + ret := C.QGraphicsView_new(parent.cPointer()) return newQGraphicsView(ret) } // NewQGraphicsView2 constructs a new QGraphicsView object. -func NewQGraphicsView2(scene *QGraphicsScene) *QGraphicsView { - ret := C.QGraphicsView_new2(scene.cPointer()) +func NewQGraphicsView2() *QGraphicsView { + ret := C.QGraphicsView_new2() return newQGraphicsView(ret) } // NewQGraphicsView3 constructs a new QGraphicsView object. -func NewQGraphicsView3(parent *QWidget) *QGraphicsView { - ret := C.QGraphicsView_new3(parent.cPointer()) +func NewQGraphicsView3(scene *QGraphicsScene) *QGraphicsView { + ret := C.QGraphicsView_new3(scene.cPointer()) return newQGraphicsView(ret) } diff --git a/qt/gen_qgraphicsview.h b/qt/gen_qgraphicsview.h index 5e20e248..83fdeacc 100644 --- a/qt/gen_qgraphicsview.h +++ b/qt/gen_qgraphicsview.h @@ -49,9 +49,9 @@ typedef struct QVariant QVariant; typedef struct QWidget QWidget; #endif -QGraphicsView* QGraphicsView_new(); -QGraphicsView* QGraphicsView_new2(QGraphicsScene* scene); -QGraphicsView* QGraphicsView_new3(QWidget* parent); +QGraphicsView* QGraphicsView_new(QWidget* parent); +QGraphicsView* QGraphicsView_new2(); +QGraphicsView* QGraphicsView_new3(QGraphicsScene* scene); QGraphicsView* QGraphicsView_new4(QGraphicsScene* scene, QWidget* parent); QMetaObject* QGraphicsView_MetaObject(const QGraphicsView* self); void* QGraphicsView_Metacast(QGraphicsView* self, const char* param1); diff --git a/qt/gen_qgroupbox.cpp b/qt/gen_qgroupbox.cpp index d845d940..6631ff6f 100644 --- a/qt/gen_qgroupbox.cpp +++ b/qt/gen_qgroupbox.cpp @@ -9,19 +9,19 @@ #include "gen_qgroupbox.h" #include "_cgo_export.h" -QGroupBox* QGroupBox_new() { +QGroupBox* QGroupBox_new(QWidget* parent) { + return new QGroupBox(parent); +} + +QGroupBox* QGroupBox_new2() { return new QGroupBox(); } -QGroupBox* QGroupBox_new2(struct miqt_string title) { +QGroupBox* QGroupBox_new3(struct miqt_string title) { QString title_QString = QString::fromUtf8(title.data, title.len); return new QGroupBox(title_QString); } -QGroupBox* QGroupBox_new3(QWidget* parent) { - return new QGroupBox(parent); -} - QGroupBox* QGroupBox_new4(struct miqt_string title, QWidget* parent) { QString title_QString = QString::fromUtf8(title.data, title.len); return new QGroupBox(title_QString, parent); diff --git a/qt/gen_qgroupbox.go b/qt/gen_qgroupbox.go index c92bb8d9..eaf7d1a2 100644 --- a/qt/gen_qgroupbox.go +++ b/qt/gen_qgroupbox.go @@ -45,24 +45,24 @@ func UnsafeNewQGroupBox(h unsafe.Pointer) *QGroupBox { } // NewQGroupBox constructs a new QGroupBox object. -func NewQGroupBox() *QGroupBox { - ret := C.QGroupBox_new() +func NewQGroupBox(parent *QWidget) *QGroupBox { + ret := C.QGroupBox_new(parent.cPointer()) return newQGroupBox(ret) } // NewQGroupBox2 constructs a new QGroupBox object. -func NewQGroupBox2(title string) *QGroupBox { - title_ms := C.struct_miqt_string{} - title_ms.data = C.CString(title) - title_ms.len = C.size_t(len(title)) - defer C.free(unsafe.Pointer(title_ms.data)) - ret := C.QGroupBox_new2(title_ms) +func NewQGroupBox2() *QGroupBox { + ret := C.QGroupBox_new2() return newQGroupBox(ret) } // NewQGroupBox3 constructs a new QGroupBox object. -func NewQGroupBox3(parent *QWidget) *QGroupBox { - ret := C.QGroupBox_new3(parent.cPointer()) +func NewQGroupBox3(title string) *QGroupBox { + title_ms := C.struct_miqt_string{} + title_ms.data = C.CString(title) + title_ms.len = C.size_t(len(title)) + defer C.free(unsafe.Pointer(title_ms.data)) + ret := C.QGroupBox_new3(title_ms) return newQGroupBox(ret) } diff --git a/qt/gen_qgroupbox.h b/qt/gen_qgroupbox.h index 8a91a34a..78cc328c 100644 --- a/qt/gen_qgroupbox.h +++ b/qt/gen_qgroupbox.h @@ -25,9 +25,9 @@ typedef struct QSize QSize; typedef struct QWidget QWidget; #endif -QGroupBox* QGroupBox_new(); -QGroupBox* QGroupBox_new2(struct miqt_string title); -QGroupBox* QGroupBox_new3(QWidget* parent); +QGroupBox* QGroupBox_new(QWidget* parent); +QGroupBox* QGroupBox_new2(); +QGroupBox* QGroupBox_new3(struct miqt_string title); QGroupBox* QGroupBox_new4(struct miqt_string title, QWidget* parent); QMetaObject* QGroupBox_MetaObject(const QGroupBox* self); void* QGroupBox_Metacast(QGroupBox* self, const char* param1); diff --git a/qt/gen_qinputdialog.cpp b/qt/gen_qinputdialog.cpp index 6b8e32b9..ea89cffa 100644 --- a/qt/gen_qinputdialog.cpp +++ b/qt/gen_qinputdialog.cpp @@ -10,12 +10,12 @@ #include "gen_qinputdialog.h" #include "_cgo_export.h" -QInputDialog* QInputDialog_new() { - return new QInputDialog(); +QInputDialog* QInputDialog_new(QWidget* parent) { + return new QInputDialog(parent); } -QInputDialog* QInputDialog_new2(QWidget* parent) { - return new QInputDialog(parent); +QInputDialog* QInputDialog_new2() { + return new QInputDialog(); } QInputDialog* QInputDialog_new3(QWidget* parent, int flags) { diff --git a/qt/gen_qinputdialog.go b/qt/gen_qinputdialog.go index b035a995..9d804899 100644 --- a/qt/gen_qinputdialog.go +++ b/qt/gen_qinputdialog.go @@ -61,14 +61,14 @@ func UnsafeNewQInputDialog(h unsafe.Pointer) *QInputDialog { } // NewQInputDialog constructs a new QInputDialog object. -func NewQInputDialog() *QInputDialog { - ret := C.QInputDialog_new() +func NewQInputDialog(parent *QWidget) *QInputDialog { + ret := C.QInputDialog_new(parent.cPointer()) return newQInputDialog(ret) } // NewQInputDialog2 constructs a new QInputDialog object. -func NewQInputDialog2(parent *QWidget) *QInputDialog { - ret := C.QInputDialog_new2(parent.cPointer()) +func NewQInputDialog2() *QInputDialog { + ret := C.QInputDialog_new2() return newQInputDialog(ret) } diff --git a/qt/gen_qinputdialog.h b/qt/gen_qinputdialog.h index 9a1dc8bf..df08543b 100644 --- a/qt/gen_qinputdialog.h +++ b/qt/gen_qinputdialog.h @@ -25,8 +25,8 @@ typedef struct QSize QSize; typedef struct QWidget QWidget; #endif -QInputDialog* QInputDialog_new(); -QInputDialog* QInputDialog_new2(QWidget* parent); +QInputDialog* QInputDialog_new(QWidget* parent); +QInputDialog* QInputDialog_new2(); QInputDialog* QInputDialog_new3(QWidget* parent, int flags); QMetaObject* QInputDialog_MetaObject(const QInputDialog* self); void* QInputDialog_Metacast(QInputDialog* self, const char* param1); diff --git a/qt/gen_qkeysequenceedit.cpp b/qt/gen_qkeysequenceedit.cpp index 6e220596..74ac1e52 100644 --- a/qt/gen_qkeysequenceedit.cpp +++ b/qt/gen_qkeysequenceedit.cpp @@ -9,16 +9,16 @@ #include "gen_qkeysequenceedit.h" #include "_cgo_export.h" -QKeySequenceEdit* QKeySequenceEdit_new() { - return new QKeySequenceEdit(); +QKeySequenceEdit* QKeySequenceEdit_new(QWidget* parent) { + return new QKeySequenceEdit(parent); } -QKeySequenceEdit* QKeySequenceEdit_new2(QKeySequence* keySequence) { - return new QKeySequenceEdit(*keySequence); +QKeySequenceEdit* QKeySequenceEdit_new2() { + return new QKeySequenceEdit(); } -QKeySequenceEdit* QKeySequenceEdit_new3(QWidget* parent) { - return new QKeySequenceEdit(parent); +QKeySequenceEdit* QKeySequenceEdit_new3(QKeySequence* keySequence) { + return new QKeySequenceEdit(*keySequence); } QKeySequenceEdit* QKeySequenceEdit_new4(QKeySequence* keySequence, QWidget* parent) { diff --git a/qt/gen_qkeysequenceedit.go b/qt/gen_qkeysequenceedit.go index 3431dfb9..6e56693f 100644 --- a/qt/gen_qkeysequenceedit.go +++ b/qt/gen_qkeysequenceedit.go @@ -45,20 +45,20 @@ func UnsafeNewQKeySequenceEdit(h unsafe.Pointer) *QKeySequenceEdit { } // NewQKeySequenceEdit constructs a new QKeySequenceEdit object. -func NewQKeySequenceEdit() *QKeySequenceEdit { - ret := C.QKeySequenceEdit_new() +func NewQKeySequenceEdit(parent *QWidget) *QKeySequenceEdit { + ret := C.QKeySequenceEdit_new(parent.cPointer()) return newQKeySequenceEdit(ret) } // NewQKeySequenceEdit2 constructs a new QKeySequenceEdit object. -func NewQKeySequenceEdit2(keySequence *QKeySequence) *QKeySequenceEdit { - ret := C.QKeySequenceEdit_new2(keySequence.cPointer()) +func NewQKeySequenceEdit2() *QKeySequenceEdit { + ret := C.QKeySequenceEdit_new2() return newQKeySequenceEdit(ret) } // NewQKeySequenceEdit3 constructs a new QKeySequenceEdit object. -func NewQKeySequenceEdit3(parent *QWidget) *QKeySequenceEdit { - ret := C.QKeySequenceEdit_new3(parent.cPointer()) +func NewQKeySequenceEdit3(keySequence *QKeySequence) *QKeySequenceEdit { + ret := C.QKeySequenceEdit_new3(keySequence.cPointer()) return newQKeySequenceEdit(ret) } diff --git a/qt/gen_qkeysequenceedit.h b/qt/gen_qkeysequenceedit.h index 0b0d7587..74b3b730 100644 --- a/qt/gen_qkeysequenceedit.h +++ b/qt/gen_qkeysequenceedit.h @@ -25,9 +25,9 @@ typedef struct QMetaObject QMetaObject; typedef struct QWidget QWidget; #endif -QKeySequenceEdit* QKeySequenceEdit_new(); -QKeySequenceEdit* QKeySequenceEdit_new2(QKeySequence* keySequence); -QKeySequenceEdit* QKeySequenceEdit_new3(QWidget* parent); +QKeySequenceEdit* QKeySequenceEdit_new(QWidget* parent); +QKeySequenceEdit* QKeySequenceEdit_new2(); +QKeySequenceEdit* QKeySequenceEdit_new3(QKeySequence* keySequence); QKeySequenceEdit* QKeySequenceEdit_new4(QKeySequence* keySequence, QWidget* parent); QMetaObject* QKeySequenceEdit_MetaObject(const QKeySequenceEdit* self); void* QKeySequenceEdit_Metacast(QKeySequenceEdit* self, const char* param1); diff --git a/qt/gen_qlabel.cpp b/qt/gen_qlabel.cpp index ddb23ed4..d644fb6e 100644 --- a/qt/gen_qlabel.cpp +++ b/qt/gen_qlabel.cpp @@ -12,19 +12,19 @@ #include "gen_qlabel.h" #include "_cgo_export.h" -QLabel* QLabel_new() { +QLabel* QLabel_new(QWidget* parent) { + return new QLabel(parent); +} + +QLabel* QLabel_new2() { return new QLabel(); } -QLabel* QLabel_new2(struct miqt_string text) { +QLabel* QLabel_new3(struct miqt_string text) { QString text_QString = QString::fromUtf8(text.data, text.len); return new QLabel(text_QString); } -QLabel* QLabel_new3(QWidget* parent) { - return new QLabel(parent); -} - QLabel* QLabel_new4(QWidget* parent, int f) { return new QLabel(parent, static_cast(f)); } diff --git a/qt/gen_qlabel.go b/qt/gen_qlabel.go index 5fff058c..bcec2cd5 100644 --- a/qt/gen_qlabel.go +++ b/qt/gen_qlabel.go @@ -45,24 +45,24 @@ func UnsafeNewQLabel(h unsafe.Pointer) *QLabel { } // NewQLabel constructs a new QLabel object. -func NewQLabel() *QLabel { - ret := C.QLabel_new() +func NewQLabel(parent *QWidget) *QLabel { + ret := C.QLabel_new(parent.cPointer()) return newQLabel(ret) } // NewQLabel2 constructs a new QLabel object. -func NewQLabel2(text string) *QLabel { - text_ms := C.struct_miqt_string{} - text_ms.data = C.CString(text) - text_ms.len = C.size_t(len(text)) - defer C.free(unsafe.Pointer(text_ms.data)) - ret := C.QLabel_new2(text_ms) +func NewQLabel2() *QLabel { + ret := C.QLabel_new2() return newQLabel(ret) } // NewQLabel3 constructs a new QLabel object. -func NewQLabel3(parent *QWidget) *QLabel { - ret := C.QLabel_new3(parent.cPointer()) +func NewQLabel3(text string) *QLabel { + text_ms := C.struct_miqt_string{} + text_ms.data = C.CString(text) + text_ms.len = C.size_t(len(text)) + defer C.free(unsafe.Pointer(text_ms.data)) + ret := C.QLabel_new3(text_ms) return newQLabel(ret) } diff --git a/qt/gen_qlabel.h b/qt/gen_qlabel.h index fd9cbac4..6f390164 100644 --- a/qt/gen_qlabel.h +++ b/qt/gen_qlabel.h @@ -31,9 +31,9 @@ typedef struct QSize QSize; typedef struct QWidget QWidget; #endif -QLabel* QLabel_new(); -QLabel* QLabel_new2(struct miqt_string text); -QLabel* QLabel_new3(QWidget* parent); +QLabel* QLabel_new(QWidget* parent); +QLabel* QLabel_new2(); +QLabel* QLabel_new3(struct miqt_string text); QLabel* QLabel_new4(QWidget* parent, int f); QLabel* QLabel_new5(struct miqt_string text, QWidget* parent); QLabel* QLabel_new6(struct miqt_string text, QWidget* parent, int f); diff --git a/qt/gen_qlcdnumber.cpp b/qt/gen_qlcdnumber.cpp index 89931071..59fe52f5 100644 --- a/qt/gen_qlcdnumber.cpp +++ b/qt/gen_qlcdnumber.cpp @@ -9,16 +9,16 @@ #include "gen_qlcdnumber.h" #include "_cgo_export.h" -QLCDNumber* QLCDNumber_new() { - return new QLCDNumber(); +QLCDNumber* QLCDNumber_new(QWidget* parent) { + return new QLCDNumber(parent); } -QLCDNumber* QLCDNumber_new2(unsigned int numDigits) { - return new QLCDNumber(static_cast(numDigits)); +QLCDNumber* QLCDNumber_new2() { + return new QLCDNumber(); } -QLCDNumber* QLCDNumber_new3(QWidget* parent) { - return new QLCDNumber(parent); +QLCDNumber* QLCDNumber_new3(unsigned int numDigits) { + return new QLCDNumber(static_cast(numDigits)); } QLCDNumber* QLCDNumber_new4(unsigned int numDigits, QWidget* parent) { diff --git a/qt/gen_qlcdnumber.go b/qt/gen_qlcdnumber.go index 6f3f4060..153775e1 100644 --- a/qt/gen_qlcdnumber.go +++ b/qt/gen_qlcdnumber.go @@ -62,20 +62,20 @@ func UnsafeNewQLCDNumber(h unsafe.Pointer) *QLCDNumber { } // NewQLCDNumber constructs a new QLCDNumber object. -func NewQLCDNumber() *QLCDNumber { - ret := C.QLCDNumber_new() +func NewQLCDNumber(parent *QWidget) *QLCDNumber { + ret := C.QLCDNumber_new(parent.cPointer()) return newQLCDNumber(ret) } // NewQLCDNumber2 constructs a new QLCDNumber object. -func NewQLCDNumber2(numDigits uint) *QLCDNumber { - ret := C.QLCDNumber_new2((C.uint)(numDigits)) +func NewQLCDNumber2() *QLCDNumber { + ret := C.QLCDNumber_new2() return newQLCDNumber(ret) } // NewQLCDNumber3 constructs a new QLCDNumber object. -func NewQLCDNumber3(parent *QWidget) *QLCDNumber { - ret := C.QLCDNumber_new3(parent.cPointer()) +func NewQLCDNumber3(numDigits uint) *QLCDNumber { + ret := C.QLCDNumber_new3((C.uint)(numDigits)) return newQLCDNumber(ret) } diff --git a/qt/gen_qlcdnumber.h b/qt/gen_qlcdnumber.h index d3f966c6..60ee24ec 100644 --- a/qt/gen_qlcdnumber.h +++ b/qt/gen_qlcdnumber.h @@ -25,9 +25,9 @@ typedef struct QSize QSize; typedef struct QWidget QWidget; #endif -QLCDNumber* QLCDNumber_new(); -QLCDNumber* QLCDNumber_new2(unsigned int numDigits); -QLCDNumber* QLCDNumber_new3(QWidget* parent); +QLCDNumber* QLCDNumber_new(QWidget* parent); +QLCDNumber* QLCDNumber_new2(); +QLCDNumber* QLCDNumber_new3(unsigned int numDigits); QLCDNumber* QLCDNumber_new4(unsigned int numDigits, QWidget* parent); QMetaObject* QLCDNumber_MetaObject(const QLCDNumber* self); void* QLCDNumber_Metacast(QLCDNumber* self, const char* param1); diff --git a/qt/gen_qlineedit.cpp b/qt/gen_qlineedit.cpp index d716ceaf..ce66fa72 100644 --- a/qt/gen_qlineedit.cpp +++ b/qt/gen_qlineedit.cpp @@ -18,19 +18,19 @@ #include "gen_qlineedit.h" #include "_cgo_export.h" -QLineEdit* QLineEdit_new() { +QLineEdit* QLineEdit_new(QWidget* parent) { + return new QLineEdit(parent); +} + +QLineEdit* QLineEdit_new2() { return new QLineEdit(); } -QLineEdit* QLineEdit_new2(struct miqt_string param1) { +QLineEdit* QLineEdit_new3(struct miqt_string param1) { QString param1_QString = QString::fromUtf8(param1.data, param1.len); return new QLineEdit(param1_QString); } -QLineEdit* QLineEdit_new3(QWidget* parent) { - return new QLineEdit(parent); -} - QLineEdit* QLineEdit_new4(struct miqt_string param1, QWidget* parent) { QString param1_QString = QString::fromUtf8(param1.data, param1.len); return new QLineEdit(param1_QString, parent); diff --git a/qt/gen_qlineedit.go b/qt/gen_qlineedit.go index 39b03c08..8976ca40 100644 --- a/qt/gen_qlineedit.go +++ b/qt/gen_qlineedit.go @@ -61,24 +61,24 @@ func UnsafeNewQLineEdit(h unsafe.Pointer) *QLineEdit { } // NewQLineEdit constructs a new QLineEdit object. -func NewQLineEdit() *QLineEdit { - ret := C.QLineEdit_new() +func NewQLineEdit(parent *QWidget) *QLineEdit { + ret := C.QLineEdit_new(parent.cPointer()) return newQLineEdit(ret) } // NewQLineEdit2 constructs a new QLineEdit object. -func NewQLineEdit2(param1 string) *QLineEdit { - param1_ms := C.struct_miqt_string{} - param1_ms.data = C.CString(param1) - param1_ms.len = C.size_t(len(param1)) - defer C.free(unsafe.Pointer(param1_ms.data)) - ret := C.QLineEdit_new2(param1_ms) +func NewQLineEdit2() *QLineEdit { + ret := C.QLineEdit_new2() return newQLineEdit(ret) } // NewQLineEdit3 constructs a new QLineEdit object. -func NewQLineEdit3(parent *QWidget) *QLineEdit { - ret := C.QLineEdit_new3(parent.cPointer()) +func NewQLineEdit3(param1 string) *QLineEdit { + param1_ms := C.struct_miqt_string{} + param1_ms.data = C.CString(param1) + param1_ms.len = C.size_t(len(param1)) + defer C.free(unsafe.Pointer(param1_ms.data)) + ret := C.QLineEdit_new3(param1_ms) return newQLineEdit(ret) } diff --git a/qt/gen_qlineedit.h b/qt/gen_qlineedit.h index c5eb7455..b11152ec 100644 --- a/qt/gen_qlineedit.h +++ b/qt/gen_qlineedit.h @@ -43,9 +43,9 @@ typedef struct QVariant QVariant; typedef struct QWidget QWidget; #endif -QLineEdit* QLineEdit_new(); -QLineEdit* QLineEdit_new2(struct miqt_string param1); -QLineEdit* QLineEdit_new3(QWidget* parent); +QLineEdit* QLineEdit_new(QWidget* parent); +QLineEdit* QLineEdit_new2(); +QLineEdit* QLineEdit_new3(struct miqt_string param1); QLineEdit* QLineEdit_new4(struct miqt_string param1, QWidget* parent); QMetaObject* QLineEdit_MetaObject(const QLineEdit* self); void* QLineEdit_Metacast(QLineEdit* self, const char* param1); diff --git a/qt/gen_qlistview.cpp b/qt/gen_qlistview.cpp index d6a15f10..ce74e4cb 100644 --- a/qt/gen_qlistview.cpp +++ b/qt/gen_qlistview.cpp @@ -13,12 +13,12 @@ #include "gen_qlistview.h" #include "_cgo_export.h" -QListView* QListView_new() { - return new QListView(); +QListView* QListView_new(QWidget* parent) { + return new QListView(parent); } -QListView* QListView_new2(QWidget* parent) { - return new QListView(parent); +QListView* QListView_new2() { + return new QListView(); } QMetaObject* QListView_MetaObject(const QListView* self) { diff --git a/qt/gen_qlistview.go b/qt/gen_qlistview.go index 6f271d8b..8e12290e 100644 --- a/qt/gen_qlistview.go +++ b/qt/gen_qlistview.go @@ -81,14 +81,14 @@ func UnsafeNewQListView(h unsafe.Pointer) *QListView { } // NewQListView constructs a new QListView object. -func NewQListView() *QListView { - ret := C.QListView_new() +func NewQListView(parent *QWidget) *QListView { + ret := C.QListView_new(parent.cPointer()) return newQListView(ret) } // NewQListView2 constructs a new QListView object. -func NewQListView2(parent *QWidget) *QListView { - ret := C.QListView_new2(parent.cPointer()) +func NewQListView2() *QListView { + ret := C.QListView_new2() return newQListView(ret) } diff --git a/qt/gen_qlistview.h b/qt/gen_qlistview.h index 31dff7d6..b9874b5d 100644 --- a/qt/gen_qlistview.h +++ b/qt/gen_qlistview.h @@ -31,8 +31,8 @@ typedef struct QSize QSize; typedef struct QWidget QWidget; #endif -QListView* QListView_new(); -QListView* QListView_new2(QWidget* parent); +QListView* QListView_new(QWidget* parent); +QListView* QListView_new2(); QMetaObject* QListView_MetaObject(const QListView* self); void* QListView_Metacast(QListView* self, const char* param1); struct miqt_string QListView_Tr(const char* s); diff --git a/qt/gen_qlistwidget.cpp b/qt/gen_qlistwidget.cpp index ff1697b7..624841e1 100644 --- a/qt/gen_qlistwidget.cpp +++ b/qt/gen_qlistwidget.cpp @@ -269,12 +269,12 @@ void QListWidgetItem_Delete(QListWidgetItem* self) { delete self; } -QListWidget* QListWidget_new() { - return new QListWidget(); +QListWidget* QListWidget_new(QWidget* parent) { + return new QListWidget(parent); } -QListWidget* QListWidget_new2(QWidget* parent) { - return new QListWidget(parent); +QListWidget* QListWidget_new2() { + return new QListWidget(); } QMetaObject* QListWidget_MetaObject(const QListWidget* self) { diff --git a/qt/gen_qlistwidget.go b/qt/gen_qlistwidget.go index cb9b0759..c1fdb9b6 100644 --- a/qt/gen_qlistwidget.go +++ b/qt/gen_qlistwidget.go @@ -395,14 +395,14 @@ func UnsafeNewQListWidget(h unsafe.Pointer) *QListWidget { } // NewQListWidget constructs a new QListWidget object. -func NewQListWidget() *QListWidget { - ret := C.QListWidget_new() +func NewQListWidget(parent *QWidget) *QListWidget { + ret := C.QListWidget_new(parent.cPointer()) return newQListWidget(ret) } // NewQListWidget2 constructs a new QListWidget object. -func NewQListWidget2(parent *QWidget) *QListWidget { - ret := C.QListWidget_new2(parent.cPointer()) +func NewQListWidget2() *QListWidget { + ret := C.QListWidget_new2() return newQListWidget(ret) } diff --git a/qt/gen_qlistwidget.h b/qt/gen_qlistwidget.h index 00e1b771..20bb0fc7 100644 --- a/qt/gen_qlistwidget.h +++ b/qt/gen_qlistwidget.h @@ -100,8 +100,8 @@ void QListWidgetItem_OperatorAssign(QListWidgetItem* self, QListWidgetItem* othe int QListWidgetItem_Type(const QListWidgetItem* self); void QListWidgetItem_Delete(QListWidgetItem* self); -QListWidget* QListWidget_new(); -QListWidget* QListWidget_new2(QWidget* parent); +QListWidget* QListWidget_new(QWidget* parent); +QListWidget* QListWidget_new2(); QMetaObject* QListWidget_MetaObject(const QListWidget* self); void* QListWidget_Metacast(QListWidget* self, const char* param1); struct miqt_string QListWidget_Tr(const char* s); diff --git a/qt/gen_qmainwindow.cpp b/qt/gen_qmainwindow.cpp index f7654fdb..bd5ba7cc 100644 --- a/qt/gen_qmainwindow.cpp +++ b/qt/gen_qmainwindow.cpp @@ -17,12 +17,12 @@ #include "gen_qmainwindow.h" #include "_cgo_export.h" -QMainWindow* QMainWindow_new() { - return new QMainWindow(); +QMainWindow* QMainWindow_new(QWidget* parent) { + return new QMainWindow(parent); } -QMainWindow* QMainWindow_new2(QWidget* parent) { - return new QMainWindow(parent); +QMainWindow* QMainWindow_new2() { + return new QMainWindow(); } QMainWindow* QMainWindow_new3(QWidget* parent, int flags) { diff --git a/qt/gen_qmainwindow.go b/qt/gen_qmainwindow.go index beab6fea..0750f66e 100644 --- a/qt/gen_qmainwindow.go +++ b/qt/gen_qmainwindow.go @@ -56,14 +56,14 @@ func UnsafeNewQMainWindow(h unsafe.Pointer) *QMainWindow { } // NewQMainWindow constructs a new QMainWindow object. -func NewQMainWindow() *QMainWindow { - ret := C.QMainWindow_new() +func NewQMainWindow(parent *QWidget) *QMainWindow { + ret := C.QMainWindow_new(parent.cPointer()) return newQMainWindow(ret) } // NewQMainWindow2 constructs a new QMainWindow object. -func NewQMainWindow2(parent *QWidget) *QMainWindow { - ret := C.QMainWindow_new2(parent.cPointer()) +func NewQMainWindow2() *QMainWindow { + ret := C.QMainWindow_new2() return newQMainWindow(ret) } diff --git a/qt/gen_qmainwindow.h b/qt/gen_qmainwindow.h index 665b5ea5..970db0b5 100644 --- a/qt/gen_qmainwindow.h +++ b/qt/gen_qmainwindow.h @@ -39,8 +39,8 @@ typedef struct QToolBar QToolBar; typedef struct QWidget QWidget; #endif -QMainWindow* QMainWindow_new(); -QMainWindow* QMainWindow_new2(QWidget* parent); +QMainWindow* QMainWindow_new(QWidget* parent); +QMainWindow* QMainWindow_new2(); QMainWindow* QMainWindow_new3(QWidget* parent, int flags); QMetaObject* QMainWindow_MetaObject(const QMainWindow* self); void* QMainWindow_Metacast(QMainWindow* self, const char* param1); diff --git a/qt/gen_qmdiarea.cpp b/qt/gen_qmdiarea.cpp index f0f211a3..95290625 100644 --- a/qt/gen_qmdiarea.cpp +++ b/qt/gen_qmdiarea.cpp @@ -12,12 +12,12 @@ #include "gen_qmdiarea.h" #include "_cgo_export.h" -QMdiArea* QMdiArea_new() { - return new QMdiArea(); +QMdiArea* QMdiArea_new(QWidget* parent) { + return new QMdiArea(parent); } -QMdiArea* QMdiArea_new2(QWidget* parent) { - return new QMdiArea(parent); +QMdiArea* QMdiArea_new2() { + return new QMdiArea(); } QMetaObject* QMdiArea_MetaObject(const QMdiArea* self) { diff --git a/qt/gen_qmdiarea.go b/qt/gen_qmdiarea.go index a89f7c7d..83cf43d9 100644 --- a/qt/gen_qmdiarea.go +++ b/qt/gen_qmdiarea.go @@ -66,14 +66,14 @@ func UnsafeNewQMdiArea(h unsafe.Pointer) *QMdiArea { } // NewQMdiArea constructs a new QMdiArea object. -func NewQMdiArea() *QMdiArea { - ret := C.QMdiArea_new() +func NewQMdiArea(parent *QWidget) *QMdiArea { + ret := C.QMdiArea_new(parent.cPointer()) return newQMdiArea(ret) } // NewQMdiArea2 constructs a new QMdiArea object. -func NewQMdiArea2(parent *QWidget) *QMdiArea { - ret := C.QMdiArea_new2(parent.cPointer()) +func NewQMdiArea2() *QMdiArea { + ret := C.QMdiArea_new2() return newQMdiArea(ret) } diff --git a/qt/gen_qmdiarea.h b/qt/gen_qmdiarea.h index 437cfdaa..5f739e1b 100644 --- a/qt/gen_qmdiarea.h +++ b/qt/gen_qmdiarea.h @@ -29,8 +29,8 @@ typedef struct QSize QSize; typedef struct QWidget QWidget; #endif -QMdiArea* QMdiArea_new(); -QMdiArea* QMdiArea_new2(QWidget* parent); +QMdiArea* QMdiArea_new(QWidget* parent); +QMdiArea* QMdiArea_new2(); QMetaObject* QMdiArea_MetaObject(const QMdiArea* self); void* QMdiArea_Metacast(QMdiArea* self, const char* param1); struct miqt_string QMdiArea_Tr(const char* s); diff --git a/qt/gen_qmdisubwindow.cpp b/qt/gen_qmdisubwindow.cpp index 4dc9e9b2..0050eacf 100644 --- a/qt/gen_qmdisubwindow.cpp +++ b/qt/gen_qmdisubwindow.cpp @@ -11,12 +11,12 @@ #include "gen_qmdisubwindow.h" #include "_cgo_export.h" -QMdiSubWindow* QMdiSubWindow_new() { - return new QMdiSubWindow(); +QMdiSubWindow* QMdiSubWindow_new(QWidget* parent) { + return new QMdiSubWindow(parent); } -QMdiSubWindow* QMdiSubWindow_new2(QWidget* parent) { - return new QMdiSubWindow(parent); +QMdiSubWindow* QMdiSubWindow_new2() { + return new QMdiSubWindow(); } QMdiSubWindow* QMdiSubWindow_new3(QWidget* parent, int flags) { diff --git a/qt/gen_qmdisubwindow.go b/qt/gen_qmdisubwindow.go index 6285ac74..473f6c65 100644 --- a/qt/gen_qmdisubwindow.go +++ b/qt/gen_qmdisubwindow.go @@ -54,14 +54,14 @@ func UnsafeNewQMdiSubWindow(h unsafe.Pointer) *QMdiSubWindow { } // NewQMdiSubWindow constructs a new QMdiSubWindow object. -func NewQMdiSubWindow() *QMdiSubWindow { - ret := C.QMdiSubWindow_new() +func NewQMdiSubWindow(parent *QWidget) *QMdiSubWindow { + ret := C.QMdiSubWindow_new(parent.cPointer()) return newQMdiSubWindow(ret) } // NewQMdiSubWindow2 constructs a new QMdiSubWindow object. -func NewQMdiSubWindow2(parent *QWidget) *QMdiSubWindow { - ret := C.QMdiSubWindow_new2(parent.cPointer()) +func NewQMdiSubWindow2() *QMdiSubWindow { + ret := C.QMdiSubWindow_new2() return newQMdiSubWindow(ret) } diff --git a/qt/gen_qmdisubwindow.h b/qt/gen_qmdisubwindow.h index 55e0551e..c5ad380e 100644 --- a/qt/gen_qmdisubwindow.h +++ b/qt/gen_qmdisubwindow.h @@ -29,8 +29,8 @@ typedef struct QSize QSize; typedef struct QWidget QWidget; #endif -QMdiSubWindow* QMdiSubWindow_new(); -QMdiSubWindow* QMdiSubWindow_new2(QWidget* parent); +QMdiSubWindow* QMdiSubWindow_new(QWidget* parent); +QMdiSubWindow* QMdiSubWindow_new2(); QMdiSubWindow* QMdiSubWindow_new3(QWidget* parent, int flags); QMetaObject* QMdiSubWindow_MetaObject(const QMdiSubWindow* self); void* QMdiSubWindow_Metacast(QMdiSubWindow* self, const char* param1); diff --git a/qt/gen_qmenu.cpp b/qt/gen_qmenu.cpp index 62e46110..519882c4 100644 --- a/qt/gen_qmenu.cpp +++ b/qt/gen_qmenu.cpp @@ -14,19 +14,19 @@ #include "gen_qmenu.h" #include "_cgo_export.h" -QMenu* QMenu_new() { +QMenu* QMenu_new(QWidget* parent) { + return new QMenu(parent); +} + +QMenu* QMenu_new2() { return new QMenu(); } -QMenu* QMenu_new2(struct miqt_string title) { +QMenu* QMenu_new3(struct miqt_string title) { QString title_QString = QString::fromUtf8(title.data, title.len); return new QMenu(title_QString); } -QMenu* QMenu_new3(QWidget* parent) { - return new QMenu(parent); -} - QMenu* QMenu_new4(struct miqt_string title, QWidget* parent) { QString title_QString = QString::fromUtf8(title.data, title.len); return new QMenu(title_QString, parent); diff --git a/qt/gen_qmenu.go b/qt/gen_qmenu.go index 68cbdebf..8a6ed053 100644 --- a/qt/gen_qmenu.go +++ b/qt/gen_qmenu.go @@ -45,24 +45,24 @@ func UnsafeNewQMenu(h unsafe.Pointer) *QMenu { } // NewQMenu constructs a new QMenu object. -func NewQMenu() *QMenu { - ret := C.QMenu_new() +func NewQMenu(parent *QWidget) *QMenu { + ret := C.QMenu_new(parent.cPointer()) return newQMenu(ret) } // NewQMenu2 constructs a new QMenu object. -func NewQMenu2(title string) *QMenu { - title_ms := C.struct_miqt_string{} - title_ms.data = C.CString(title) - title_ms.len = C.size_t(len(title)) - defer C.free(unsafe.Pointer(title_ms.data)) - ret := C.QMenu_new2(title_ms) +func NewQMenu2() *QMenu { + ret := C.QMenu_new2() return newQMenu(ret) } // NewQMenu3 constructs a new QMenu object. -func NewQMenu3(parent *QWidget) *QMenu { - ret := C.QMenu_new3(parent.cPointer()) +func NewQMenu3(title string) *QMenu { + title_ms := C.struct_miqt_string{} + title_ms.data = C.CString(title) + title_ms.len = C.size_t(len(title)) + defer C.free(unsafe.Pointer(title_ms.data)) + ret := C.QMenu_new3(title_ms) return newQMenu(ret) } diff --git a/qt/gen_qmenu.h b/qt/gen_qmenu.h index 253fa733..5b7f3b47 100644 --- a/qt/gen_qmenu.h +++ b/qt/gen_qmenu.h @@ -33,9 +33,9 @@ typedef struct QSize QSize; typedef struct QWidget QWidget; #endif -QMenu* QMenu_new(); -QMenu* QMenu_new2(struct miqt_string title); -QMenu* QMenu_new3(QWidget* parent); +QMenu* QMenu_new(QWidget* parent); +QMenu* QMenu_new2(); +QMenu* QMenu_new3(struct miqt_string title); QMenu* QMenu_new4(struct miqt_string title, QWidget* parent); QMetaObject* QMenu_MetaObject(const QMenu* self); void* QMenu_Metacast(QMenu* self, const char* param1); diff --git a/qt/gen_qmenubar.cpp b/qt/gen_qmenubar.cpp index b4730d75..3d3efcdc 100644 --- a/qt/gen_qmenubar.cpp +++ b/qt/gen_qmenubar.cpp @@ -14,12 +14,12 @@ #include "gen_qmenubar.h" #include "_cgo_export.h" -QMenuBar* QMenuBar_new() { - return new QMenuBar(); +QMenuBar* QMenuBar_new(QWidget* parent) { + return new QMenuBar(parent); } -QMenuBar* QMenuBar_new2(QWidget* parent) { - return new QMenuBar(parent); +QMenuBar* QMenuBar_new2() { + return new QMenuBar(); } QMetaObject* QMenuBar_MetaObject(const QMenuBar* self) { diff --git a/qt/gen_qmenubar.go b/qt/gen_qmenubar.go index affc5a8c..78cf8007 100644 --- a/qt/gen_qmenubar.go +++ b/qt/gen_qmenubar.go @@ -45,14 +45,14 @@ func UnsafeNewQMenuBar(h unsafe.Pointer) *QMenuBar { } // NewQMenuBar constructs a new QMenuBar object. -func NewQMenuBar() *QMenuBar { - ret := C.QMenuBar_new() +func NewQMenuBar(parent *QWidget) *QMenuBar { + ret := C.QMenuBar_new(parent.cPointer()) return newQMenuBar(ret) } // NewQMenuBar2 constructs a new QMenuBar object. -func NewQMenuBar2(parent *QWidget) *QMenuBar { - ret := C.QMenuBar_new2(parent.cPointer()) +func NewQMenuBar2() *QMenuBar { + ret := C.QMenuBar_new2() return newQMenuBar(ret) } diff --git a/qt/gen_qmenubar.h b/qt/gen_qmenubar.h index 7fcdc78f..68350330 100644 --- a/qt/gen_qmenubar.h +++ b/qt/gen_qmenubar.h @@ -35,8 +35,8 @@ typedef struct QSize QSize; typedef struct QWidget QWidget; #endif -QMenuBar* QMenuBar_new(); -QMenuBar* QMenuBar_new2(QWidget* parent); +QMenuBar* QMenuBar_new(QWidget* parent); +QMenuBar* QMenuBar_new2(); QMetaObject* QMenuBar_MetaObject(const QMenuBar* self); void* QMenuBar_Metacast(QMenuBar* self, const char* param1); struct miqt_string QMenuBar_Tr(const char* s); diff --git a/qt/gen_qmessagebox.cpp b/qt/gen_qmessagebox.cpp index 3080ed35..2f8d204c 100644 --- a/qt/gen_qmessagebox.cpp +++ b/qt/gen_qmessagebox.cpp @@ -13,26 +13,26 @@ #include "gen_qmessagebox.h" #include "_cgo_export.h" -QMessageBox* QMessageBox_new() { +QMessageBox* QMessageBox_new(QWidget* parent) { + return new QMessageBox(parent); +} + +QMessageBox* QMessageBox_new2() { return new QMessageBox(); } -QMessageBox* QMessageBox_new2(int icon, struct miqt_string title, struct miqt_string text) { +QMessageBox* QMessageBox_new3(int icon, struct miqt_string title, struct miqt_string text) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); return new QMessageBox(static_cast(icon), title_QString, text_QString); } -QMessageBox* QMessageBox_new3(struct miqt_string title, struct miqt_string text, int icon, int button0, int button1, int button2) { +QMessageBox* QMessageBox_new4(struct miqt_string title, struct miqt_string text, int icon, int button0, int button1, int button2) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); return new QMessageBox(title_QString, text_QString, static_cast(icon), static_cast(button0), static_cast(button1), static_cast(button2)); } -QMessageBox* QMessageBox_new4(QWidget* parent) { - return new QMessageBox(parent); -} - QMessageBox* QMessageBox_new5(int icon, struct miqt_string title, struct miqt_string text, int buttons) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); diff --git a/qt/gen_qmessagebox.go b/qt/gen_qmessagebox.go index 41e18ae5..261b466e 100644 --- a/qt/gen_qmessagebox.go +++ b/qt/gen_qmessagebox.go @@ -103,13 +103,19 @@ func UnsafeNewQMessageBox(h unsafe.Pointer) *QMessageBox { } // NewQMessageBox constructs a new QMessageBox object. -func NewQMessageBox() *QMessageBox { - ret := C.QMessageBox_new() +func NewQMessageBox(parent *QWidget) *QMessageBox { + ret := C.QMessageBox_new(parent.cPointer()) return newQMessageBox(ret) } // NewQMessageBox2 constructs a new QMessageBox object. -func NewQMessageBox2(icon QMessageBox__Icon, title string, text string) *QMessageBox { +func NewQMessageBox2() *QMessageBox { + ret := C.QMessageBox_new2() + return newQMessageBox(ret) +} + +// NewQMessageBox3 constructs a new QMessageBox object. +func NewQMessageBox3(icon QMessageBox__Icon, title string, text string) *QMessageBox { title_ms := C.struct_miqt_string{} title_ms.data = C.CString(title) title_ms.len = C.size_t(len(title)) @@ -118,12 +124,12 @@ func NewQMessageBox2(icon QMessageBox__Icon, title string, text string) *QMessag text_ms.data = C.CString(text) text_ms.len = C.size_t(len(text)) defer C.free(unsafe.Pointer(text_ms.data)) - ret := C.QMessageBox_new2((C.int)(icon), title_ms, text_ms) + ret := C.QMessageBox_new3((C.int)(icon), title_ms, text_ms) return newQMessageBox(ret) } -// NewQMessageBox3 constructs a new QMessageBox object. -func NewQMessageBox3(title string, text string, icon QMessageBox__Icon, button0 int, button1 int, button2 int) *QMessageBox { +// NewQMessageBox4 constructs a new QMessageBox object. +func NewQMessageBox4(title string, text string, icon QMessageBox__Icon, button0 int, button1 int, button2 int) *QMessageBox { title_ms := C.struct_miqt_string{} title_ms.data = C.CString(title) title_ms.len = C.size_t(len(title)) @@ -132,13 +138,7 @@ func NewQMessageBox3(title string, text string, icon QMessageBox__Icon, button0 text_ms.data = C.CString(text) text_ms.len = C.size_t(len(text)) defer C.free(unsafe.Pointer(text_ms.data)) - ret := C.QMessageBox_new3(title_ms, text_ms, (C.int)(icon), (C.int)(button0), (C.int)(button1), (C.int)(button2)) - return newQMessageBox(ret) -} - -// NewQMessageBox4 constructs a new QMessageBox object. -func NewQMessageBox4(parent *QWidget) *QMessageBox { - ret := C.QMessageBox_new4(parent.cPointer()) + ret := C.QMessageBox_new4(title_ms, text_ms, (C.int)(icon), (C.int)(button0), (C.int)(button1), (C.int)(button2)) return newQMessageBox(ret) } diff --git a/qt/gen_qmessagebox.h b/qt/gen_qmessagebox.h index 3c6633d1..baa03fb1 100644 --- a/qt/gen_qmessagebox.h +++ b/qt/gen_qmessagebox.h @@ -31,10 +31,10 @@ typedef struct QPushButton QPushButton; typedef struct QWidget QWidget; #endif -QMessageBox* QMessageBox_new(); -QMessageBox* QMessageBox_new2(int icon, struct miqt_string title, struct miqt_string text); -QMessageBox* QMessageBox_new3(struct miqt_string title, struct miqt_string text, int icon, int button0, int button1, int button2); -QMessageBox* QMessageBox_new4(QWidget* parent); +QMessageBox* QMessageBox_new(QWidget* parent); +QMessageBox* QMessageBox_new2(); +QMessageBox* QMessageBox_new3(int icon, struct miqt_string title, struct miqt_string text); +QMessageBox* QMessageBox_new4(struct miqt_string title, struct miqt_string text, int icon, int button0, int button1, int button2); QMessageBox* QMessageBox_new5(int icon, struct miqt_string title, struct miqt_string text, int buttons); QMessageBox* QMessageBox_new6(int icon, struct miqt_string title, struct miqt_string text, int buttons, QWidget* parent); QMessageBox* QMessageBox_new7(int icon, struct miqt_string title, struct miqt_string text, int buttons, QWidget* parent, int flags); diff --git a/qt/gen_qplaintextedit.cpp b/qt/gen_qplaintextedit.cpp index 47c567bf..ccb103ca 100644 --- a/qt/gen_qplaintextedit.cpp +++ b/qt/gen_qplaintextedit.cpp @@ -29,19 +29,19 @@ #include "gen_qplaintextedit.h" #include "_cgo_export.h" -QPlainTextEdit* QPlainTextEdit_new() { +QPlainTextEdit* QPlainTextEdit_new(QWidget* parent) { + return new QPlainTextEdit(parent); +} + +QPlainTextEdit* QPlainTextEdit_new2() { return new QPlainTextEdit(); } -QPlainTextEdit* QPlainTextEdit_new2(struct miqt_string text) { +QPlainTextEdit* QPlainTextEdit_new3(struct miqt_string text) { QString text_QString = QString::fromUtf8(text.data, text.len); return new QPlainTextEdit(text_QString); } -QPlainTextEdit* QPlainTextEdit_new3(QWidget* parent) { - return new QPlainTextEdit(parent); -} - QPlainTextEdit* QPlainTextEdit_new4(struct miqt_string text, QWidget* parent) { QString text_QString = QString::fromUtf8(text.data, text.len); return new QPlainTextEdit(text_QString, parent); diff --git a/qt/gen_qplaintextedit.go b/qt/gen_qplaintextedit.go index 5fbaf02f..a6afa003 100644 --- a/qt/gen_qplaintextedit.go +++ b/qt/gen_qplaintextedit.go @@ -52,24 +52,24 @@ func UnsafeNewQPlainTextEdit(h unsafe.Pointer) *QPlainTextEdit { } // NewQPlainTextEdit constructs a new QPlainTextEdit object. -func NewQPlainTextEdit() *QPlainTextEdit { - ret := C.QPlainTextEdit_new() +func NewQPlainTextEdit(parent *QWidget) *QPlainTextEdit { + ret := C.QPlainTextEdit_new(parent.cPointer()) return newQPlainTextEdit(ret) } // NewQPlainTextEdit2 constructs a new QPlainTextEdit object. -func NewQPlainTextEdit2(text string) *QPlainTextEdit { - text_ms := C.struct_miqt_string{} - text_ms.data = C.CString(text) - text_ms.len = C.size_t(len(text)) - defer C.free(unsafe.Pointer(text_ms.data)) - ret := C.QPlainTextEdit_new2(text_ms) +func NewQPlainTextEdit2() *QPlainTextEdit { + ret := C.QPlainTextEdit_new2() return newQPlainTextEdit(ret) } // NewQPlainTextEdit3 constructs a new QPlainTextEdit object. -func NewQPlainTextEdit3(parent *QWidget) *QPlainTextEdit { - ret := C.QPlainTextEdit_new3(parent.cPointer()) +func NewQPlainTextEdit3(text string) *QPlainTextEdit { + text_ms := C.struct_miqt_string{} + text_ms.data = C.CString(text) + text_ms.len = C.size_t(len(text)) + defer C.free(unsafe.Pointer(text_ms.data)) + ret := C.QPlainTextEdit_new3(text_ms) return newQPlainTextEdit(ret) } diff --git a/qt/gen_qplaintextedit.h b/qt/gen_qplaintextedit.h index b5eeb5fb..d3d9e61f 100644 --- a/qt/gen_qplaintextedit.h +++ b/qt/gen_qplaintextedit.h @@ -71,9 +71,9 @@ typedef struct QVariant QVariant; typedef struct QWidget QWidget; #endif -QPlainTextEdit* QPlainTextEdit_new(); -QPlainTextEdit* QPlainTextEdit_new2(struct miqt_string text); -QPlainTextEdit* QPlainTextEdit_new3(QWidget* parent); +QPlainTextEdit* QPlainTextEdit_new(QWidget* parent); +QPlainTextEdit* QPlainTextEdit_new2(); +QPlainTextEdit* QPlainTextEdit_new3(struct miqt_string text); QPlainTextEdit* QPlainTextEdit_new4(struct miqt_string text, QWidget* parent); QMetaObject* QPlainTextEdit_MetaObject(const QPlainTextEdit* self); void* QPlainTextEdit_Metacast(QPlainTextEdit* self, const char* param1); diff --git a/qt/gen_qprogressbar.cpp b/qt/gen_qprogressbar.cpp index 9f0ab4c3..9cff8408 100644 --- a/qt/gen_qprogressbar.cpp +++ b/qt/gen_qprogressbar.cpp @@ -9,12 +9,12 @@ #include "gen_qprogressbar.h" #include "_cgo_export.h" -QProgressBar* QProgressBar_new() { - return new QProgressBar(); +QProgressBar* QProgressBar_new(QWidget* parent) { + return new QProgressBar(parent); } -QProgressBar* QProgressBar_new2(QWidget* parent) { - return new QProgressBar(parent); +QProgressBar* QProgressBar_new2() { + return new QProgressBar(); } QMetaObject* QProgressBar_MetaObject(const QProgressBar* self) { diff --git a/qt/gen_qprogressbar.go b/qt/gen_qprogressbar.go index b54d6905..505a265b 100644 --- a/qt/gen_qprogressbar.go +++ b/qt/gen_qprogressbar.go @@ -52,14 +52,14 @@ func UnsafeNewQProgressBar(h unsafe.Pointer) *QProgressBar { } // NewQProgressBar constructs a new QProgressBar object. -func NewQProgressBar() *QProgressBar { - ret := C.QProgressBar_new() +func NewQProgressBar(parent *QWidget) *QProgressBar { + ret := C.QProgressBar_new(parent.cPointer()) return newQProgressBar(ret) } // NewQProgressBar2 constructs a new QProgressBar object. -func NewQProgressBar2(parent *QWidget) *QProgressBar { - ret := C.QProgressBar_new2(parent.cPointer()) +func NewQProgressBar2() *QProgressBar { + ret := C.QProgressBar_new2() return newQProgressBar(ret) } diff --git a/qt/gen_qprogressbar.h b/qt/gen_qprogressbar.h index 768685e3..dc1ea1cf 100644 --- a/qt/gen_qprogressbar.h +++ b/qt/gen_qprogressbar.h @@ -25,8 +25,8 @@ typedef struct QSize QSize; typedef struct QWidget QWidget; #endif -QProgressBar* QProgressBar_new(); -QProgressBar* QProgressBar_new2(QWidget* parent); +QProgressBar* QProgressBar_new(QWidget* parent); +QProgressBar* QProgressBar_new2(); QMetaObject* QProgressBar_MetaObject(const QProgressBar* self); void* QProgressBar_Metacast(QProgressBar* self, const char* param1); struct miqt_string QProgressBar_Tr(const char* s); diff --git a/qt/gen_qprogressdialog.cpp b/qt/gen_qprogressdialog.cpp index c8262a3a..40150f0e 100644 --- a/qt/gen_qprogressdialog.cpp +++ b/qt/gen_qprogressdialog.cpp @@ -12,20 +12,20 @@ #include "gen_qprogressdialog.h" #include "_cgo_export.h" -QProgressDialog* QProgressDialog_new() { +QProgressDialog* QProgressDialog_new(QWidget* parent) { + return new QProgressDialog(parent); +} + +QProgressDialog* QProgressDialog_new2() { return new QProgressDialog(); } -QProgressDialog* QProgressDialog_new2(struct miqt_string labelText, struct miqt_string cancelButtonText, int minimum, int maximum) { +QProgressDialog* QProgressDialog_new3(struct miqt_string labelText, struct miqt_string cancelButtonText, int minimum, int maximum) { QString labelText_QString = QString::fromUtf8(labelText.data, labelText.len); QString cancelButtonText_QString = QString::fromUtf8(cancelButtonText.data, cancelButtonText.len); return new QProgressDialog(labelText_QString, cancelButtonText_QString, static_cast(minimum), static_cast(maximum)); } -QProgressDialog* QProgressDialog_new3(QWidget* parent) { - return new QProgressDialog(parent); -} - QProgressDialog* QProgressDialog_new4(QWidget* parent, int flags) { return new QProgressDialog(parent, static_cast(flags)); } diff --git a/qt/gen_qprogressdialog.go b/qt/gen_qprogressdialog.go index cb666ea9..35d330e3 100644 --- a/qt/gen_qprogressdialog.go +++ b/qt/gen_qprogressdialog.go @@ -45,13 +45,19 @@ func UnsafeNewQProgressDialog(h unsafe.Pointer) *QProgressDialog { } // NewQProgressDialog constructs a new QProgressDialog object. -func NewQProgressDialog() *QProgressDialog { - ret := C.QProgressDialog_new() +func NewQProgressDialog(parent *QWidget) *QProgressDialog { + ret := C.QProgressDialog_new(parent.cPointer()) return newQProgressDialog(ret) } // NewQProgressDialog2 constructs a new QProgressDialog object. -func NewQProgressDialog2(labelText string, cancelButtonText string, minimum int, maximum int) *QProgressDialog { +func NewQProgressDialog2() *QProgressDialog { + ret := C.QProgressDialog_new2() + return newQProgressDialog(ret) +} + +// NewQProgressDialog3 constructs a new QProgressDialog object. +func NewQProgressDialog3(labelText string, cancelButtonText string, minimum int, maximum int) *QProgressDialog { labelText_ms := C.struct_miqt_string{} labelText_ms.data = C.CString(labelText) labelText_ms.len = C.size_t(len(labelText)) @@ -60,13 +66,7 @@ func NewQProgressDialog2(labelText string, cancelButtonText string, minimum int, cancelButtonText_ms.data = C.CString(cancelButtonText) cancelButtonText_ms.len = C.size_t(len(cancelButtonText)) defer C.free(unsafe.Pointer(cancelButtonText_ms.data)) - ret := C.QProgressDialog_new2(labelText_ms, cancelButtonText_ms, (C.int)(minimum), (C.int)(maximum)) - return newQProgressDialog(ret) -} - -// NewQProgressDialog3 constructs a new QProgressDialog object. -func NewQProgressDialog3(parent *QWidget) *QProgressDialog { - ret := C.QProgressDialog_new3(parent.cPointer()) + ret := C.QProgressDialog_new3(labelText_ms, cancelButtonText_ms, (C.int)(minimum), (C.int)(maximum)) return newQProgressDialog(ret) } diff --git a/qt/gen_qprogressdialog.h b/qt/gen_qprogressdialog.h index cacfe2d2..d51e1b7c 100644 --- a/qt/gen_qprogressdialog.h +++ b/qt/gen_qprogressdialog.h @@ -31,9 +31,9 @@ typedef struct QSize QSize; typedef struct QWidget QWidget; #endif -QProgressDialog* QProgressDialog_new(); -QProgressDialog* QProgressDialog_new2(struct miqt_string labelText, struct miqt_string cancelButtonText, int minimum, int maximum); -QProgressDialog* QProgressDialog_new3(QWidget* parent); +QProgressDialog* QProgressDialog_new(QWidget* parent); +QProgressDialog* QProgressDialog_new2(); +QProgressDialog* QProgressDialog_new3(struct miqt_string labelText, struct miqt_string cancelButtonText, int minimum, int maximum); QProgressDialog* QProgressDialog_new4(QWidget* parent, int flags); QProgressDialog* QProgressDialog_new5(struct miqt_string labelText, struct miqt_string cancelButtonText, int minimum, int maximum, QWidget* parent); QProgressDialog* QProgressDialog_new6(struct miqt_string labelText, struct miqt_string cancelButtonText, int minimum, int maximum, QWidget* parent, int flags); diff --git a/qt/gen_qpushbutton.cpp b/qt/gen_qpushbutton.cpp index 64b347d9..2e74df68 100644 --- a/qt/gen_qpushbutton.cpp +++ b/qt/gen_qpushbutton.cpp @@ -11,24 +11,24 @@ #include "gen_qpushbutton.h" #include "_cgo_export.h" -QPushButton* QPushButton_new() { +QPushButton* QPushButton_new(QWidget* parent) { + return new QPushButton(parent); +} + +QPushButton* QPushButton_new2() { return new QPushButton(); } -QPushButton* QPushButton_new2(struct miqt_string text) { +QPushButton* QPushButton_new3(struct miqt_string text) { QString text_QString = QString::fromUtf8(text.data, text.len); return new QPushButton(text_QString); } -QPushButton* QPushButton_new3(QIcon* icon, struct miqt_string text) { +QPushButton* QPushButton_new4(QIcon* icon, struct miqt_string text) { QString text_QString = QString::fromUtf8(text.data, text.len); return new QPushButton(*icon, text_QString); } -QPushButton* QPushButton_new4(QWidget* parent) { - return new QPushButton(parent); -} - QPushButton* QPushButton_new5(struct miqt_string text, QWidget* parent) { QString text_QString = QString::fromUtf8(text.data, text.len); return new QPushButton(text_QString, parent); diff --git a/qt/gen_qpushbutton.go b/qt/gen_qpushbutton.go index ec6718b0..7549711e 100644 --- a/qt/gen_qpushbutton.go +++ b/qt/gen_qpushbutton.go @@ -44,34 +44,34 @@ func UnsafeNewQPushButton(h unsafe.Pointer) *QPushButton { } // NewQPushButton constructs a new QPushButton object. -func NewQPushButton() *QPushButton { - ret := C.QPushButton_new() +func NewQPushButton(parent *QWidget) *QPushButton { + ret := C.QPushButton_new(parent.cPointer()) return newQPushButton(ret) } // NewQPushButton2 constructs a new QPushButton object. -func NewQPushButton2(text string) *QPushButton { - text_ms := C.struct_miqt_string{} - text_ms.data = C.CString(text) - text_ms.len = C.size_t(len(text)) - defer C.free(unsafe.Pointer(text_ms.data)) - ret := C.QPushButton_new2(text_ms) +func NewQPushButton2() *QPushButton { + ret := C.QPushButton_new2() return newQPushButton(ret) } // NewQPushButton3 constructs a new QPushButton object. -func NewQPushButton3(icon *QIcon, text string) *QPushButton { +func NewQPushButton3(text string) *QPushButton { text_ms := C.struct_miqt_string{} text_ms.data = C.CString(text) text_ms.len = C.size_t(len(text)) defer C.free(unsafe.Pointer(text_ms.data)) - ret := C.QPushButton_new3(icon.cPointer(), text_ms) + ret := C.QPushButton_new3(text_ms) return newQPushButton(ret) } // NewQPushButton4 constructs a new QPushButton object. -func NewQPushButton4(parent *QWidget) *QPushButton { - ret := C.QPushButton_new4(parent.cPointer()) +func NewQPushButton4(icon *QIcon, text string) *QPushButton { + text_ms := C.struct_miqt_string{} + text_ms.data = C.CString(text) + text_ms.len = C.size_t(len(text)) + defer C.free(unsafe.Pointer(text_ms.data)) + ret := C.QPushButton_new4(icon.cPointer(), text_ms) return newQPushButton(ret) } diff --git a/qt/gen_qpushbutton.h b/qt/gen_qpushbutton.h index 3215e589..065ac8bf 100644 --- a/qt/gen_qpushbutton.h +++ b/qt/gen_qpushbutton.h @@ -29,10 +29,10 @@ typedef struct QSize QSize; typedef struct QWidget QWidget; #endif -QPushButton* QPushButton_new(); -QPushButton* QPushButton_new2(struct miqt_string text); -QPushButton* QPushButton_new3(QIcon* icon, struct miqt_string text); -QPushButton* QPushButton_new4(QWidget* parent); +QPushButton* QPushButton_new(QWidget* parent); +QPushButton* QPushButton_new2(); +QPushButton* QPushButton_new3(struct miqt_string text); +QPushButton* QPushButton_new4(QIcon* icon, struct miqt_string text); QPushButton* QPushButton_new5(struct miqt_string text, QWidget* parent); QPushButton* QPushButton_new6(QIcon* icon, struct miqt_string text, QWidget* parent); QMetaObject* QPushButton_MetaObject(const QPushButton* self); diff --git a/qt/gen_qradiobutton.cpp b/qt/gen_qradiobutton.cpp index e60e2fe0..c2e289b0 100644 --- a/qt/gen_qradiobutton.cpp +++ b/qt/gen_qradiobutton.cpp @@ -9,19 +9,19 @@ #include "gen_qradiobutton.h" #include "_cgo_export.h" -QRadioButton* QRadioButton_new() { +QRadioButton* QRadioButton_new(QWidget* parent) { + return new QRadioButton(parent); +} + +QRadioButton* QRadioButton_new2() { return new QRadioButton(); } -QRadioButton* QRadioButton_new2(struct miqt_string text) { +QRadioButton* QRadioButton_new3(struct miqt_string text) { QString text_QString = QString::fromUtf8(text.data, text.len); return new QRadioButton(text_QString); } -QRadioButton* QRadioButton_new3(QWidget* parent) { - return new QRadioButton(parent); -} - QRadioButton* QRadioButton_new4(struct miqt_string text, QWidget* parent) { QString text_QString = QString::fromUtf8(text.data, text.len); return new QRadioButton(text_QString, parent); diff --git a/qt/gen_qradiobutton.go b/qt/gen_qradiobutton.go index 448a12e4..b69586f7 100644 --- a/qt/gen_qradiobutton.go +++ b/qt/gen_qradiobutton.go @@ -44,24 +44,24 @@ func UnsafeNewQRadioButton(h unsafe.Pointer) *QRadioButton { } // NewQRadioButton constructs a new QRadioButton object. -func NewQRadioButton() *QRadioButton { - ret := C.QRadioButton_new() +func NewQRadioButton(parent *QWidget) *QRadioButton { + ret := C.QRadioButton_new(parent.cPointer()) return newQRadioButton(ret) } // NewQRadioButton2 constructs a new QRadioButton object. -func NewQRadioButton2(text string) *QRadioButton { - text_ms := C.struct_miqt_string{} - text_ms.data = C.CString(text) - text_ms.len = C.size_t(len(text)) - defer C.free(unsafe.Pointer(text_ms.data)) - ret := C.QRadioButton_new2(text_ms) +func NewQRadioButton2() *QRadioButton { + ret := C.QRadioButton_new2() return newQRadioButton(ret) } // NewQRadioButton3 constructs a new QRadioButton object. -func NewQRadioButton3(parent *QWidget) *QRadioButton { - ret := C.QRadioButton_new3(parent.cPointer()) +func NewQRadioButton3(text string) *QRadioButton { + text_ms := C.struct_miqt_string{} + text_ms.data = C.CString(text) + text_ms.len = C.size_t(len(text)) + defer C.free(unsafe.Pointer(text_ms.data)) + ret := C.QRadioButton_new3(text_ms) return newQRadioButton(ret) } diff --git a/qt/gen_qradiobutton.h b/qt/gen_qradiobutton.h index bf7ec590..8151ed41 100644 --- a/qt/gen_qradiobutton.h +++ b/qt/gen_qradiobutton.h @@ -25,9 +25,9 @@ typedef struct QSize QSize; typedef struct QWidget QWidget; #endif -QRadioButton* QRadioButton_new(); -QRadioButton* QRadioButton_new2(struct miqt_string text); -QRadioButton* QRadioButton_new3(QWidget* parent); +QRadioButton* QRadioButton_new(QWidget* parent); +QRadioButton* QRadioButton_new2(); +QRadioButton* QRadioButton_new3(struct miqt_string text); QRadioButton* QRadioButton_new4(struct miqt_string text, QWidget* parent); QMetaObject* QRadioButton_MetaObject(const QRadioButton* self); void* QRadioButton_Metacast(QRadioButton* self, const char* param1); diff --git a/qt/gen_qscrollarea.cpp b/qt/gen_qscrollarea.cpp index cf774468..ad6b7212 100644 --- a/qt/gen_qscrollarea.cpp +++ b/qt/gen_qscrollarea.cpp @@ -9,12 +9,12 @@ #include "gen_qscrollarea.h" #include "_cgo_export.h" -QScrollArea* QScrollArea_new() { - return new QScrollArea(); +QScrollArea* QScrollArea_new(QWidget* parent) { + return new QScrollArea(parent); } -QScrollArea* QScrollArea_new2(QWidget* parent) { - return new QScrollArea(parent); +QScrollArea* QScrollArea_new2() { + return new QScrollArea(); } QMetaObject* QScrollArea_MetaObject(const QScrollArea* self) { diff --git a/qt/gen_qscrollarea.go b/qt/gen_qscrollarea.go index 77309a8b..d1fb1463 100644 --- a/qt/gen_qscrollarea.go +++ b/qt/gen_qscrollarea.go @@ -44,14 +44,14 @@ func UnsafeNewQScrollArea(h unsafe.Pointer) *QScrollArea { } // NewQScrollArea constructs a new QScrollArea object. -func NewQScrollArea() *QScrollArea { - ret := C.QScrollArea_new() +func NewQScrollArea(parent *QWidget) *QScrollArea { + ret := C.QScrollArea_new(parent.cPointer()) return newQScrollArea(ret) } // NewQScrollArea2 constructs a new QScrollArea object. -func NewQScrollArea2(parent *QWidget) *QScrollArea { - ret := C.QScrollArea_new2(parent.cPointer()) +func NewQScrollArea2() *QScrollArea { + ret := C.QScrollArea_new2() return newQScrollArea(ret) } diff --git a/qt/gen_qscrollarea.h b/qt/gen_qscrollarea.h index ab884154..bcd4f9e5 100644 --- a/qt/gen_qscrollarea.h +++ b/qt/gen_qscrollarea.h @@ -25,8 +25,8 @@ typedef struct QSize QSize; typedef struct QWidget QWidget; #endif -QScrollArea* QScrollArea_new(); -QScrollArea* QScrollArea_new2(QWidget* parent); +QScrollArea* QScrollArea_new(QWidget* parent); +QScrollArea* QScrollArea_new2(); QMetaObject* QScrollArea_MetaObject(const QScrollArea* self); void* QScrollArea_Metacast(QScrollArea* self, const char* param1); struct miqt_string QScrollArea_Tr(const char* s); diff --git a/qt/gen_qscrollbar.cpp b/qt/gen_qscrollbar.cpp index 5886be66..1d52403a 100644 --- a/qt/gen_qscrollbar.cpp +++ b/qt/gen_qscrollbar.cpp @@ -10,16 +10,16 @@ #include "gen_qscrollbar.h" #include "_cgo_export.h" -QScrollBar* QScrollBar_new() { - return new QScrollBar(); +QScrollBar* QScrollBar_new(QWidget* parent) { + return new QScrollBar(parent); } -QScrollBar* QScrollBar_new2(int param1) { - return new QScrollBar(static_cast(param1)); +QScrollBar* QScrollBar_new2() { + return new QScrollBar(); } -QScrollBar* QScrollBar_new3(QWidget* parent) { - return new QScrollBar(parent); +QScrollBar* QScrollBar_new3(int param1) { + return new QScrollBar(static_cast(param1)); } QScrollBar* QScrollBar_new4(int param1, QWidget* parent) { diff --git a/qt/gen_qscrollbar.go b/qt/gen_qscrollbar.go index fa27cc23..adc6d1e1 100644 --- a/qt/gen_qscrollbar.go +++ b/qt/gen_qscrollbar.go @@ -44,20 +44,20 @@ func UnsafeNewQScrollBar(h unsafe.Pointer) *QScrollBar { } // NewQScrollBar constructs a new QScrollBar object. -func NewQScrollBar() *QScrollBar { - ret := C.QScrollBar_new() +func NewQScrollBar(parent *QWidget) *QScrollBar { + ret := C.QScrollBar_new(parent.cPointer()) return newQScrollBar(ret) } // NewQScrollBar2 constructs a new QScrollBar object. -func NewQScrollBar2(param1 Orientation) *QScrollBar { - ret := C.QScrollBar_new2((C.int)(param1)) +func NewQScrollBar2() *QScrollBar { + ret := C.QScrollBar_new2() return newQScrollBar(ret) } // NewQScrollBar3 constructs a new QScrollBar object. -func NewQScrollBar3(parent *QWidget) *QScrollBar { - ret := C.QScrollBar_new3(parent.cPointer()) +func NewQScrollBar3(param1 Orientation) *QScrollBar { + ret := C.QScrollBar_new3((C.int)(param1)) return newQScrollBar(ret) } diff --git a/qt/gen_qscrollbar.h b/qt/gen_qscrollbar.h index 24ac5e05..aa36e002 100644 --- a/qt/gen_qscrollbar.h +++ b/qt/gen_qscrollbar.h @@ -27,9 +27,9 @@ typedef struct QSize QSize; typedef struct QWidget QWidget; #endif -QScrollBar* QScrollBar_new(); -QScrollBar* QScrollBar_new2(int param1); -QScrollBar* QScrollBar_new3(QWidget* parent); +QScrollBar* QScrollBar_new(QWidget* parent); +QScrollBar* QScrollBar_new2(); +QScrollBar* QScrollBar_new3(int param1); QScrollBar* QScrollBar_new4(int param1, QWidget* parent); QMetaObject* QScrollBar_MetaObject(const QScrollBar* self); void* QScrollBar_Metacast(QScrollBar* self, const char* param1); diff --git a/qt/gen_qslider.cpp b/qt/gen_qslider.cpp index cc68b463..83907070 100644 --- a/qt/gen_qslider.cpp +++ b/qt/gen_qslider.cpp @@ -10,16 +10,16 @@ #include "gen_qslider.h" #include "_cgo_export.h" -QSlider* QSlider_new() { - return new QSlider(); +QSlider* QSlider_new(QWidget* parent) { + return new QSlider(parent); } -QSlider* QSlider_new2(int orientation) { - return new QSlider(static_cast(orientation)); +QSlider* QSlider_new2() { + return new QSlider(); } -QSlider* QSlider_new3(QWidget* parent) { - return new QSlider(parent); +QSlider* QSlider_new3(int orientation) { + return new QSlider(static_cast(orientation)); } QSlider* QSlider_new4(int orientation, QWidget* parent) { diff --git a/qt/gen_qslider.go b/qt/gen_qslider.go index bf1f8809..4f8f69fc 100644 --- a/qt/gen_qslider.go +++ b/qt/gen_qslider.go @@ -55,20 +55,20 @@ func UnsafeNewQSlider(h unsafe.Pointer) *QSlider { } // NewQSlider constructs a new QSlider object. -func NewQSlider() *QSlider { - ret := C.QSlider_new() +func NewQSlider(parent *QWidget) *QSlider { + ret := C.QSlider_new(parent.cPointer()) return newQSlider(ret) } // NewQSlider2 constructs a new QSlider object. -func NewQSlider2(orientation Orientation) *QSlider { - ret := C.QSlider_new2((C.int)(orientation)) +func NewQSlider2() *QSlider { + ret := C.QSlider_new2() return newQSlider(ret) } // NewQSlider3 constructs a new QSlider object. -func NewQSlider3(parent *QWidget) *QSlider { - ret := C.QSlider_new3(parent.cPointer()) +func NewQSlider3(orientation Orientation) *QSlider { + ret := C.QSlider_new3((C.int)(orientation)) return newQSlider(ret) } diff --git a/qt/gen_qslider.h b/qt/gen_qslider.h index ef534630..3f83fcc0 100644 --- a/qt/gen_qslider.h +++ b/qt/gen_qslider.h @@ -27,9 +27,9 @@ typedef struct QSlider QSlider; typedef struct QWidget QWidget; #endif -QSlider* QSlider_new(); -QSlider* QSlider_new2(int orientation); -QSlider* QSlider_new3(QWidget* parent); +QSlider* QSlider_new(QWidget* parent); +QSlider* QSlider_new2(); +QSlider* QSlider_new3(int orientation); QSlider* QSlider_new4(int orientation, QWidget* parent); QMetaObject* QSlider_MetaObject(const QSlider* self); void* QSlider_Metacast(QSlider* self, const char* param1); diff --git a/qt/gen_qspinbox.cpp b/qt/gen_qspinbox.cpp index 5a852a77..b3d6d540 100644 --- a/qt/gen_qspinbox.cpp +++ b/qt/gen_qspinbox.cpp @@ -9,12 +9,12 @@ #include "gen_qspinbox.h" #include "_cgo_export.h" -QSpinBox* QSpinBox_new() { - return new QSpinBox(); +QSpinBox* QSpinBox_new(QWidget* parent) { + return new QSpinBox(parent); } -QSpinBox* QSpinBox_new2(QWidget* parent) { - return new QSpinBox(parent); +QSpinBox* QSpinBox_new2() { + return new QSpinBox(); } QMetaObject* QSpinBox_MetaObject(const QSpinBox* self) { @@ -240,12 +240,12 @@ void QSpinBox_Delete(QSpinBox* self) { delete self; } -QDoubleSpinBox* QDoubleSpinBox_new() { - return new QDoubleSpinBox(); +QDoubleSpinBox* QDoubleSpinBox_new(QWidget* parent) { + return new QDoubleSpinBox(parent); } -QDoubleSpinBox* QDoubleSpinBox_new2(QWidget* parent) { - return new QDoubleSpinBox(parent); +QDoubleSpinBox* QDoubleSpinBox_new2() { + return new QDoubleSpinBox(); } QMetaObject* QDoubleSpinBox_MetaObject(const QDoubleSpinBox* self) { diff --git a/qt/gen_qspinbox.go b/qt/gen_qspinbox.go index b17e3e8a..d16b4721 100644 --- a/qt/gen_qspinbox.go +++ b/qt/gen_qspinbox.go @@ -45,14 +45,14 @@ func UnsafeNewQSpinBox(h unsafe.Pointer) *QSpinBox { } // NewQSpinBox constructs a new QSpinBox object. -func NewQSpinBox() *QSpinBox { - ret := C.QSpinBox_new() +func NewQSpinBox(parent *QWidget) *QSpinBox { + ret := C.QSpinBox_new(parent.cPointer()) return newQSpinBox(ret) } // NewQSpinBox2 constructs a new QSpinBox object. -func NewQSpinBox2(parent *QWidget) *QSpinBox { - ret := C.QSpinBox_new2(parent.cPointer()) +func NewQSpinBox2() *QSpinBox { + ret := C.QSpinBox_new2() return newQSpinBox(ret) } @@ -336,14 +336,14 @@ func UnsafeNewQDoubleSpinBox(h unsafe.Pointer) *QDoubleSpinBox { } // NewQDoubleSpinBox constructs a new QDoubleSpinBox object. -func NewQDoubleSpinBox() *QDoubleSpinBox { - ret := C.QDoubleSpinBox_new() +func NewQDoubleSpinBox(parent *QWidget) *QDoubleSpinBox { + ret := C.QDoubleSpinBox_new(parent.cPointer()) return newQDoubleSpinBox(ret) } // NewQDoubleSpinBox2 constructs a new QDoubleSpinBox object. -func NewQDoubleSpinBox2(parent *QWidget) *QDoubleSpinBox { - ret := C.QDoubleSpinBox_new2(parent.cPointer()) +func NewQDoubleSpinBox2() *QDoubleSpinBox { + ret := C.QDoubleSpinBox_new2() return newQDoubleSpinBox(ret) } diff --git a/qt/gen_qspinbox.h b/qt/gen_qspinbox.h index 8378dda9..407b03cb 100644 --- a/qt/gen_qspinbox.h +++ b/qt/gen_qspinbox.h @@ -25,8 +25,8 @@ typedef struct QSpinBox QSpinBox; typedef struct QWidget QWidget; #endif -QSpinBox* QSpinBox_new(); -QSpinBox* QSpinBox_new2(QWidget* parent); +QSpinBox* QSpinBox_new(QWidget* parent); +QSpinBox* QSpinBox_new2(); QMetaObject* QSpinBox_MetaObject(const QSpinBox* self); void* QSpinBox_Metacast(QSpinBox* self, const char* param1); struct miqt_string QSpinBox_Tr(const char* s); @@ -61,8 +61,8 @@ struct miqt_string QSpinBox_TrUtf82(const char* s, const char* c); struct miqt_string QSpinBox_TrUtf83(const char* s, const char* c, int n); void QSpinBox_Delete(QSpinBox* self); -QDoubleSpinBox* QDoubleSpinBox_new(); -QDoubleSpinBox* QDoubleSpinBox_new2(QWidget* parent); +QDoubleSpinBox* QDoubleSpinBox_new(QWidget* parent); +QDoubleSpinBox* QDoubleSpinBox_new2(); QMetaObject* QDoubleSpinBox_MetaObject(const QDoubleSpinBox* self); void* QDoubleSpinBox_Metacast(QDoubleSpinBox* self, const char* param1); struct miqt_string QDoubleSpinBox_Tr(const char* s); diff --git a/qt/gen_qsplashscreen.cpp b/qt/gen_qsplashscreen.cpp index d4a10d8d..f457a648 100644 --- a/qt/gen_qsplashscreen.cpp +++ b/qt/gen_qsplashscreen.cpp @@ -11,16 +11,16 @@ #include "gen_qsplashscreen.h" #include "_cgo_export.h" -QSplashScreen* QSplashScreen_new() { - return new QSplashScreen(); +QSplashScreen* QSplashScreen_new(QWidget* parent) { + return new QSplashScreen(parent); } -QSplashScreen* QSplashScreen_new2(QScreen* screen) { - return new QSplashScreen(screen); +QSplashScreen* QSplashScreen_new2() { + return new QSplashScreen(); } -QSplashScreen* QSplashScreen_new3(QWidget* parent) { - return new QSplashScreen(parent); +QSplashScreen* QSplashScreen_new3(QScreen* screen) { + return new QSplashScreen(screen); } QSplashScreen* QSplashScreen_new4(QPixmap* pixmap) { diff --git a/qt/gen_qsplashscreen.go b/qt/gen_qsplashscreen.go index 1d375119..1ab5fb06 100644 --- a/qt/gen_qsplashscreen.go +++ b/qt/gen_qsplashscreen.go @@ -45,20 +45,20 @@ func UnsafeNewQSplashScreen(h unsafe.Pointer) *QSplashScreen { } // NewQSplashScreen constructs a new QSplashScreen object. -func NewQSplashScreen() *QSplashScreen { - ret := C.QSplashScreen_new() +func NewQSplashScreen(parent *QWidget) *QSplashScreen { + ret := C.QSplashScreen_new(parent.cPointer()) return newQSplashScreen(ret) } // NewQSplashScreen2 constructs a new QSplashScreen object. -func NewQSplashScreen2(screen *QScreen) *QSplashScreen { - ret := C.QSplashScreen_new2(screen.cPointer()) +func NewQSplashScreen2() *QSplashScreen { + ret := C.QSplashScreen_new2() return newQSplashScreen(ret) } // NewQSplashScreen3 constructs a new QSplashScreen object. -func NewQSplashScreen3(parent *QWidget) *QSplashScreen { - ret := C.QSplashScreen_new3(parent.cPointer()) +func NewQSplashScreen3(screen *QScreen) *QSplashScreen { + ret := C.QSplashScreen_new3(screen.cPointer()) return newQSplashScreen(ret) } diff --git a/qt/gen_qsplashscreen.h b/qt/gen_qsplashscreen.h index 486c897a..d973f177 100644 --- a/qt/gen_qsplashscreen.h +++ b/qt/gen_qsplashscreen.h @@ -29,9 +29,9 @@ typedef struct QSplashScreen QSplashScreen; typedef struct QWidget QWidget; #endif -QSplashScreen* QSplashScreen_new(); -QSplashScreen* QSplashScreen_new2(QScreen* screen); -QSplashScreen* QSplashScreen_new3(QWidget* parent); +QSplashScreen* QSplashScreen_new(QWidget* parent); +QSplashScreen* QSplashScreen_new2(); +QSplashScreen* QSplashScreen_new3(QScreen* screen); QSplashScreen* QSplashScreen_new4(QPixmap* pixmap); QSplashScreen* QSplashScreen_new5(QPixmap* pixmap, int f); QSplashScreen* QSplashScreen_new6(QScreen* screen, QPixmap* pixmap); diff --git a/qt/gen_qsplitter.cpp b/qt/gen_qsplitter.cpp index 6f84a590..fc8ed166 100644 --- a/qt/gen_qsplitter.cpp +++ b/qt/gen_qsplitter.cpp @@ -12,16 +12,16 @@ #include "gen_qsplitter.h" #include "_cgo_export.h" -QSplitter* QSplitter_new() { - return new QSplitter(); +QSplitter* QSplitter_new(QWidget* parent) { + return new QSplitter(parent); } -QSplitter* QSplitter_new2(int param1) { - return new QSplitter(static_cast(param1)); +QSplitter* QSplitter_new2() { + return new QSplitter(); } -QSplitter* QSplitter_new3(QWidget* parent) { - return new QSplitter(parent); +QSplitter* QSplitter_new3(int param1) { + return new QSplitter(static_cast(param1)); } QSplitter* QSplitter_new4(int param1, QWidget* parent) { diff --git a/qt/gen_qsplitter.go b/qt/gen_qsplitter.go index 982bbfb7..8f5d4672 100644 --- a/qt/gen_qsplitter.go +++ b/qt/gen_qsplitter.go @@ -45,20 +45,20 @@ func UnsafeNewQSplitter(h unsafe.Pointer) *QSplitter { } // NewQSplitter constructs a new QSplitter object. -func NewQSplitter() *QSplitter { - ret := C.QSplitter_new() +func NewQSplitter(parent *QWidget) *QSplitter { + ret := C.QSplitter_new(parent.cPointer()) return newQSplitter(ret) } // NewQSplitter2 constructs a new QSplitter object. -func NewQSplitter2(param1 Orientation) *QSplitter { - ret := C.QSplitter_new2((C.int)(param1)) +func NewQSplitter2() *QSplitter { + ret := C.QSplitter_new2() return newQSplitter(ret) } // NewQSplitter3 constructs a new QSplitter object. -func NewQSplitter3(parent *QWidget) *QSplitter { - ret := C.QSplitter_new3(parent.cPointer()) +func NewQSplitter3(param1 Orientation) *QSplitter { + ret := C.QSplitter_new3((C.int)(param1)) return newQSplitter(ret) } diff --git a/qt/gen_qsplitter.h b/qt/gen_qsplitter.h index e1785e59..d28e15e5 100644 --- a/qt/gen_qsplitter.h +++ b/qt/gen_qsplitter.h @@ -29,9 +29,9 @@ typedef struct QSplitterHandle QSplitterHandle; typedef struct QWidget QWidget; #endif -QSplitter* QSplitter_new(); -QSplitter* QSplitter_new2(int param1); -QSplitter* QSplitter_new3(QWidget* parent); +QSplitter* QSplitter_new(QWidget* parent); +QSplitter* QSplitter_new2(); +QSplitter* QSplitter_new3(int param1); QSplitter* QSplitter_new4(int param1, QWidget* parent); QMetaObject* QSplitter_MetaObject(const QSplitter* self); void* QSplitter_Metacast(QSplitter* self, const char* param1); diff --git a/qt/gen_qstackedlayout.cpp b/qt/gen_qstackedlayout.cpp index 0462c389..1e689772 100644 --- a/qt/gen_qstackedlayout.cpp +++ b/qt/gen_qstackedlayout.cpp @@ -12,12 +12,12 @@ #include "gen_qstackedlayout.h" #include "_cgo_export.h" -QStackedLayout* QStackedLayout_new() { - return new QStackedLayout(); +QStackedLayout* QStackedLayout_new(QWidget* parent) { + return new QStackedLayout(parent); } -QStackedLayout* QStackedLayout_new2(QWidget* parent) { - return new QStackedLayout(parent); +QStackedLayout* QStackedLayout_new2() { + return new QStackedLayout(); } QStackedLayout* QStackedLayout_new3(QLayout* parentLayout) { diff --git a/qt/gen_qstackedlayout.go b/qt/gen_qstackedlayout.go index 6cb2cc9b..933573bc 100644 --- a/qt/gen_qstackedlayout.go +++ b/qt/gen_qstackedlayout.go @@ -52,14 +52,14 @@ func UnsafeNewQStackedLayout(h unsafe.Pointer) *QStackedLayout { } // NewQStackedLayout constructs a new QStackedLayout object. -func NewQStackedLayout() *QStackedLayout { - ret := C.QStackedLayout_new() +func NewQStackedLayout(parent *QWidget) *QStackedLayout { + ret := C.QStackedLayout_new(parent.cPointer()) return newQStackedLayout(ret) } // NewQStackedLayout2 constructs a new QStackedLayout object. -func NewQStackedLayout2(parent *QWidget) *QStackedLayout { - ret := C.QStackedLayout_new2(parent.cPointer()) +func NewQStackedLayout2() *QStackedLayout { + ret := C.QStackedLayout_new2() return newQStackedLayout(ret) } diff --git a/qt/gen_qstackedlayout.h b/qt/gen_qstackedlayout.h index d52c1d48..9b5a026a 100644 --- a/qt/gen_qstackedlayout.h +++ b/qt/gen_qstackedlayout.h @@ -31,8 +31,8 @@ typedef struct QStackedLayout QStackedLayout; typedef struct QWidget QWidget; #endif -QStackedLayout* QStackedLayout_new(); -QStackedLayout* QStackedLayout_new2(QWidget* parent); +QStackedLayout* QStackedLayout_new(QWidget* parent); +QStackedLayout* QStackedLayout_new2(); QStackedLayout* QStackedLayout_new3(QLayout* parentLayout); QMetaObject* QStackedLayout_MetaObject(const QStackedLayout* self); void* QStackedLayout_Metacast(QStackedLayout* self, const char* param1); diff --git a/qt/gen_qstackedwidget.cpp b/qt/gen_qstackedwidget.cpp index dd400a97..b47bffa0 100644 --- a/qt/gen_qstackedwidget.cpp +++ b/qt/gen_qstackedwidget.cpp @@ -8,12 +8,12 @@ #include "gen_qstackedwidget.h" #include "_cgo_export.h" -QStackedWidget* QStackedWidget_new() { - return new QStackedWidget(); +QStackedWidget* QStackedWidget_new(QWidget* parent) { + return new QStackedWidget(parent); } -QStackedWidget* QStackedWidget_new2(QWidget* parent) { - return new QStackedWidget(parent); +QStackedWidget* QStackedWidget_new2() { + return new QStackedWidget(); } QMetaObject* QStackedWidget_MetaObject(const QStackedWidget* self) { diff --git a/qt/gen_qstackedwidget.go b/qt/gen_qstackedwidget.go index 2c0f80c1..fcf196a3 100644 --- a/qt/gen_qstackedwidget.go +++ b/qt/gen_qstackedwidget.go @@ -45,14 +45,14 @@ func UnsafeNewQStackedWidget(h unsafe.Pointer) *QStackedWidget { } // NewQStackedWidget constructs a new QStackedWidget object. -func NewQStackedWidget() *QStackedWidget { - ret := C.QStackedWidget_new() +func NewQStackedWidget(parent *QWidget) *QStackedWidget { + ret := C.QStackedWidget_new(parent.cPointer()) return newQStackedWidget(ret) } // NewQStackedWidget2 constructs a new QStackedWidget object. -func NewQStackedWidget2(parent *QWidget) *QStackedWidget { - ret := C.QStackedWidget_new2(parent.cPointer()) +func NewQStackedWidget2() *QStackedWidget { + ret := C.QStackedWidget_new2() return newQStackedWidget(ret) } diff --git a/qt/gen_qstackedwidget.h b/qt/gen_qstackedwidget.h index ec17ccc5..db132b56 100644 --- a/qt/gen_qstackedwidget.h +++ b/qt/gen_qstackedwidget.h @@ -23,8 +23,8 @@ typedef struct QStackedWidget QStackedWidget; typedef struct QWidget QWidget; #endif -QStackedWidget* QStackedWidget_new(); -QStackedWidget* QStackedWidget_new2(QWidget* parent); +QStackedWidget* QStackedWidget_new(QWidget* parent); +QStackedWidget* QStackedWidget_new2(); QMetaObject* QStackedWidget_MetaObject(const QStackedWidget* self); void* QStackedWidget_Metacast(QStackedWidget* self, const char* param1); struct miqt_string QStackedWidget_Tr(const char* s); diff --git a/qt/gen_qstatusbar.cpp b/qt/gen_qstatusbar.cpp index f7d804d9..45da2588 100644 --- a/qt/gen_qstatusbar.cpp +++ b/qt/gen_qstatusbar.cpp @@ -8,12 +8,12 @@ #include "gen_qstatusbar.h" #include "_cgo_export.h" -QStatusBar* QStatusBar_new() { - return new QStatusBar(); +QStatusBar* QStatusBar_new(QWidget* parent) { + return new QStatusBar(parent); } -QStatusBar* QStatusBar_new2(QWidget* parent) { - return new QStatusBar(parent); +QStatusBar* QStatusBar_new2() { + return new QStatusBar(); } QMetaObject* QStatusBar_MetaObject(const QStatusBar* self) { diff --git a/qt/gen_qstatusbar.go b/qt/gen_qstatusbar.go index 024cd5fb..081b81b1 100644 --- a/qt/gen_qstatusbar.go +++ b/qt/gen_qstatusbar.go @@ -45,14 +45,14 @@ func UnsafeNewQStatusBar(h unsafe.Pointer) *QStatusBar { } // NewQStatusBar constructs a new QStatusBar object. -func NewQStatusBar() *QStatusBar { - ret := C.QStatusBar_new() +func NewQStatusBar(parent *QWidget) *QStatusBar { + ret := C.QStatusBar_new(parent.cPointer()) return newQStatusBar(ret) } // NewQStatusBar2 constructs a new QStatusBar object. -func NewQStatusBar2(parent *QWidget) *QStatusBar { - ret := C.QStatusBar_new2(parent.cPointer()) +func NewQStatusBar2() *QStatusBar { + ret := C.QStatusBar_new2() return newQStatusBar(ret) } diff --git a/qt/gen_qstatusbar.h b/qt/gen_qstatusbar.h index 418f06d7..a4d14559 100644 --- a/qt/gen_qstatusbar.h +++ b/qt/gen_qstatusbar.h @@ -23,8 +23,8 @@ typedef struct QStatusBar QStatusBar; typedef struct QWidget QWidget; #endif -QStatusBar* QStatusBar_new(); -QStatusBar* QStatusBar_new2(QWidget* parent); +QStatusBar* QStatusBar_new(QWidget* parent); +QStatusBar* QStatusBar_new2(); QMetaObject* QStatusBar_MetaObject(const QStatusBar* self); void* QStatusBar_Metacast(QStatusBar* self, const char* param1); struct miqt_string QStatusBar_Tr(const char* s); diff --git a/qt/gen_qstylepainter.cpp b/qt/gen_qstylepainter.cpp index f81f3087..327e99eb 100644 --- a/qt/gen_qstylepainter.cpp +++ b/qt/gen_qstylepainter.cpp @@ -14,12 +14,12 @@ #include "gen_qstylepainter.h" #include "_cgo_export.h" -QStylePainter* QStylePainter_new() { - return new QStylePainter(); +QStylePainter* QStylePainter_new(QWidget* w) { + return new QStylePainter(w); } -QStylePainter* QStylePainter_new2(QWidget* w) { - return new QStylePainter(w); +QStylePainter* QStylePainter_new2() { + return new QStylePainter(); } QStylePainter* QStylePainter_new3(QPaintDevice* pd, QWidget* w) { diff --git a/qt/gen_qstylepainter.go b/qt/gen_qstylepainter.go index 4aa2df7b..5b80a87a 100644 --- a/qt/gen_qstylepainter.go +++ b/qt/gen_qstylepainter.go @@ -44,14 +44,14 @@ func UnsafeNewQStylePainter(h unsafe.Pointer) *QStylePainter { } // NewQStylePainter constructs a new QStylePainter object. -func NewQStylePainter() *QStylePainter { - ret := C.QStylePainter_new() +func NewQStylePainter(w *QWidget) *QStylePainter { + ret := C.QStylePainter_new(w.cPointer()) return newQStylePainter(ret) } // NewQStylePainter2 constructs a new QStylePainter object. -func NewQStylePainter2(w *QWidget) *QStylePainter { - ret := C.QStylePainter_new2(w.cPointer()) +func NewQStylePainter2() *QStylePainter { + ret := C.QStylePainter_new2() return newQStylePainter(ret) } diff --git a/qt/gen_qstylepainter.h b/qt/gen_qstylepainter.h index ef1a9a00..b2c8efab 100644 --- a/qt/gen_qstylepainter.h +++ b/qt/gen_qstylepainter.h @@ -35,8 +35,8 @@ typedef struct QStylePainter QStylePainter; typedef struct QWidget QWidget; #endif -QStylePainter* QStylePainter_new(); -QStylePainter* QStylePainter_new2(QWidget* w); +QStylePainter* QStylePainter_new(QWidget* w); +QStylePainter* QStylePainter_new2(); QStylePainter* QStylePainter_new3(QPaintDevice* pd, QWidget* w); bool QStylePainter_Begin(QStylePainter* self, QWidget* w); bool QStylePainter_Begin2(QStylePainter* self, QPaintDevice* pd, QWidget* w); diff --git a/qt/gen_qtabbar.cpp b/qt/gen_qtabbar.cpp index 2708aff3..440021db 100644 --- a/qt/gen_qtabbar.cpp +++ b/qt/gen_qtabbar.cpp @@ -14,12 +14,12 @@ #include "gen_qtabbar.h" #include "_cgo_export.h" -QTabBar* QTabBar_new() { - return new QTabBar(); +QTabBar* QTabBar_new(QWidget* parent) { + return new QTabBar(parent); } -QTabBar* QTabBar_new2(QWidget* parent) { - return new QTabBar(parent); +QTabBar* QTabBar_new2() { + return new QTabBar(); } QMetaObject* QTabBar_MetaObject(const QTabBar* self) { diff --git a/qt/gen_qtabbar.go b/qt/gen_qtabbar.go index 06dededd..500645ec 100644 --- a/qt/gen_qtabbar.go +++ b/qt/gen_qtabbar.go @@ -73,14 +73,14 @@ func UnsafeNewQTabBar(h unsafe.Pointer) *QTabBar { } // NewQTabBar constructs a new QTabBar object. -func NewQTabBar() *QTabBar { - ret := C.QTabBar_new() +func NewQTabBar(parent *QWidget) *QTabBar { + ret := C.QTabBar_new(parent.cPointer()) return newQTabBar(ret) } // NewQTabBar2 constructs a new QTabBar object. -func NewQTabBar2(parent *QWidget) *QTabBar { - ret := C.QTabBar_new2(parent.cPointer()) +func NewQTabBar2() *QTabBar { + ret := C.QTabBar_new2() return newQTabBar(ret) } diff --git a/qt/gen_qtabbar.h b/qt/gen_qtabbar.h index 7e809dba..f4e718ca 100644 --- a/qt/gen_qtabbar.h +++ b/qt/gen_qtabbar.h @@ -35,8 +35,8 @@ typedef struct QVariant QVariant; typedef struct QWidget QWidget; #endif -QTabBar* QTabBar_new(); -QTabBar* QTabBar_new2(QWidget* parent); +QTabBar* QTabBar_new(QWidget* parent); +QTabBar* QTabBar_new2(); QMetaObject* QTabBar_MetaObject(const QTabBar* self); void* QTabBar_Metacast(QTabBar* self, const char* param1); struct miqt_string QTabBar_Tr(const char* s); diff --git a/qt/gen_qtableview.cpp b/qt/gen_qtableview.cpp index 07911dd7..c7ed6eeb 100644 --- a/qt/gen_qtableview.cpp +++ b/qt/gen_qtableview.cpp @@ -14,12 +14,12 @@ #include "gen_qtableview.h" #include "_cgo_export.h" -QTableView* QTableView_new() { - return new QTableView(); +QTableView* QTableView_new(QWidget* parent) { + return new QTableView(parent); } -QTableView* QTableView_new2(QWidget* parent) { - return new QTableView(parent); +QTableView* QTableView_new2() { + return new QTableView(); } QMetaObject* QTableView_MetaObject(const QTableView* self) { diff --git a/qt/gen_qtableview.go b/qt/gen_qtableview.go index 92ab6c60..cd68e052 100644 --- a/qt/gen_qtableview.go +++ b/qt/gen_qtableview.go @@ -44,14 +44,14 @@ func UnsafeNewQTableView(h unsafe.Pointer) *QTableView { } // NewQTableView constructs a new QTableView object. -func NewQTableView() *QTableView { - ret := C.QTableView_new() +func NewQTableView(parent *QWidget) *QTableView { + ret := C.QTableView_new(parent.cPointer()) return newQTableView(ret) } // NewQTableView2 constructs a new QTableView object. -func NewQTableView2(parent *QWidget) *QTableView { - ret := C.QTableView_new2(parent.cPointer()) +func NewQTableView2() *QTableView { + ret := C.QTableView_new2() return newQTableView(ret) } diff --git a/qt/gen_qtableview.h b/qt/gen_qtableview.h index 4dbf3b04..445594b8 100644 --- a/qt/gen_qtableview.h +++ b/qt/gen_qtableview.h @@ -35,8 +35,8 @@ typedef struct QTableView QTableView; typedef struct QWidget QWidget; #endif -QTableView* QTableView_new(); -QTableView* QTableView_new2(QWidget* parent); +QTableView* QTableView_new(QWidget* parent); +QTableView* QTableView_new2(); QMetaObject* QTableView_MetaObject(const QTableView* self); void* QTableView_Metacast(QTableView* self, const char* param1); struct miqt_string QTableView_Tr(const char* s); diff --git a/qt/gen_qtablewidget.cpp b/qt/gen_qtablewidget.cpp index e3fca421..85a76c44 100644 --- a/qt/gen_qtablewidget.cpp +++ b/qt/gen_qtablewidget.cpp @@ -298,16 +298,16 @@ void QTableWidgetItem_Delete(QTableWidgetItem* self) { delete self; } -QTableWidget* QTableWidget_new() { - return new QTableWidget(); +QTableWidget* QTableWidget_new(QWidget* parent) { + return new QTableWidget(parent); } -QTableWidget* QTableWidget_new2(int rows, int columns) { - return new QTableWidget(static_cast(rows), static_cast(columns)); +QTableWidget* QTableWidget_new2() { + return new QTableWidget(); } -QTableWidget* QTableWidget_new3(QWidget* parent) { - return new QTableWidget(parent); +QTableWidget* QTableWidget_new3(int rows, int columns) { + return new QTableWidget(static_cast(rows), static_cast(columns)); } QTableWidget* QTableWidget_new4(int rows, int columns, QWidget* parent) { diff --git a/qt/gen_qtablewidget.go b/qt/gen_qtablewidget.go index b64192c3..0288da6a 100644 --- a/qt/gen_qtablewidget.go +++ b/qt/gen_qtablewidget.go @@ -458,20 +458,20 @@ func UnsafeNewQTableWidget(h unsafe.Pointer) *QTableWidget { } // NewQTableWidget constructs a new QTableWidget object. -func NewQTableWidget() *QTableWidget { - ret := C.QTableWidget_new() +func NewQTableWidget(parent *QWidget) *QTableWidget { + ret := C.QTableWidget_new(parent.cPointer()) return newQTableWidget(ret) } // NewQTableWidget2 constructs a new QTableWidget object. -func NewQTableWidget2(rows int, columns int) *QTableWidget { - ret := C.QTableWidget_new2((C.int)(rows), (C.int)(columns)) +func NewQTableWidget2() *QTableWidget { + ret := C.QTableWidget_new2() return newQTableWidget(ret) } // NewQTableWidget3 constructs a new QTableWidget object. -func NewQTableWidget3(parent *QWidget) *QTableWidget { - ret := C.QTableWidget_new3(parent.cPointer()) +func NewQTableWidget3(rows int, columns int) *QTableWidget { + ret := C.QTableWidget_new3((C.int)(rows), (C.int)(columns)) return newQTableWidget(ret) } diff --git a/qt/gen_qtablewidget.h b/qt/gen_qtablewidget.h index 0882b713..de78fa51 100644 --- a/qt/gen_qtablewidget.h +++ b/qt/gen_qtablewidget.h @@ -107,9 +107,9 @@ void QTableWidgetItem_OperatorAssign(QTableWidgetItem* self, QTableWidgetItem* o int QTableWidgetItem_Type(const QTableWidgetItem* self); void QTableWidgetItem_Delete(QTableWidgetItem* self); -QTableWidget* QTableWidget_new(); -QTableWidget* QTableWidget_new2(int rows, int columns); -QTableWidget* QTableWidget_new3(QWidget* parent); +QTableWidget* QTableWidget_new(QWidget* parent); +QTableWidget* QTableWidget_new2(); +QTableWidget* QTableWidget_new3(int rows, int columns); QTableWidget* QTableWidget_new4(int rows, int columns, QWidget* parent); QMetaObject* QTableWidget_MetaObject(const QTableWidget* self); void* QTableWidget_Metacast(QTableWidget* self, const char* param1); diff --git a/qt/gen_qtabwidget.cpp b/qt/gen_qtabwidget.cpp index 93bc57da..4bba58bf 100644 --- a/qt/gen_qtabwidget.cpp +++ b/qt/gen_qtabwidget.cpp @@ -11,12 +11,12 @@ #include "gen_qtabwidget.h" #include "_cgo_export.h" -QTabWidget* QTabWidget_new() { - return new QTabWidget(); +QTabWidget* QTabWidget_new(QWidget* parent) { + return new QTabWidget(parent); } -QTabWidget* QTabWidget_new2(QWidget* parent) { - return new QTabWidget(parent); +QTabWidget* QTabWidget_new2() { + return new QTabWidget(); } QMetaObject* QTabWidget_MetaObject(const QTabWidget* self) { diff --git a/qt/gen_qtabwidget.go b/qt/gen_qtabwidget.go index 39a8bd09..feec7333 100644 --- a/qt/gen_qtabwidget.go +++ b/qt/gen_qtabwidget.go @@ -61,14 +61,14 @@ func UnsafeNewQTabWidget(h unsafe.Pointer) *QTabWidget { } // NewQTabWidget constructs a new QTabWidget object. -func NewQTabWidget() *QTabWidget { - ret := C.QTabWidget_new() +func NewQTabWidget(parent *QWidget) *QTabWidget { + ret := C.QTabWidget_new(parent.cPointer()) return newQTabWidget(ret) } // NewQTabWidget2 constructs a new QTabWidget object. -func NewQTabWidget2(parent *QWidget) *QTabWidget { - ret := C.QTabWidget_new2(parent.cPointer()) +func NewQTabWidget2() *QTabWidget { + ret := C.QTabWidget_new2() return newQTabWidget(ret) } diff --git a/qt/gen_qtabwidget.h b/qt/gen_qtabwidget.h index 671cd783..7c48fc3e 100644 --- a/qt/gen_qtabwidget.h +++ b/qt/gen_qtabwidget.h @@ -29,8 +29,8 @@ typedef struct QTabWidget QTabWidget; typedef struct QWidget QWidget; #endif -QTabWidget* QTabWidget_new(); -QTabWidget* QTabWidget_new2(QWidget* parent); +QTabWidget* QTabWidget_new(QWidget* parent); +QTabWidget* QTabWidget_new2(); QMetaObject* QTabWidget_MetaObject(const QTabWidget* self); void* QTabWidget_Metacast(QTabWidget* self, const char* param1); struct miqt_string QTabWidget_Tr(const char* s); diff --git a/qt/gen_qtextbrowser.cpp b/qt/gen_qtextbrowser.cpp index 31369554..c9cec58e 100644 --- a/qt/gen_qtextbrowser.cpp +++ b/qt/gen_qtextbrowser.cpp @@ -11,12 +11,12 @@ #include "gen_qtextbrowser.h" #include "_cgo_export.h" -QTextBrowser* QTextBrowser_new() { - return new QTextBrowser(); +QTextBrowser* QTextBrowser_new(QWidget* parent) { + return new QTextBrowser(parent); } -QTextBrowser* QTextBrowser_new2(QWidget* parent) { - return new QTextBrowser(parent); +QTextBrowser* QTextBrowser_new2() { + return new QTextBrowser(); } QMetaObject* QTextBrowser_MetaObject(const QTextBrowser* self) { diff --git a/qt/gen_qtextbrowser.go b/qt/gen_qtextbrowser.go index a0187566..91a07e47 100644 --- a/qt/gen_qtextbrowser.go +++ b/qt/gen_qtextbrowser.go @@ -45,14 +45,14 @@ func UnsafeNewQTextBrowser(h unsafe.Pointer) *QTextBrowser { } // NewQTextBrowser constructs a new QTextBrowser object. -func NewQTextBrowser() *QTextBrowser { - ret := C.QTextBrowser_new() +func NewQTextBrowser(parent *QWidget) *QTextBrowser { + ret := C.QTextBrowser_new(parent.cPointer()) return newQTextBrowser(ret) } // NewQTextBrowser2 constructs a new QTextBrowser object. -func NewQTextBrowser2(parent *QWidget) *QTextBrowser { - ret := C.QTextBrowser_new2(parent.cPointer()) +func NewQTextBrowser2() *QTextBrowser { + ret := C.QTextBrowser_new2() return newQTextBrowser(ret) } diff --git a/qt/gen_qtextbrowser.h b/qt/gen_qtextbrowser.h index 35debf8b..0fdc6532 100644 --- a/qt/gen_qtextbrowser.h +++ b/qt/gen_qtextbrowser.h @@ -27,8 +27,8 @@ typedef struct QVariant QVariant; typedef struct QWidget QWidget; #endif -QTextBrowser* QTextBrowser_new(); -QTextBrowser* QTextBrowser_new2(QWidget* parent); +QTextBrowser* QTextBrowser_new(QWidget* parent); +QTextBrowser* QTextBrowser_new2(); QMetaObject* QTextBrowser_MetaObject(const QTextBrowser* self); void* QTextBrowser_Metacast(QTextBrowser* self, const char* param1); struct miqt_string QTextBrowser_Tr(const char* s); diff --git a/qt/gen_qtextedit.cpp b/qt/gen_qtextedit.cpp index e23b01e8..8c509f5a 100644 --- a/qt/gen_qtextedit.cpp +++ b/qt/gen_qtextedit.cpp @@ -23,19 +23,19 @@ #include "gen_qtextedit.h" #include "_cgo_export.h" -QTextEdit* QTextEdit_new() { +QTextEdit* QTextEdit_new(QWidget* parent) { + return new QTextEdit(parent); +} + +QTextEdit* QTextEdit_new2() { return new QTextEdit(); } -QTextEdit* QTextEdit_new2(struct miqt_string text) { +QTextEdit* QTextEdit_new3(struct miqt_string text) { QString text_QString = QString::fromUtf8(text.data, text.len); return new QTextEdit(text_QString); } -QTextEdit* QTextEdit_new3(QWidget* parent) { - return new QTextEdit(parent); -} - QTextEdit* QTextEdit_new4(struct miqt_string text, QWidget* parent) { QString text_QString = QString::fromUtf8(text.data, text.len); return new QTextEdit(text_QString, parent); diff --git a/qt/gen_qtextedit.go b/qt/gen_qtextedit.go index fbdf8acb..0e01d77c 100644 --- a/qt/gen_qtextedit.go +++ b/qt/gen_qtextedit.go @@ -62,24 +62,24 @@ func UnsafeNewQTextEdit(h unsafe.Pointer) *QTextEdit { } // NewQTextEdit constructs a new QTextEdit object. -func NewQTextEdit() *QTextEdit { - ret := C.QTextEdit_new() +func NewQTextEdit(parent *QWidget) *QTextEdit { + ret := C.QTextEdit_new(parent.cPointer()) return newQTextEdit(ret) } // NewQTextEdit2 constructs a new QTextEdit object. -func NewQTextEdit2(text string) *QTextEdit { - text_ms := C.struct_miqt_string{} - text_ms.data = C.CString(text) - text_ms.len = C.size_t(len(text)) - defer C.free(unsafe.Pointer(text_ms.data)) - ret := C.QTextEdit_new2(text_ms) +func NewQTextEdit2() *QTextEdit { + ret := C.QTextEdit_new2() return newQTextEdit(ret) } // NewQTextEdit3 constructs a new QTextEdit object. -func NewQTextEdit3(parent *QWidget) *QTextEdit { - ret := C.QTextEdit_new3(parent.cPointer()) +func NewQTextEdit3(text string) *QTextEdit { + text_ms := C.struct_miqt_string{} + text_ms.data = C.CString(text) + text_ms.len = C.size_t(len(text)) + defer C.free(unsafe.Pointer(text_ms.data)) + ret := C.QTextEdit_new3(text_ms) return newQTextEdit(ret) } diff --git a/qt/gen_qtextedit.h b/qt/gen_qtextedit.h index 1a7ca251..4ff866f1 100644 --- a/qt/gen_qtextedit.h +++ b/qt/gen_qtextedit.h @@ -55,9 +55,9 @@ typedef struct QVariant QVariant; typedef struct QWidget QWidget; #endif -QTextEdit* QTextEdit_new(); -QTextEdit* QTextEdit_new2(struct miqt_string text); -QTextEdit* QTextEdit_new3(QWidget* parent); +QTextEdit* QTextEdit_new(QWidget* parent); +QTextEdit* QTextEdit_new2(); +QTextEdit* QTextEdit_new3(struct miqt_string text); QTextEdit* QTextEdit_new4(struct miqt_string text, QWidget* parent); QMetaObject* QTextEdit_MetaObject(const QTextEdit* self); void* QTextEdit_Metacast(QTextEdit* self, const char* param1); diff --git a/qt/gen_qtoolbar.cpp b/qt/gen_qtoolbar.cpp index ba1b1521..5f380455 100644 --- a/qt/gen_qtoolbar.cpp +++ b/qt/gen_qtoolbar.cpp @@ -13,24 +13,24 @@ #include "gen_qtoolbar.h" #include "_cgo_export.h" -QToolBar* QToolBar_new(struct miqt_string title) { +QToolBar* QToolBar_new(QWidget* parent) { + return new QToolBar(parent); +} + +QToolBar* QToolBar_new2(struct miqt_string title) { QString title_QString = QString::fromUtf8(title.data, title.len); return new QToolBar(title_QString); } -QToolBar* QToolBar_new2() { +QToolBar* QToolBar_new3() { return new QToolBar(); } -QToolBar* QToolBar_new3(struct miqt_string title, QWidget* parent) { +QToolBar* QToolBar_new4(struct miqt_string title, QWidget* parent) { QString title_QString = QString::fromUtf8(title.data, title.len); return new QToolBar(title_QString, parent); } -QToolBar* QToolBar_new4(QWidget* parent) { - return new QToolBar(parent); -} - QMetaObject* QToolBar_MetaObject(const QToolBar* self) { return (QMetaObject*) self->metaObject(); } diff --git a/qt/gen_qtoolbar.go b/qt/gen_qtoolbar.go index d7f45377..825607c0 100644 --- a/qt/gen_qtoolbar.go +++ b/qt/gen_qtoolbar.go @@ -45,34 +45,34 @@ func UnsafeNewQToolBar(h unsafe.Pointer) *QToolBar { } // NewQToolBar constructs a new QToolBar object. -func NewQToolBar(title string) *QToolBar { +func NewQToolBar(parent *QWidget) *QToolBar { + ret := C.QToolBar_new(parent.cPointer()) + return newQToolBar(ret) +} + +// NewQToolBar2 constructs a new QToolBar object. +func NewQToolBar2(title string) *QToolBar { title_ms := C.struct_miqt_string{} title_ms.data = C.CString(title) title_ms.len = C.size_t(len(title)) defer C.free(unsafe.Pointer(title_ms.data)) - ret := C.QToolBar_new(title_ms) + ret := C.QToolBar_new2(title_ms) return newQToolBar(ret) } -// NewQToolBar2 constructs a new QToolBar object. -func NewQToolBar2() *QToolBar { - ret := C.QToolBar_new2() +// NewQToolBar3 constructs a new QToolBar object. +func NewQToolBar3() *QToolBar { + ret := C.QToolBar_new3() return newQToolBar(ret) } -// NewQToolBar3 constructs a new QToolBar object. -func NewQToolBar3(title string, parent *QWidget) *QToolBar { +// NewQToolBar4 constructs a new QToolBar object. +func NewQToolBar4(title string, parent *QWidget) *QToolBar { title_ms := C.struct_miqt_string{} title_ms.data = C.CString(title) title_ms.len = C.size_t(len(title)) defer C.free(unsafe.Pointer(title_ms.data)) - ret := C.QToolBar_new3(title_ms, parent.cPointer()) - return newQToolBar(ret) -} - -// NewQToolBar4 constructs a new QToolBar object. -func NewQToolBar4(parent *QWidget) *QToolBar { - ret := C.QToolBar_new4(parent.cPointer()) + ret := C.QToolBar_new4(title_ms, parent.cPointer()) return newQToolBar(ret) } diff --git a/qt/gen_qtoolbar.h b/qt/gen_qtoolbar.h index 73e0eed2..e5402ffc 100644 --- a/qt/gen_qtoolbar.h +++ b/qt/gen_qtoolbar.h @@ -33,10 +33,10 @@ typedef struct QToolBar QToolBar; typedef struct QWidget QWidget; #endif -QToolBar* QToolBar_new(struct miqt_string title); -QToolBar* QToolBar_new2(); -QToolBar* QToolBar_new3(struct miqt_string title, QWidget* parent); -QToolBar* QToolBar_new4(QWidget* parent); +QToolBar* QToolBar_new(QWidget* parent); +QToolBar* QToolBar_new2(struct miqt_string title); +QToolBar* QToolBar_new3(); +QToolBar* QToolBar_new4(struct miqt_string title, QWidget* parent); QMetaObject* QToolBar_MetaObject(const QToolBar* self); void* QToolBar_Metacast(QToolBar* self, const char* param1); struct miqt_string QToolBar_Tr(const char* s); diff --git a/qt/gen_qtoolbox.cpp b/qt/gen_qtoolbox.cpp index 8b4ccfc7..959cfe6e 100644 --- a/qt/gen_qtoolbox.cpp +++ b/qt/gen_qtoolbox.cpp @@ -9,12 +9,12 @@ #include "gen_qtoolbox.h" #include "_cgo_export.h" -QToolBox* QToolBox_new() { - return new QToolBox(); +QToolBox* QToolBox_new(QWidget* parent) { + return new QToolBox(parent); } -QToolBox* QToolBox_new2(QWidget* parent) { - return new QToolBox(parent); +QToolBox* QToolBox_new2() { + return new QToolBox(); } QToolBox* QToolBox_new3(QWidget* parent, int f) { diff --git a/qt/gen_qtoolbox.go b/qt/gen_qtoolbox.go index 1dffc564..023c29bc 100644 --- a/qt/gen_qtoolbox.go +++ b/qt/gen_qtoolbox.go @@ -45,14 +45,14 @@ func UnsafeNewQToolBox(h unsafe.Pointer) *QToolBox { } // NewQToolBox constructs a new QToolBox object. -func NewQToolBox() *QToolBox { - ret := C.QToolBox_new() +func NewQToolBox(parent *QWidget) *QToolBox { + ret := C.QToolBox_new(parent.cPointer()) return newQToolBox(ret) } // NewQToolBox2 constructs a new QToolBox object. -func NewQToolBox2(parent *QWidget) *QToolBox { - ret := C.QToolBox_new2(parent.cPointer()) +func NewQToolBox2() *QToolBox { + ret := C.QToolBox_new2() return newQToolBox(ret) } diff --git a/qt/gen_qtoolbox.h b/qt/gen_qtoolbox.h index 53715235..07e5851f 100644 --- a/qt/gen_qtoolbox.h +++ b/qt/gen_qtoolbox.h @@ -25,8 +25,8 @@ typedef struct QToolBox QToolBox; typedef struct QWidget QWidget; #endif -QToolBox* QToolBox_new(); -QToolBox* QToolBox_new2(QWidget* parent); +QToolBox* QToolBox_new(QWidget* parent); +QToolBox* QToolBox_new2(); QToolBox* QToolBox_new3(QWidget* parent, int f); QMetaObject* QToolBox_MetaObject(const QToolBox* self); void* QToolBox_Metacast(QToolBox* self, const char* param1); diff --git a/qt/gen_qtoolbutton.cpp b/qt/gen_qtoolbutton.cpp index 9fdd0749..c2d8b36d 100644 --- a/qt/gen_qtoolbutton.cpp +++ b/qt/gen_qtoolbutton.cpp @@ -11,12 +11,12 @@ #include "gen_qtoolbutton.h" #include "_cgo_export.h" -QToolButton* QToolButton_new() { - return new QToolButton(); +QToolButton* QToolButton_new(QWidget* parent) { + return new QToolButton(parent); } -QToolButton* QToolButton_new2(QWidget* parent) { - return new QToolButton(parent); +QToolButton* QToolButton_new2() { + return new QToolButton(); } QMetaObject* QToolButton_MetaObject(const QToolButton* self) { diff --git a/qt/gen_qtoolbutton.go b/qt/gen_qtoolbutton.go index a812e804..bbb7dcf0 100644 --- a/qt/gen_qtoolbutton.go +++ b/qt/gen_qtoolbutton.go @@ -53,14 +53,14 @@ func UnsafeNewQToolButton(h unsafe.Pointer) *QToolButton { } // NewQToolButton constructs a new QToolButton object. -func NewQToolButton() *QToolButton { - ret := C.QToolButton_new() +func NewQToolButton(parent *QWidget) *QToolButton { + ret := C.QToolButton_new(parent.cPointer()) return newQToolButton(ret) } // NewQToolButton2 constructs a new QToolButton object. -func NewQToolButton2(parent *QWidget) *QToolButton { - ret := C.QToolButton_new2(parent.cPointer()) +func NewQToolButton2() *QToolButton { + ret := C.QToolButton_new2() return newQToolButton(ret) } diff --git a/qt/gen_qtoolbutton.h b/qt/gen_qtoolbutton.h index b6208c2c..eff72f9c 100644 --- a/qt/gen_qtoolbutton.h +++ b/qt/gen_qtoolbutton.h @@ -29,8 +29,8 @@ typedef struct QToolButton QToolButton; typedef struct QWidget QWidget; #endif -QToolButton* QToolButton_new(); -QToolButton* QToolButton_new2(QWidget* parent); +QToolButton* QToolButton_new(QWidget* parent); +QToolButton* QToolButton_new2(); QMetaObject* QToolButton_MetaObject(const QToolButton* self); void* QToolButton_Metacast(QToolButton* self, const char* param1); struct miqt_string QToolButton_Tr(const char* s); diff --git a/qt/gen_qtreeview.cpp b/qt/gen_qtreeview.cpp index faea1bfb..3c71fd83 100644 --- a/qt/gen_qtreeview.cpp +++ b/qt/gen_qtreeview.cpp @@ -15,12 +15,12 @@ #include "gen_qtreeview.h" #include "_cgo_export.h" -QTreeView* QTreeView_new() { - return new QTreeView(); +QTreeView* QTreeView_new(QWidget* parent) { + return new QTreeView(parent); } -QTreeView* QTreeView_new2(QWidget* parent) { - return new QTreeView(parent); +QTreeView* QTreeView_new2() { + return new QTreeView(); } QMetaObject* QTreeView_MetaObject(const QTreeView* self) { diff --git a/qt/gen_qtreeview.go b/qt/gen_qtreeview.go index 05adaf95..b1b18d3c 100644 --- a/qt/gen_qtreeview.go +++ b/qt/gen_qtreeview.go @@ -45,14 +45,14 @@ func UnsafeNewQTreeView(h unsafe.Pointer) *QTreeView { } // NewQTreeView constructs a new QTreeView object. -func NewQTreeView() *QTreeView { - ret := C.QTreeView_new() +func NewQTreeView(parent *QWidget) *QTreeView { + ret := C.QTreeView_new(parent.cPointer()) return newQTreeView(ret) } // NewQTreeView2 constructs a new QTreeView object. -func NewQTreeView2(parent *QWidget) *QTreeView { - ret := C.QTreeView_new2(parent.cPointer()) +func NewQTreeView2() *QTreeView { + ret := C.QTreeView_new2() return newQTreeView(ret) } diff --git a/qt/gen_qtreeview.h b/qt/gen_qtreeview.h index 94088964..a513085a 100644 --- a/qt/gen_qtreeview.h +++ b/qt/gen_qtreeview.h @@ -35,8 +35,8 @@ typedef struct QTreeView QTreeView; typedef struct QWidget QWidget; #endif -QTreeView* QTreeView_new(); -QTreeView* QTreeView_new2(QWidget* parent); +QTreeView* QTreeView_new(QWidget* parent); +QTreeView* QTreeView_new2(); QMetaObject* QTreeView_MetaObject(const QTreeView* self); void* QTreeView_Metacast(QTreeView* self, const char* param1); struct miqt_string QTreeView_Tr(const char* s); diff --git a/qt/gen_qtreewidget.cpp b/qt/gen_qtreewidget.cpp index abbe5a93..bccc688e 100644 --- a/qt/gen_qtreewidget.cpp +++ b/qt/gen_qtreewidget.cpp @@ -438,12 +438,12 @@ void QTreeWidgetItem_Delete(QTreeWidgetItem* self) { delete self; } -QTreeWidget* QTreeWidget_new() { - return new QTreeWidget(); +QTreeWidget* QTreeWidget_new(QWidget* parent) { + return new QTreeWidget(parent); } -QTreeWidget* QTreeWidget_new2(QWidget* parent) { - return new QTreeWidget(parent); +QTreeWidget* QTreeWidget_new2() { + return new QTreeWidget(); } QMetaObject* QTreeWidget_MetaObject(const QTreeWidget* self) { diff --git a/qt/gen_qtreewidget.go b/qt/gen_qtreewidget.go index 02283aa2..ab087e9a 100644 --- a/qt/gen_qtreewidget.go +++ b/qt/gen_qtreewidget.go @@ -600,14 +600,14 @@ func UnsafeNewQTreeWidget(h unsafe.Pointer) *QTreeWidget { } // NewQTreeWidget constructs a new QTreeWidget object. -func NewQTreeWidget() *QTreeWidget { - ret := C.QTreeWidget_new() +func NewQTreeWidget(parent *QWidget) *QTreeWidget { + ret := C.QTreeWidget_new(parent.cPointer()) return newQTreeWidget(ret) } // NewQTreeWidget2 constructs a new QTreeWidget object. -func NewQTreeWidget2(parent *QWidget) *QTreeWidget { - ret := C.QTreeWidget_new2(parent.cPointer()) +func NewQTreeWidget2() *QTreeWidget { + ret := C.QTreeWidget_new2() return newQTreeWidget(ret) } diff --git a/qt/gen_qtreewidget.h b/qt/gen_qtreewidget.h index 849678e6..8b74ced5 100644 --- a/qt/gen_qtreewidget.h +++ b/qt/gen_qtreewidget.h @@ -126,8 +126,8 @@ int QTreeWidgetItem_Type(const QTreeWidgetItem* self); void QTreeWidgetItem_SortChildren(QTreeWidgetItem* self, int column, int order); void QTreeWidgetItem_Delete(QTreeWidgetItem* self); -QTreeWidget* QTreeWidget_new(); -QTreeWidget* QTreeWidget_new2(QWidget* parent); +QTreeWidget* QTreeWidget_new(QWidget* parent); +QTreeWidget* QTreeWidget_new2(); QMetaObject* QTreeWidget_MetaObject(const QTreeWidget* self); void* QTreeWidget_Metacast(QTreeWidget* self, const char* param1); struct miqt_string QTreeWidget_Tr(const char* s); diff --git a/qt/gen_qundoview.cpp b/qt/gen_qundoview.cpp index d8e9bae2..e81f6479 100644 --- a/qt/gen_qundoview.cpp +++ b/qt/gen_qundoview.cpp @@ -11,22 +11,22 @@ #include "gen_qundoview.h" #include "_cgo_export.h" -QUndoView* QUndoView_new() { +QUndoView* QUndoView_new(QWidget* parent) { + return new QUndoView(parent); +} + +QUndoView* QUndoView_new2() { return new QUndoView(); } -QUndoView* QUndoView_new2(QUndoStack* stack) { +QUndoView* QUndoView_new3(QUndoStack* stack) { return new QUndoView(stack); } -QUndoView* QUndoView_new3(QUndoGroup* group) { +QUndoView* QUndoView_new4(QUndoGroup* group) { return new QUndoView(group); } -QUndoView* QUndoView_new4(QWidget* parent) { - return new QUndoView(parent); -} - QUndoView* QUndoView_new5(QUndoStack* stack, QWidget* parent) { return new QUndoView(stack, parent); } diff --git a/qt/gen_qundoview.go b/qt/gen_qundoview.go index d4858796..c42e6033 100644 --- a/qt/gen_qundoview.go +++ b/qt/gen_qundoview.go @@ -44,26 +44,26 @@ func UnsafeNewQUndoView(h unsafe.Pointer) *QUndoView { } // NewQUndoView constructs a new QUndoView object. -func NewQUndoView() *QUndoView { - ret := C.QUndoView_new() +func NewQUndoView(parent *QWidget) *QUndoView { + ret := C.QUndoView_new(parent.cPointer()) return newQUndoView(ret) } // NewQUndoView2 constructs a new QUndoView object. -func NewQUndoView2(stack *QUndoStack) *QUndoView { - ret := C.QUndoView_new2(stack.cPointer()) +func NewQUndoView2() *QUndoView { + ret := C.QUndoView_new2() return newQUndoView(ret) } // NewQUndoView3 constructs a new QUndoView object. -func NewQUndoView3(group *QUndoGroup) *QUndoView { - ret := C.QUndoView_new3(group.cPointer()) +func NewQUndoView3(stack *QUndoStack) *QUndoView { + ret := C.QUndoView_new3(stack.cPointer()) return newQUndoView(ret) } // NewQUndoView4 constructs a new QUndoView object. -func NewQUndoView4(parent *QWidget) *QUndoView { - ret := C.QUndoView_new4(parent.cPointer()) +func NewQUndoView4(group *QUndoGroup) *QUndoView { + ret := C.QUndoView_new4(group.cPointer()) return newQUndoView(ret) } diff --git a/qt/gen_qundoview.h b/qt/gen_qundoview.h index 6e9b869c..a7977ae8 100644 --- a/qt/gen_qundoview.h +++ b/qt/gen_qundoview.h @@ -29,10 +29,10 @@ typedef struct QUndoView QUndoView; typedef struct QWidget QWidget; #endif -QUndoView* QUndoView_new(); -QUndoView* QUndoView_new2(QUndoStack* stack); -QUndoView* QUndoView_new3(QUndoGroup* group); -QUndoView* QUndoView_new4(QWidget* parent); +QUndoView* QUndoView_new(QWidget* parent); +QUndoView* QUndoView_new2(); +QUndoView* QUndoView_new3(QUndoStack* stack); +QUndoView* QUndoView_new4(QUndoGroup* group); QUndoView* QUndoView_new5(QUndoStack* stack, QWidget* parent); QUndoView* QUndoView_new6(QUndoGroup* group, QWidget* parent); QMetaObject* QUndoView_MetaObject(const QUndoView* self); diff --git a/qt/gen_qwidget.cpp b/qt/gen_qwidget.cpp index 0f4362b6..5bd7afff 100644 --- a/qt/gen_qwidget.cpp +++ b/qt/gen_qwidget.cpp @@ -50,12 +50,12 @@ void QWidgetData_Delete(QWidgetData* self) { delete self; } -QWidget* QWidget_new() { - return new QWidget(); +QWidget* QWidget_new(QWidget* parent) { + return new QWidget(parent); } -QWidget* QWidget_new2(QWidget* parent) { - return new QWidget(parent); +QWidget* QWidget_new2() { + return new QWidget(); } QWidget* QWidget_new3(QWidget* parent, int f) { diff --git a/qt/gen_qwidget.go b/qt/gen_qwidget.go index 99b1bf21..87a587b1 100644 --- a/qt/gen_qwidget.go +++ b/qt/gen_qwidget.go @@ -107,14 +107,14 @@ func UnsafeNewQWidget(h unsafe.Pointer) *QWidget { } // NewQWidget constructs a new QWidget object. -func NewQWidget() *QWidget { - ret := C.QWidget_new() +func NewQWidget(parent *QWidget) *QWidget { + ret := C.QWidget_new(parent.cPointer()) return newQWidget(ret) } // NewQWidget2 constructs a new QWidget object. -func NewQWidget2(parent *QWidget) *QWidget { - ret := C.QWidget_new2(parent.cPointer()) +func NewQWidget2() *QWidget { + ret := C.QWidget_new2() return newQWidget(ret) } diff --git a/qt/gen_qwidget.h b/qt/gen_qwidget.h index b039b1d8..3f1cf0fc 100644 --- a/qt/gen_qwidget.h +++ b/qt/gen_qwidget.h @@ -85,8 +85,8 @@ QWidgetData* QWidgetData_new(QWidgetData* param1); void QWidgetData_OperatorAssign(QWidgetData* self, QWidgetData* param1); void QWidgetData_Delete(QWidgetData* self); -QWidget* QWidget_new(); -QWidget* QWidget_new2(QWidget* parent); +QWidget* QWidget_new(QWidget* parent); +QWidget* QWidget_new2(); QWidget* QWidget_new3(QWidget* parent, int f); QMetaObject* QWidget_MetaObject(const QWidget* self); void* QWidget_Metacast(QWidget* self, const char* param1); diff --git a/qt/gen_qwizard.cpp b/qt/gen_qwizard.cpp index c5a6ebf0..6c631504 100644 --- a/qt/gen_qwizard.cpp +++ b/qt/gen_qwizard.cpp @@ -14,12 +14,12 @@ #include "gen_qwizard.h" #include "_cgo_export.h" -QWizard* QWizard_new() { - return new QWizard(); +QWizard* QWizard_new(QWidget* parent) { + return new QWizard(parent); } -QWizard* QWizard_new2(QWidget* parent) { - return new QWizard(parent); +QWizard* QWizard_new2() { + return new QWizard(); } QWizard* QWizard_new3(QWidget* parent, int flags) { @@ -373,12 +373,12 @@ void QWizard_Delete(QWizard* self) { delete self; } -QWizardPage* QWizardPage_new() { - return new QWizardPage(); +QWizardPage* QWizardPage_new(QWidget* parent) { + return new QWizardPage(parent); } -QWizardPage* QWizardPage_new2(QWidget* parent) { - return new QWizardPage(parent); +QWizardPage* QWizardPage_new2() { + return new QWizardPage(); } QMetaObject* QWizardPage_MetaObject(const QWizardPage* self) { diff --git a/qt/gen_qwizard.go b/qt/gen_qwizard.go index 0d52c4eb..b68b53c0 100644 --- a/qt/gen_qwizard.go +++ b/qt/gen_qwizard.go @@ -105,14 +105,14 @@ func UnsafeNewQWizard(h unsafe.Pointer) *QWizard { } // NewQWizard constructs a new QWizard object. -func NewQWizard() *QWizard { - ret := C.QWizard_new() +func NewQWizard(parent *QWidget) *QWizard { + ret := C.QWizard_new(parent.cPointer()) return newQWizard(ret) } // NewQWizard2 constructs a new QWizard object. -func NewQWizard2(parent *QWidget) *QWizard { - ret := C.QWizard_new2(parent.cPointer()) +func NewQWizard2() *QWizard { + ret := C.QWizard_new2() return newQWizard(ret) } @@ -563,14 +563,14 @@ func UnsafeNewQWizardPage(h unsafe.Pointer) *QWizardPage { } // NewQWizardPage constructs a new QWizardPage object. -func NewQWizardPage() *QWizardPage { - ret := C.QWizardPage_new() +func NewQWizardPage(parent *QWidget) *QWizardPage { + ret := C.QWizardPage_new(parent.cPointer()) return newQWizardPage(ret) } // NewQWizardPage2 constructs a new QWizardPage object. -func NewQWizardPage2(parent *QWidget) *QWizardPage { - ret := C.QWizardPage_new2(parent.cPointer()) +func NewQWizardPage2() *QWizardPage { + ret := C.QWizardPage_new2() return newQWizardPage(ret) } diff --git a/qt/gen_qwizard.h b/qt/gen_qwizard.h index fbcbdf86..7b3f1f13 100644 --- a/qt/gen_qwizard.h +++ b/qt/gen_qwizard.h @@ -33,8 +33,8 @@ typedef struct QWizard QWizard; typedef struct QWizardPage QWizardPage; #endif -QWizard* QWizard_new(); -QWizard* QWizard_new2(QWidget* parent); +QWizard* QWizard_new(QWidget* parent); +QWizard* QWizard_new2(); QWizard* QWizard_new3(QWidget* parent, int flags); QMetaObject* QWizard_MetaObject(const QWizard* self); void* QWizard_Metacast(QWizard* self, const char* param1); @@ -98,8 +98,8 @@ struct miqt_string QWizard_TrUtf83(const char* s, const char* c, int n); void QWizard_SetOption2(QWizard* self, int option, bool on); void QWizard_Delete(QWizard* self); -QWizardPage* QWizardPage_new(); -QWizardPage* QWizardPage_new2(QWidget* parent); +QWizardPage* QWizardPage_new(QWidget* parent); +QWizardPage* QWizardPage_new2(); QMetaObject* QWizardPage_MetaObject(const QWizardPage* self); void* QWizardPage_Metacast(QWizardPage* self, const char* param1); struct miqt_string QWizardPage_Tr(const char* s); diff --git a/qt/qprintsupport/gen_qpagesetupdialog.cpp b/qt/qprintsupport/gen_qpagesetupdialog.cpp index 847fff92..93482070 100644 --- a/qt/qprintsupport/gen_qpagesetupdialog.cpp +++ b/qt/qprintsupport/gen_qpagesetupdialog.cpp @@ -9,22 +9,22 @@ #include "gen_qpagesetupdialog.h" #include "_cgo_export.h" -QPageSetupDialog* QPageSetupDialog_new(QPrinter* printer) { +QPageSetupDialog* QPageSetupDialog_new(QWidget* parent) { + return new QPageSetupDialog(parent); +} + +QPageSetupDialog* QPageSetupDialog_new2(QPrinter* printer) { return new QPageSetupDialog(printer); } -QPageSetupDialog* QPageSetupDialog_new2() { +QPageSetupDialog* QPageSetupDialog_new3() { return new QPageSetupDialog(); } -QPageSetupDialog* QPageSetupDialog_new3(QPrinter* printer, QWidget* parent) { +QPageSetupDialog* QPageSetupDialog_new4(QPrinter* printer, QWidget* parent) { return new QPageSetupDialog(printer, parent); } -QPageSetupDialog* QPageSetupDialog_new4(QWidget* parent) { - return new QPageSetupDialog(parent); -} - QMetaObject* QPageSetupDialog_MetaObject(const QPageSetupDialog* self) { return (QMetaObject*) self->metaObject(); } diff --git a/qt/qprintsupport/gen_qpagesetupdialog.go b/qt/qprintsupport/gen_qpagesetupdialog.go index 39d055e8..49ece7e8 100644 --- a/qt/qprintsupport/gen_qpagesetupdialog.go +++ b/qt/qprintsupport/gen_qpagesetupdialog.go @@ -45,26 +45,26 @@ func UnsafeNewQPageSetupDialog(h unsafe.Pointer) *QPageSetupDialog { } // NewQPageSetupDialog constructs a new QPageSetupDialog object. -func NewQPageSetupDialog(printer *QPrinter) *QPageSetupDialog { - ret := C.QPageSetupDialog_new(printer.cPointer()) +func NewQPageSetupDialog(parent *qt.QWidget) *QPageSetupDialog { + ret := C.QPageSetupDialog_new((*C.QWidget)(parent.UnsafePointer())) return newQPageSetupDialog(ret) } // NewQPageSetupDialog2 constructs a new QPageSetupDialog object. -func NewQPageSetupDialog2() *QPageSetupDialog { - ret := C.QPageSetupDialog_new2() +func NewQPageSetupDialog2(printer *QPrinter) *QPageSetupDialog { + ret := C.QPageSetupDialog_new2(printer.cPointer()) return newQPageSetupDialog(ret) } // NewQPageSetupDialog3 constructs a new QPageSetupDialog object. -func NewQPageSetupDialog3(printer *QPrinter, parent *qt.QWidget) *QPageSetupDialog { - ret := C.QPageSetupDialog_new3(printer.cPointer(), (*C.QWidget)(parent.UnsafePointer())) +func NewQPageSetupDialog3() *QPageSetupDialog { + ret := C.QPageSetupDialog_new3() return newQPageSetupDialog(ret) } // NewQPageSetupDialog4 constructs a new QPageSetupDialog object. -func NewQPageSetupDialog4(parent *qt.QWidget) *QPageSetupDialog { - ret := C.QPageSetupDialog_new4((*C.QWidget)(parent.UnsafePointer())) +func NewQPageSetupDialog4(printer *QPrinter, parent *qt.QWidget) *QPageSetupDialog { + ret := C.QPageSetupDialog_new4(printer.cPointer(), (*C.QWidget)(parent.UnsafePointer())) return newQPageSetupDialog(ret) } diff --git a/qt/qprintsupport/gen_qpagesetupdialog.h b/qt/qprintsupport/gen_qpagesetupdialog.h index be0d8aa4..3fab2a2c 100644 --- a/qt/qprintsupport/gen_qpagesetupdialog.h +++ b/qt/qprintsupport/gen_qpagesetupdialog.h @@ -25,10 +25,10 @@ typedef struct QPrinter QPrinter; typedef struct QWidget QWidget; #endif -QPageSetupDialog* QPageSetupDialog_new(QPrinter* printer); -QPageSetupDialog* QPageSetupDialog_new2(); -QPageSetupDialog* QPageSetupDialog_new3(QPrinter* printer, QWidget* parent); -QPageSetupDialog* QPageSetupDialog_new4(QWidget* parent); +QPageSetupDialog* QPageSetupDialog_new(QWidget* parent); +QPageSetupDialog* QPageSetupDialog_new2(QPrinter* printer); +QPageSetupDialog* QPageSetupDialog_new3(); +QPageSetupDialog* QPageSetupDialog_new4(QPrinter* printer, QWidget* parent); QMetaObject* QPageSetupDialog_MetaObject(const QPageSetupDialog* self); void* QPageSetupDialog_Metacast(QPageSetupDialog* self, const char* param1); struct miqt_string QPageSetupDialog_Tr(const char* s); diff --git a/qt/qprintsupport/gen_qprintdialog.cpp b/qt/qprintsupport/gen_qprintdialog.cpp index 3ec6dfc8..7f8e0b66 100644 --- a/qt/qprintsupport/gen_qprintdialog.cpp +++ b/qt/qprintsupport/gen_qprintdialog.cpp @@ -9,22 +9,22 @@ #include "gen_qprintdialog.h" #include "_cgo_export.h" -QPrintDialog* QPrintDialog_new(QPrinter* printer) { +QPrintDialog* QPrintDialog_new(QWidget* parent) { + return new QPrintDialog(parent); +} + +QPrintDialog* QPrintDialog_new2(QPrinter* printer) { return new QPrintDialog(printer); } -QPrintDialog* QPrintDialog_new2() { +QPrintDialog* QPrintDialog_new3() { return new QPrintDialog(); } -QPrintDialog* QPrintDialog_new3(QPrinter* printer, QWidget* parent) { +QPrintDialog* QPrintDialog_new4(QPrinter* printer, QWidget* parent) { return new QPrintDialog(printer, parent); } -QPrintDialog* QPrintDialog_new4(QWidget* parent) { - return new QPrintDialog(parent); -} - QMetaObject* QPrintDialog_MetaObject(const QPrintDialog* self) { return (QMetaObject*) self->metaObject(); } diff --git a/qt/qprintsupport/gen_qprintdialog.go b/qt/qprintsupport/gen_qprintdialog.go index daa4fa55..8af4f37c 100644 --- a/qt/qprintsupport/gen_qprintdialog.go +++ b/qt/qprintsupport/gen_qprintdialog.go @@ -46,26 +46,26 @@ func UnsafeNewQPrintDialog(h unsafe.Pointer) *QPrintDialog { } // NewQPrintDialog constructs a new QPrintDialog object. -func NewQPrintDialog(printer *QPrinter) *QPrintDialog { - ret := C.QPrintDialog_new(printer.cPointer()) +func NewQPrintDialog(parent *qt.QWidget) *QPrintDialog { + ret := C.QPrintDialog_new((*C.QWidget)(parent.UnsafePointer())) return newQPrintDialog(ret) } // NewQPrintDialog2 constructs a new QPrintDialog object. -func NewQPrintDialog2() *QPrintDialog { - ret := C.QPrintDialog_new2() +func NewQPrintDialog2(printer *QPrinter) *QPrintDialog { + ret := C.QPrintDialog_new2(printer.cPointer()) return newQPrintDialog(ret) } // NewQPrintDialog3 constructs a new QPrintDialog object. -func NewQPrintDialog3(printer *QPrinter, parent *qt.QWidget) *QPrintDialog { - ret := C.QPrintDialog_new3(printer.cPointer(), (*C.QWidget)(parent.UnsafePointer())) +func NewQPrintDialog3() *QPrintDialog { + ret := C.QPrintDialog_new3() return newQPrintDialog(ret) } // NewQPrintDialog4 constructs a new QPrintDialog object. -func NewQPrintDialog4(parent *qt.QWidget) *QPrintDialog { - ret := C.QPrintDialog_new4((*C.QWidget)(parent.UnsafePointer())) +func NewQPrintDialog4(printer *QPrinter, parent *qt.QWidget) *QPrintDialog { + ret := C.QPrintDialog_new4(printer.cPointer(), (*C.QWidget)(parent.UnsafePointer())) return newQPrintDialog(ret) } diff --git a/qt/qprintsupport/gen_qprintdialog.h b/qt/qprintsupport/gen_qprintdialog.h index cf720a44..412fb07b 100644 --- a/qt/qprintsupport/gen_qprintdialog.h +++ b/qt/qprintsupport/gen_qprintdialog.h @@ -25,10 +25,10 @@ typedef struct QPrinter QPrinter; typedef struct QWidget QWidget; #endif -QPrintDialog* QPrintDialog_new(QPrinter* printer); -QPrintDialog* QPrintDialog_new2(); -QPrintDialog* QPrintDialog_new3(QPrinter* printer, QWidget* parent); -QPrintDialog* QPrintDialog_new4(QWidget* parent); +QPrintDialog* QPrintDialog_new(QWidget* parent); +QPrintDialog* QPrintDialog_new2(QPrinter* printer); +QPrintDialog* QPrintDialog_new3(); +QPrintDialog* QPrintDialog_new4(QPrinter* printer, QWidget* parent); QMetaObject* QPrintDialog_MetaObject(const QPrintDialog* self); void* QPrintDialog_Metacast(QPrintDialog* self, const char* param1); struct miqt_string QPrintDialog_Tr(const char* s); diff --git a/qt/qprintsupport/gen_qprintpreviewdialog.cpp b/qt/qprintsupport/gen_qprintpreviewdialog.cpp index 7b648068..b5f6e32a 100644 --- a/qt/qprintsupport/gen_qprintpreviewdialog.cpp +++ b/qt/qprintsupport/gen_qprintpreviewdialog.cpp @@ -9,16 +9,16 @@ #include "gen_qprintpreviewdialog.h" #include "_cgo_export.h" -QPrintPreviewDialog* QPrintPreviewDialog_new() { - return new QPrintPreviewDialog(); +QPrintPreviewDialog* QPrintPreviewDialog_new(QWidget* parent) { + return new QPrintPreviewDialog(parent); } -QPrintPreviewDialog* QPrintPreviewDialog_new2(QPrinter* printer) { - return new QPrintPreviewDialog(printer); +QPrintPreviewDialog* QPrintPreviewDialog_new2() { + return new QPrintPreviewDialog(); } -QPrintPreviewDialog* QPrintPreviewDialog_new3(QWidget* parent) { - return new QPrintPreviewDialog(parent); +QPrintPreviewDialog* QPrintPreviewDialog_new3(QPrinter* printer) { + return new QPrintPreviewDialog(printer); } QPrintPreviewDialog* QPrintPreviewDialog_new4(QWidget* parent, int flags) { diff --git a/qt/qprintsupport/gen_qprintpreviewdialog.go b/qt/qprintsupport/gen_qprintpreviewdialog.go index b606bafd..ce0534f1 100644 --- a/qt/qprintsupport/gen_qprintpreviewdialog.go +++ b/qt/qprintsupport/gen_qprintpreviewdialog.go @@ -46,20 +46,20 @@ func UnsafeNewQPrintPreviewDialog(h unsafe.Pointer) *QPrintPreviewDialog { } // NewQPrintPreviewDialog constructs a new QPrintPreviewDialog object. -func NewQPrintPreviewDialog() *QPrintPreviewDialog { - ret := C.QPrintPreviewDialog_new() +func NewQPrintPreviewDialog(parent *qt.QWidget) *QPrintPreviewDialog { + ret := C.QPrintPreviewDialog_new((*C.QWidget)(parent.UnsafePointer())) return newQPrintPreviewDialog(ret) } // NewQPrintPreviewDialog2 constructs a new QPrintPreviewDialog object. -func NewQPrintPreviewDialog2(printer *QPrinter) *QPrintPreviewDialog { - ret := C.QPrintPreviewDialog_new2(printer.cPointer()) +func NewQPrintPreviewDialog2() *QPrintPreviewDialog { + ret := C.QPrintPreviewDialog_new2() return newQPrintPreviewDialog(ret) } // NewQPrintPreviewDialog3 constructs a new QPrintPreviewDialog object. -func NewQPrintPreviewDialog3(parent *qt.QWidget) *QPrintPreviewDialog { - ret := C.QPrintPreviewDialog_new3((*C.QWidget)(parent.UnsafePointer())) +func NewQPrintPreviewDialog3(printer *QPrinter) *QPrintPreviewDialog { + ret := C.QPrintPreviewDialog_new3(printer.cPointer()) return newQPrintPreviewDialog(ret) } diff --git a/qt/qprintsupport/gen_qprintpreviewdialog.h b/qt/qprintsupport/gen_qprintpreviewdialog.h index 3355d632..10ccb4a7 100644 --- a/qt/qprintsupport/gen_qprintpreviewdialog.h +++ b/qt/qprintsupport/gen_qprintpreviewdialog.h @@ -25,9 +25,9 @@ typedef struct QPrinter QPrinter; typedef struct QWidget QWidget; #endif -QPrintPreviewDialog* QPrintPreviewDialog_new(); -QPrintPreviewDialog* QPrintPreviewDialog_new2(QPrinter* printer); -QPrintPreviewDialog* QPrintPreviewDialog_new3(QWidget* parent); +QPrintPreviewDialog* QPrintPreviewDialog_new(QWidget* parent); +QPrintPreviewDialog* QPrintPreviewDialog_new2(); +QPrintPreviewDialog* QPrintPreviewDialog_new3(QPrinter* printer); QPrintPreviewDialog* QPrintPreviewDialog_new4(QWidget* parent, int flags); QPrintPreviewDialog* QPrintPreviewDialog_new5(QPrinter* printer, QWidget* parent); QPrintPreviewDialog* QPrintPreviewDialog_new6(QPrinter* printer, QWidget* parent, int flags); diff --git a/qt/qprintsupport/gen_qprintpreviewwidget.cpp b/qt/qprintsupport/gen_qprintpreviewwidget.cpp index 8e7eef15..351a7847 100644 --- a/qt/qprintsupport/gen_qprintpreviewwidget.cpp +++ b/qt/qprintsupport/gen_qprintpreviewwidget.cpp @@ -9,26 +9,26 @@ #include "gen_qprintpreviewwidget.h" #include "_cgo_export.h" -QPrintPreviewWidget* QPrintPreviewWidget_new(QPrinter* printer) { +QPrintPreviewWidget* QPrintPreviewWidget_new(QWidget* parent) { + return new QPrintPreviewWidget(parent); +} + +QPrintPreviewWidget* QPrintPreviewWidget_new2(QPrinter* printer) { return new QPrintPreviewWidget(printer); } -QPrintPreviewWidget* QPrintPreviewWidget_new2() { +QPrintPreviewWidget* QPrintPreviewWidget_new3() { return new QPrintPreviewWidget(); } -QPrintPreviewWidget* QPrintPreviewWidget_new3(QPrinter* printer, QWidget* parent) { +QPrintPreviewWidget* QPrintPreviewWidget_new4(QPrinter* printer, QWidget* parent) { return new QPrintPreviewWidget(printer, parent); } -QPrintPreviewWidget* QPrintPreviewWidget_new4(QPrinter* printer, QWidget* parent, int flags) { +QPrintPreviewWidget* QPrintPreviewWidget_new5(QPrinter* printer, QWidget* parent, int flags) { return new QPrintPreviewWidget(printer, parent, static_cast(flags)); } -QPrintPreviewWidget* QPrintPreviewWidget_new5(QWidget* parent) { - return new QPrintPreviewWidget(parent); -} - QPrintPreviewWidget* QPrintPreviewWidget_new6(QWidget* parent, int flags) { return new QPrintPreviewWidget(parent, static_cast(flags)); } diff --git a/qt/qprintsupport/gen_qprintpreviewwidget.go b/qt/qprintsupport/gen_qprintpreviewwidget.go index 14b5f6c7..3ad0e007 100644 --- a/qt/qprintsupport/gen_qprintpreviewwidget.go +++ b/qt/qprintsupport/gen_qprintpreviewwidget.go @@ -62,32 +62,32 @@ func UnsafeNewQPrintPreviewWidget(h unsafe.Pointer) *QPrintPreviewWidget { } // NewQPrintPreviewWidget constructs a new QPrintPreviewWidget object. -func NewQPrintPreviewWidget(printer *QPrinter) *QPrintPreviewWidget { - ret := C.QPrintPreviewWidget_new(printer.cPointer()) +func NewQPrintPreviewWidget(parent *qt.QWidget) *QPrintPreviewWidget { + ret := C.QPrintPreviewWidget_new((*C.QWidget)(parent.UnsafePointer())) return newQPrintPreviewWidget(ret) } // NewQPrintPreviewWidget2 constructs a new QPrintPreviewWidget object. -func NewQPrintPreviewWidget2() *QPrintPreviewWidget { - ret := C.QPrintPreviewWidget_new2() +func NewQPrintPreviewWidget2(printer *QPrinter) *QPrintPreviewWidget { + ret := C.QPrintPreviewWidget_new2(printer.cPointer()) return newQPrintPreviewWidget(ret) } // NewQPrintPreviewWidget3 constructs a new QPrintPreviewWidget object. -func NewQPrintPreviewWidget3(printer *QPrinter, parent *qt.QWidget) *QPrintPreviewWidget { - ret := C.QPrintPreviewWidget_new3(printer.cPointer(), (*C.QWidget)(parent.UnsafePointer())) +func NewQPrintPreviewWidget3() *QPrintPreviewWidget { + ret := C.QPrintPreviewWidget_new3() return newQPrintPreviewWidget(ret) } // NewQPrintPreviewWidget4 constructs a new QPrintPreviewWidget object. -func NewQPrintPreviewWidget4(printer *QPrinter, parent *qt.QWidget, flags qt.WindowType) *QPrintPreviewWidget { - ret := C.QPrintPreviewWidget_new4(printer.cPointer(), (*C.QWidget)(parent.UnsafePointer()), (C.int)(flags)) +func NewQPrintPreviewWidget4(printer *QPrinter, parent *qt.QWidget) *QPrintPreviewWidget { + ret := C.QPrintPreviewWidget_new4(printer.cPointer(), (*C.QWidget)(parent.UnsafePointer())) return newQPrintPreviewWidget(ret) } // NewQPrintPreviewWidget5 constructs a new QPrintPreviewWidget object. -func NewQPrintPreviewWidget5(parent *qt.QWidget) *QPrintPreviewWidget { - ret := C.QPrintPreviewWidget_new5((*C.QWidget)(parent.UnsafePointer())) +func NewQPrintPreviewWidget5(printer *QPrinter, parent *qt.QWidget, flags qt.WindowType) *QPrintPreviewWidget { + ret := C.QPrintPreviewWidget_new5(printer.cPointer(), (*C.QWidget)(parent.UnsafePointer()), (C.int)(flags)) return newQPrintPreviewWidget(ret) } diff --git a/qt/qprintsupport/gen_qprintpreviewwidget.h b/qt/qprintsupport/gen_qprintpreviewwidget.h index 7e54870d..25e3cf67 100644 --- a/qt/qprintsupport/gen_qprintpreviewwidget.h +++ b/qt/qprintsupport/gen_qprintpreviewwidget.h @@ -25,11 +25,11 @@ typedef struct QPrinter QPrinter; typedef struct QWidget QWidget; #endif -QPrintPreviewWidget* QPrintPreviewWidget_new(QPrinter* printer); -QPrintPreviewWidget* QPrintPreviewWidget_new2(); -QPrintPreviewWidget* QPrintPreviewWidget_new3(QPrinter* printer, QWidget* parent); -QPrintPreviewWidget* QPrintPreviewWidget_new4(QPrinter* printer, QWidget* parent, int flags); -QPrintPreviewWidget* QPrintPreviewWidget_new5(QWidget* parent); +QPrintPreviewWidget* QPrintPreviewWidget_new(QWidget* parent); +QPrintPreviewWidget* QPrintPreviewWidget_new2(QPrinter* printer); +QPrintPreviewWidget* QPrintPreviewWidget_new3(); +QPrintPreviewWidget* QPrintPreviewWidget_new4(QPrinter* printer, QWidget* parent); +QPrintPreviewWidget* QPrintPreviewWidget_new5(QPrinter* printer, QWidget* parent, int flags); QPrintPreviewWidget* QPrintPreviewWidget_new6(QWidget* parent, int flags); QMetaObject* QPrintPreviewWidget_MetaObject(const QPrintPreviewWidget* self); void* QPrintPreviewWidget_Metacast(QPrintPreviewWidget* self, const char* param1); diff --git a/qt6/gen_qabstractscrollarea.cpp b/qt6/gen_qabstractscrollarea.cpp index 9e909b66..962a8105 100644 --- a/qt6/gen_qabstractscrollarea.cpp +++ b/qt6/gen_qabstractscrollarea.cpp @@ -11,12 +11,12 @@ #include "gen_qabstractscrollarea.h" #include "_cgo_export.h" -QAbstractScrollArea* QAbstractScrollArea_new() { - return new QAbstractScrollArea(); +QAbstractScrollArea* QAbstractScrollArea_new(QWidget* parent) { + return new QAbstractScrollArea(parent); } -QAbstractScrollArea* QAbstractScrollArea_new2(QWidget* parent) { - return new QAbstractScrollArea(parent); +QAbstractScrollArea* QAbstractScrollArea_new2() { + return new QAbstractScrollArea(); } QMetaObject* QAbstractScrollArea_MetaObject(const QAbstractScrollArea* self) { diff --git a/qt6/gen_qabstractscrollarea.go b/qt6/gen_qabstractscrollarea.go index 5298ab4c..c9c53437 100644 --- a/qt6/gen_qabstractscrollarea.go +++ b/qt6/gen_qabstractscrollarea.go @@ -52,14 +52,14 @@ func UnsafeNewQAbstractScrollArea(h unsafe.Pointer) *QAbstractScrollArea { } // NewQAbstractScrollArea constructs a new QAbstractScrollArea object. -func NewQAbstractScrollArea() *QAbstractScrollArea { - ret := C.QAbstractScrollArea_new() +func NewQAbstractScrollArea(parent *QWidget) *QAbstractScrollArea { + ret := C.QAbstractScrollArea_new(parent.cPointer()) return newQAbstractScrollArea(ret) } // NewQAbstractScrollArea2 constructs a new QAbstractScrollArea object. -func NewQAbstractScrollArea2(parent *QWidget) *QAbstractScrollArea { - ret := C.QAbstractScrollArea_new2(parent.cPointer()) +func NewQAbstractScrollArea2() *QAbstractScrollArea { + ret := C.QAbstractScrollArea_new2() return newQAbstractScrollArea(ret) } diff --git a/qt6/gen_qabstractscrollarea.h b/qt6/gen_qabstractscrollarea.h index 04e06a81..3329bc9b 100644 --- a/qt6/gen_qabstractscrollarea.h +++ b/qt6/gen_qabstractscrollarea.h @@ -27,8 +27,8 @@ typedef struct QSize QSize; typedef struct QWidget QWidget; #endif -QAbstractScrollArea* QAbstractScrollArea_new(); -QAbstractScrollArea* QAbstractScrollArea_new2(QWidget* parent); +QAbstractScrollArea* QAbstractScrollArea_new(QWidget* parent); +QAbstractScrollArea* QAbstractScrollArea_new2(); QMetaObject* QAbstractScrollArea_MetaObject(const QAbstractScrollArea* self); void* QAbstractScrollArea_Metacast(QAbstractScrollArea* self, const char* param1); struct miqt_string QAbstractScrollArea_Tr(const char* s); diff --git a/qt6/gen_qabstractslider.cpp b/qt6/gen_qabstractslider.cpp index 38a9c190..09423416 100644 --- a/qt6/gen_qabstractslider.cpp +++ b/qt6/gen_qabstractslider.cpp @@ -8,12 +8,12 @@ #include "gen_qabstractslider.h" #include "_cgo_export.h" -QAbstractSlider* QAbstractSlider_new() { - return new QAbstractSlider(); +QAbstractSlider* QAbstractSlider_new(QWidget* parent) { + return new QAbstractSlider(parent); } -QAbstractSlider* QAbstractSlider_new2(QWidget* parent) { - return new QAbstractSlider(parent); +QAbstractSlider* QAbstractSlider_new2() { + return new QAbstractSlider(); } QMetaObject* QAbstractSlider_MetaObject(const QAbstractSlider* self) { diff --git a/qt6/gen_qabstractslider.go b/qt6/gen_qabstractslider.go index 8f627abb..0fc6a2a6 100644 --- a/qt6/gen_qabstractslider.go +++ b/qt6/gen_qabstractslider.go @@ -58,14 +58,14 @@ func UnsafeNewQAbstractSlider(h unsafe.Pointer) *QAbstractSlider { } // NewQAbstractSlider constructs a new QAbstractSlider object. -func NewQAbstractSlider() *QAbstractSlider { - ret := C.QAbstractSlider_new() +func NewQAbstractSlider(parent *QWidget) *QAbstractSlider { + ret := C.QAbstractSlider_new(parent.cPointer()) return newQAbstractSlider(ret) } // NewQAbstractSlider2 constructs a new QAbstractSlider object. -func NewQAbstractSlider2(parent *QWidget) *QAbstractSlider { - ret := C.QAbstractSlider_new2(parent.cPointer()) +func NewQAbstractSlider2() *QAbstractSlider { + ret := C.QAbstractSlider_new2() return newQAbstractSlider(ret) } diff --git a/qt6/gen_qabstractslider.h b/qt6/gen_qabstractslider.h index a78d92e5..a65208d4 100644 --- a/qt6/gen_qabstractslider.h +++ b/qt6/gen_qabstractslider.h @@ -23,8 +23,8 @@ typedef struct QMetaObject QMetaObject; typedef struct QWidget QWidget; #endif -QAbstractSlider* QAbstractSlider_new(); -QAbstractSlider* QAbstractSlider_new2(QWidget* parent); +QAbstractSlider* QAbstractSlider_new(QWidget* parent); +QAbstractSlider* QAbstractSlider_new2(); QMetaObject* QAbstractSlider_MetaObject(const QAbstractSlider* self); void* QAbstractSlider_Metacast(QAbstractSlider* self, const char* param1); struct miqt_string QAbstractSlider_Tr(const char* s); diff --git a/qt6/gen_qabstractspinbox.cpp b/qt6/gen_qabstractspinbox.cpp index c9a9f306..219d0bb3 100644 --- a/qt6/gen_qabstractspinbox.cpp +++ b/qt6/gen_qabstractspinbox.cpp @@ -11,12 +11,12 @@ #include "gen_qabstractspinbox.h" #include "_cgo_export.h" -QAbstractSpinBox* QAbstractSpinBox_new() { - return new QAbstractSpinBox(); +QAbstractSpinBox* QAbstractSpinBox_new(QWidget* parent) { + return new QAbstractSpinBox(parent); } -QAbstractSpinBox* QAbstractSpinBox_new2(QWidget* parent) { - return new QAbstractSpinBox(parent); +QAbstractSpinBox* QAbstractSpinBox_new2() { + return new QAbstractSpinBox(); } QMetaObject* QAbstractSpinBox_MetaObject(const QAbstractSpinBox* self) { diff --git a/qt6/gen_qabstractspinbox.go b/qt6/gen_qabstractspinbox.go index b7c3bd2c..a6707bc3 100644 --- a/qt6/gen_qabstractspinbox.go +++ b/qt6/gen_qabstractspinbox.go @@ -75,14 +75,14 @@ func UnsafeNewQAbstractSpinBox(h unsafe.Pointer) *QAbstractSpinBox { } // NewQAbstractSpinBox constructs a new QAbstractSpinBox object. -func NewQAbstractSpinBox() *QAbstractSpinBox { - ret := C.QAbstractSpinBox_new() +func NewQAbstractSpinBox(parent *QWidget) *QAbstractSpinBox { + ret := C.QAbstractSpinBox_new(parent.cPointer()) return newQAbstractSpinBox(ret) } // NewQAbstractSpinBox2 constructs a new QAbstractSpinBox object. -func NewQAbstractSpinBox2(parent *QWidget) *QAbstractSpinBox { - ret := C.QAbstractSpinBox_new2(parent.cPointer()) +func NewQAbstractSpinBox2() *QAbstractSpinBox { + ret := C.QAbstractSpinBox_new2() return newQAbstractSpinBox(ret) } diff --git a/qt6/gen_qabstractspinbox.h b/qt6/gen_qabstractspinbox.h index c376fb4a..8ccea805 100644 --- a/qt6/gen_qabstractspinbox.h +++ b/qt6/gen_qabstractspinbox.h @@ -29,8 +29,8 @@ typedef struct QVariant QVariant; typedef struct QWidget QWidget; #endif -QAbstractSpinBox* QAbstractSpinBox_new(); -QAbstractSpinBox* QAbstractSpinBox_new2(QWidget* parent); +QAbstractSpinBox* QAbstractSpinBox_new(QWidget* parent); +QAbstractSpinBox* QAbstractSpinBox_new2(); QMetaObject* QAbstractSpinBox_MetaObject(const QAbstractSpinBox* self); void* QAbstractSpinBox_Metacast(QAbstractSpinBox* self, const char* param1); struct miqt_string QAbstractSpinBox_Tr(const char* s); diff --git a/qt6/gen_qboxlayout.cpp b/qt6/gen_qboxlayout.cpp index 408813dd..34ba53f8 100644 --- a/qt6/gen_qboxlayout.cpp +++ b/qt6/gen_qboxlayout.cpp @@ -234,12 +234,12 @@ void QBoxLayout_Delete(QBoxLayout* self) { delete self; } -QHBoxLayout* QHBoxLayout_new() { - return new QHBoxLayout(); +QHBoxLayout* QHBoxLayout_new(QWidget* parent) { + return new QHBoxLayout(parent); } -QHBoxLayout* QHBoxLayout_new2(QWidget* parent) { - return new QHBoxLayout(parent); +QHBoxLayout* QHBoxLayout_new2() { + return new QHBoxLayout(); } QMetaObject* QHBoxLayout_MetaObject(const QHBoxLayout* self) { @@ -287,12 +287,12 @@ void QHBoxLayout_Delete(QHBoxLayout* self) { delete self; } -QVBoxLayout* QVBoxLayout_new() { - return new QVBoxLayout(); +QVBoxLayout* QVBoxLayout_new(QWidget* parent) { + return new QVBoxLayout(parent); } -QVBoxLayout* QVBoxLayout_new2(QWidget* parent) { - return new QVBoxLayout(parent); +QVBoxLayout* QVBoxLayout_new2() { + return new QVBoxLayout(); } QMetaObject* QVBoxLayout_MetaObject(const QVBoxLayout* self) { diff --git a/qt6/gen_qboxlayout.go b/qt6/gen_qboxlayout.go index 1531677c..b1ca9d14 100644 --- a/qt6/gen_qboxlayout.go +++ b/qt6/gen_qboxlayout.go @@ -325,14 +325,14 @@ func UnsafeNewQHBoxLayout(h unsafe.Pointer) *QHBoxLayout { } // NewQHBoxLayout constructs a new QHBoxLayout object. -func NewQHBoxLayout() *QHBoxLayout { - ret := C.QHBoxLayout_new() +func NewQHBoxLayout(parent *QWidget) *QHBoxLayout { + ret := C.QHBoxLayout_new(parent.cPointer()) return newQHBoxLayout(ret) } // NewQHBoxLayout2 constructs a new QHBoxLayout object. -func NewQHBoxLayout2(parent *QWidget) *QHBoxLayout { - ret := C.QHBoxLayout_new2(parent.cPointer()) +func NewQHBoxLayout2() *QHBoxLayout { + ret := C.QHBoxLayout_new2() return newQHBoxLayout(ret) } @@ -422,14 +422,14 @@ func UnsafeNewQVBoxLayout(h unsafe.Pointer) *QVBoxLayout { } // NewQVBoxLayout constructs a new QVBoxLayout object. -func NewQVBoxLayout() *QVBoxLayout { - ret := C.QVBoxLayout_new() +func NewQVBoxLayout(parent *QWidget) *QVBoxLayout { + ret := C.QVBoxLayout_new(parent.cPointer()) return newQVBoxLayout(ret) } // NewQVBoxLayout2 constructs a new QVBoxLayout object. -func NewQVBoxLayout2(parent *QWidget) *QVBoxLayout { - ret := C.QVBoxLayout_new2(parent.cPointer()) +func NewQVBoxLayout2() *QVBoxLayout { + ret := C.QVBoxLayout_new2() return newQVBoxLayout(ret) } diff --git a/qt6/gen_qboxlayout.h b/qt6/gen_qboxlayout.h index df226800..db483903 100644 --- a/qt6/gen_qboxlayout.h +++ b/qt6/gen_qboxlayout.h @@ -87,8 +87,8 @@ void QBoxLayout_InsertWidget4(QBoxLayout* self, int index, QWidget* widget, int void QBoxLayout_InsertLayout3(QBoxLayout* self, int index, QLayout* layout, int stretch); void QBoxLayout_Delete(QBoxLayout* self); -QHBoxLayout* QHBoxLayout_new(); -QHBoxLayout* QHBoxLayout_new2(QWidget* parent); +QHBoxLayout* QHBoxLayout_new(QWidget* parent); +QHBoxLayout* QHBoxLayout_new2(); QMetaObject* QHBoxLayout_MetaObject(const QHBoxLayout* self); void* QHBoxLayout_Metacast(QHBoxLayout* self, const char* param1); struct miqt_string QHBoxLayout_Tr(const char* s); @@ -96,8 +96,8 @@ struct miqt_string QHBoxLayout_Tr2(const char* s, const char* c); struct miqt_string QHBoxLayout_Tr3(const char* s, const char* c, int n); void QHBoxLayout_Delete(QHBoxLayout* self); -QVBoxLayout* QVBoxLayout_new(); -QVBoxLayout* QVBoxLayout_new2(QWidget* parent); +QVBoxLayout* QVBoxLayout_new(QWidget* parent); +QVBoxLayout* QVBoxLayout_new2(); QMetaObject* QVBoxLayout_MetaObject(const QVBoxLayout* self); void* QVBoxLayout_Metacast(QVBoxLayout* self, const char* param1); struct miqt_string QVBoxLayout_Tr(const char* s); diff --git a/qt6/gen_qcalendarwidget.cpp b/qt6/gen_qcalendarwidget.cpp index 0385fc48..70722935 100644 --- a/qt6/gen_qcalendarwidget.cpp +++ b/qt6/gen_qcalendarwidget.cpp @@ -12,12 +12,12 @@ #include "gen_qcalendarwidget.h" #include "_cgo_export.h" -QCalendarWidget* QCalendarWidget_new() { - return new QCalendarWidget(); +QCalendarWidget* QCalendarWidget_new(QWidget* parent) { + return new QCalendarWidget(parent); } -QCalendarWidget* QCalendarWidget_new2(QWidget* parent) { - return new QCalendarWidget(parent); +QCalendarWidget* QCalendarWidget_new2() { + return new QCalendarWidget(); } QMetaObject* QCalendarWidget_MetaObject(const QCalendarWidget* self) { diff --git a/qt6/gen_qcalendarwidget.go b/qt6/gen_qcalendarwidget.go index 2e26cb21..9ebcc0ab 100644 --- a/qt6/gen_qcalendarwidget.go +++ b/qt6/gen_qcalendarwidget.go @@ -68,14 +68,14 @@ func UnsafeNewQCalendarWidget(h unsafe.Pointer) *QCalendarWidget { } // NewQCalendarWidget constructs a new QCalendarWidget object. -func NewQCalendarWidget() *QCalendarWidget { - ret := C.QCalendarWidget_new() +func NewQCalendarWidget(parent *QWidget) *QCalendarWidget { + ret := C.QCalendarWidget_new(parent.cPointer()) return newQCalendarWidget(ret) } // NewQCalendarWidget2 constructs a new QCalendarWidget object. -func NewQCalendarWidget2(parent *QWidget) *QCalendarWidget { - ret := C.QCalendarWidget_new2(parent.cPointer()) +func NewQCalendarWidget2() *QCalendarWidget { + ret := C.QCalendarWidget_new2() return newQCalendarWidget(ret) } diff --git a/qt6/gen_qcalendarwidget.h b/qt6/gen_qcalendarwidget.h index 47cebbfc..57984a2f 100644 --- a/qt6/gen_qcalendarwidget.h +++ b/qt6/gen_qcalendarwidget.h @@ -31,8 +31,8 @@ typedef struct QTextCharFormat QTextCharFormat; typedef struct QWidget QWidget; #endif -QCalendarWidget* QCalendarWidget_new(); -QCalendarWidget* QCalendarWidget_new2(QWidget* parent); +QCalendarWidget* QCalendarWidget_new(QWidget* parent); +QCalendarWidget* QCalendarWidget_new2(); QMetaObject* QCalendarWidget_MetaObject(const QCalendarWidget* self); void* QCalendarWidget_Metacast(QCalendarWidget* self, const char* param1); struct miqt_string QCalendarWidget_Tr(const char* s); diff --git a/qt6/gen_qcheckbox.cpp b/qt6/gen_qcheckbox.cpp index 08438219..836c61d6 100644 --- a/qt6/gen_qcheckbox.cpp +++ b/qt6/gen_qcheckbox.cpp @@ -9,19 +9,19 @@ #include "gen_qcheckbox.h" #include "_cgo_export.h" -QCheckBox* QCheckBox_new() { +QCheckBox* QCheckBox_new(QWidget* parent) { + return new QCheckBox(parent); +} + +QCheckBox* QCheckBox_new2() { return new QCheckBox(); } -QCheckBox* QCheckBox_new2(struct miqt_string text) { +QCheckBox* QCheckBox_new3(struct miqt_string text) { QString text_QString = QString::fromUtf8(text.data, text.len); return new QCheckBox(text_QString); } -QCheckBox* QCheckBox_new3(QWidget* parent) { - return new QCheckBox(parent); -} - QCheckBox* QCheckBox_new4(struct miqt_string text, QWidget* parent) { QString text_QString = QString::fromUtf8(text.data, text.len); return new QCheckBox(text_QString, parent); diff --git a/qt6/gen_qcheckbox.go b/qt6/gen_qcheckbox.go index 65caebb4..9e2f1f1d 100644 --- a/qt6/gen_qcheckbox.go +++ b/qt6/gen_qcheckbox.go @@ -45,24 +45,24 @@ func UnsafeNewQCheckBox(h unsafe.Pointer) *QCheckBox { } // NewQCheckBox constructs a new QCheckBox object. -func NewQCheckBox() *QCheckBox { - ret := C.QCheckBox_new() +func NewQCheckBox(parent *QWidget) *QCheckBox { + ret := C.QCheckBox_new(parent.cPointer()) return newQCheckBox(ret) } // NewQCheckBox2 constructs a new QCheckBox object. -func NewQCheckBox2(text string) *QCheckBox { - text_ms := C.struct_miqt_string{} - text_ms.data = C.CString(text) - text_ms.len = C.size_t(len(text)) - defer C.free(unsafe.Pointer(text_ms.data)) - ret := C.QCheckBox_new2(text_ms) +func NewQCheckBox2() *QCheckBox { + ret := C.QCheckBox_new2() return newQCheckBox(ret) } // NewQCheckBox3 constructs a new QCheckBox object. -func NewQCheckBox3(parent *QWidget) *QCheckBox { - ret := C.QCheckBox_new3(parent.cPointer()) +func NewQCheckBox3(text string) *QCheckBox { + text_ms := C.struct_miqt_string{} + text_ms.data = C.CString(text) + text_ms.len = C.size_t(len(text)) + defer C.free(unsafe.Pointer(text_ms.data)) + ret := C.QCheckBox_new3(text_ms) return newQCheckBox(ret) } diff --git a/qt6/gen_qcheckbox.h b/qt6/gen_qcheckbox.h index 84fa1f10..5593abd2 100644 --- a/qt6/gen_qcheckbox.h +++ b/qt6/gen_qcheckbox.h @@ -25,9 +25,9 @@ typedef struct QSize QSize; typedef struct QWidget QWidget; #endif -QCheckBox* QCheckBox_new(); -QCheckBox* QCheckBox_new2(struct miqt_string text); -QCheckBox* QCheckBox_new3(QWidget* parent); +QCheckBox* QCheckBox_new(QWidget* parent); +QCheckBox* QCheckBox_new2(); +QCheckBox* QCheckBox_new3(struct miqt_string text); QCheckBox* QCheckBox_new4(struct miqt_string text, QWidget* parent); QMetaObject* QCheckBox_MetaObject(const QCheckBox* self); void* QCheckBox_Metacast(QCheckBox* self, const char* param1); diff --git a/qt6/gen_qcolordialog.cpp b/qt6/gen_qcolordialog.cpp index ed4b9c5a..0fe9cead 100644 --- a/qt6/gen_qcolordialog.cpp +++ b/qt6/gen_qcolordialog.cpp @@ -9,16 +9,16 @@ #include "gen_qcolordialog.h" #include "_cgo_export.h" -QColorDialog* QColorDialog_new() { - return new QColorDialog(); +QColorDialog* QColorDialog_new(QWidget* parent) { + return new QColorDialog(parent); } -QColorDialog* QColorDialog_new2(QColor* initial) { - return new QColorDialog(*initial); +QColorDialog* QColorDialog_new2() { + return new QColorDialog(); } -QColorDialog* QColorDialog_new3(QWidget* parent) { - return new QColorDialog(parent); +QColorDialog* QColorDialog_new3(QColor* initial) { + return new QColorDialog(*initial); } QColorDialog* QColorDialog_new4(QColor* initial, QWidget* parent) { diff --git a/qt6/gen_qcolordialog.go b/qt6/gen_qcolordialog.go index 55df959a..d7df7241 100644 --- a/qt6/gen_qcolordialog.go +++ b/qt6/gen_qcolordialog.go @@ -53,20 +53,20 @@ func UnsafeNewQColorDialog(h unsafe.Pointer) *QColorDialog { } // NewQColorDialog constructs a new QColorDialog object. -func NewQColorDialog() *QColorDialog { - ret := C.QColorDialog_new() +func NewQColorDialog(parent *QWidget) *QColorDialog { + ret := C.QColorDialog_new(parent.cPointer()) return newQColorDialog(ret) } // NewQColorDialog2 constructs a new QColorDialog object. -func NewQColorDialog2(initial *QColor) *QColorDialog { - ret := C.QColorDialog_new2(initial.cPointer()) +func NewQColorDialog2() *QColorDialog { + ret := C.QColorDialog_new2() return newQColorDialog(ret) } // NewQColorDialog3 constructs a new QColorDialog object. -func NewQColorDialog3(parent *QWidget) *QColorDialog { - ret := C.QColorDialog_new3(parent.cPointer()) +func NewQColorDialog3(initial *QColor) *QColorDialog { + ret := C.QColorDialog_new3(initial.cPointer()) return newQColorDialog(ret) } diff --git a/qt6/gen_qcolordialog.h b/qt6/gen_qcolordialog.h index b347ea3f..6d5948ae 100644 --- a/qt6/gen_qcolordialog.h +++ b/qt6/gen_qcolordialog.h @@ -25,9 +25,9 @@ typedef struct QMetaObject QMetaObject; typedef struct QWidget QWidget; #endif -QColorDialog* QColorDialog_new(); -QColorDialog* QColorDialog_new2(QColor* initial); -QColorDialog* QColorDialog_new3(QWidget* parent); +QColorDialog* QColorDialog_new(QWidget* parent); +QColorDialog* QColorDialog_new2(); +QColorDialog* QColorDialog_new3(QColor* initial); QColorDialog* QColorDialog_new4(QColor* initial, QWidget* parent); QMetaObject* QColorDialog_MetaObject(const QColorDialog* self); void* QColorDialog_Metacast(QColorDialog* self, const char* param1); diff --git a/qt6/gen_qcolumnview.cpp b/qt6/gen_qcolumnview.cpp index 797f8c6b..4f6767a9 100644 --- a/qt6/gen_qcolumnview.cpp +++ b/qt6/gen_qcolumnview.cpp @@ -15,12 +15,12 @@ #include "gen_qcolumnview.h" #include "_cgo_export.h" -QColumnView* QColumnView_new() { - return new QColumnView(); +QColumnView* QColumnView_new(QWidget* parent) { + return new QColumnView(parent); } -QColumnView* QColumnView_new2(QWidget* parent) { - return new QColumnView(parent); +QColumnView* QColumnView_new2() { + return new QColumnView(); } QMetaObject* QColumnView_MetaObject(const QColumnView* self) { diff --git a/qt6/gen_qcolumnview.go b/qt6/gen_qcolumnview.go index f8c1babf..4eff4676 100644 --- a/qt6/gen_qcolumnview.go +++ b/qt6/gen_qcolumnview.go @@ -45,14 +45,14 @@ func UnsafeNewQColumnView(h unsafe.Pointer) *QColumnView { } // NewQColumnView constructs a new QColumnView object. -func NewQColumnView() *QColumnView { - ret := C.QColumnView_new() +func NewQColumnView(parent *QWidget) *QColumnView { + ret := C.QColumnView_new(parent.cPointer()) return newQColumnView(ret) } // NewQColumnView2 constructs a new QColumnView object. -func NewQColumnView2(parent *QWidget) *QColumnView { - ret := C.QColumnView_new2(parent.cPointer()) +func NewQColumnView2() *QColumnView { + ret := C.QColumnView_new2() return newQColumnView(ret) } diff --git a/qt6/gen_qcolumnview.h b/qt6/gen_qcolumnview.h index d485ae7d..6dd58a53 100644 --- a/qt6/gen_qcolumnview.h +++ b/qt6/gen_qcolumnview.h @@ -35,8 +35,8 @@ typedef struct QSize QSize; typedef struct QWidget QWidget; #endif -QColumnView* QColumnView_new(); -QColumnView* QColumnView_new2(QWidget* parent); +QColumnView* QColumnView_new(QWidget* parent); +QColumnView* QColumnView_new2(); QMetaObject* QColumnView_MetaObject(const QColumnView* self); void* QColumnView_Metacast(QColumnView* self, const char* param1); struct miqt_string QColumnView_Tr(const char* s); diff --git a/qt6/gen_qcombobox.cpp b/qt6/gen_qcombobox.cpp index c6d99e93..4829a0ec 100644 --- a/qt6/gen_qcombobox.cpp +++ b/qt6/gen_qcombobox.cpp @@ -20,12 +20,12 @@ #include "gen_qcombobox.h" #include "_cgo_export.h" -QComboBox* QComboBox_new() { - return new QComboBox(); +QComboBox* QComboBox_new(QWidget* parent) { + return new QComboBox(parent); } -QComboBox* QComboBox_new2(QWidget* parent) { - return new QComboBox(parent); +QComboBox* QComboBox_new2() { + return new QComboBox(); } QMetaObject* QComboBox_MetaObject(const QComboBox* self) { diff --git a/qt6/gen_qcombobox.go b/qt6/gen_qcombobox.go index ccaee839..a5c6e736 100644 --- a/qt6/gen_qcombobox.go +++ b/qt6/gen_qcombobox.go @@ -65,14 +65,14 @@ func UnsafeNewQComboBox(h unsafe.Pointer) *QComboBox { } // NewQComboBox constructs a new QComboBox object. -func NewQComboBox() *QComboBox { - ret := C.QComboBox_new() +func NewQComboBox(parent *QWidget) *QComboBox { + ret := C.QComboBox_new(parent.cPointer()) return newQComboBox(ret) } // NewQComboBox2 constructs a new QComboBox object. -func NewQComboBox2(parent *QWidget) *QComboBox { - ret := C.QComboBox_new2(parent.cPointer()) +func NewQComboBox2() *QComboBox { + ret := C.QComboBox_new2() return newQComboBox(ret) } diff --git a/qt6/gen_qcombobox.h b/qt6/gen_qcombobox.h index b52c05da..62f298ed 100644 --- a/qt6/gen_qcombobox.h +++ b/qt6/gen_qcombobox.h @@ -45,8 +45,8 @@ typedef struct QVariant QVariant; typedef struct QWidget QWidget; #endif -QComboBox* QComboBox_new(); -QComboBox* QComboBox_new2(QWidget* parent); +QComboBox* QComboBox_new(QWidget* parent); +QComboBox* QComboBox_new2(); QMetaObject* QComboBox_MetaObject(const QComboBox* self); void* QComboBox_Metacast(QComboBox* self, const char* param1); struct miqt_string QComboBox_Tr(const char* s); diff --git a/qt6/gen_qcommandlinkbutton.cpp b/qt6/gen_qcommandlinkbutton.cpp index 9c4f2c2d..220ec3ac 100644 --- a/qt6/gen_qcommandlinkbutton.cpp +++ b/qt6/gen_qcommandlinkbutton.cpp @@ -10,25 +10,25 @@ #include "gen_qcommandlinkbutton.h" #include "_cgo_export.h" -QCommandLinkButton* QCommandLinkButton_new() { +QCommandLinkButton* QCommandLinkButton_new(QWidget* parent) { + return new QCommandLinkButton(parent); +} + +QCommandLinkButton* QCommandLinkButton_new2() { return new QCommandLinkButton(); } -QCommandLinkButton* QCommandLinkButton_new2(struct miqt_string text) { +QCommandLinkButton* QCommandLinkButton_new3(struct miqt_string text) { QString text_QString = QString::fromUtf8(text.data, text.len); return new QCommandLinkButton(text_QString); } -QCommandLinkButton* QCommandLinkButton_new3(struct miqt_string text, struct miqt_string description) { +QCommandLinkButton* QCommandLinkButton_new4(struct miqt_string text, struct miqt_string description) { QString text_QString = QString::fromUtf8(text.data, text.len); QString description_QString = QString::fromUtf8(description.data, description.len); return new QCommandLinkButton(text_QString, description_QString); } -QCommandLinkButton* QCommandLinkButton_new4(QWidget* parent) { - return new QCommandLinkButton(parent); -} - QCommandLinkButton* QCommandLinkButton_new5(struct miqt_string text, QWidget* parent) { QString text_QString = QString::fromUtf8(text.data, text.len); return new QCommandLinkButton(text_QString, parent); diff --git a/qt6/gen_qcommandlinkbutton.go b/qt6/gen_qcommandlinkbutton.go index d8c1b6ff..07a22201 100644 --- a/qt6/gen_qcommandlinkbutton.go +++ b/qt6/gen_qcommandlinkbutton.go @@ -44,23 +44,29 @@ func UnsafeNewQCommandLinkButton(h unsafe.Pointer) *QCommandLinkButton { } // NewQCommandLinkButton constructs a new QCommandLinkButton object. -func NewQCommandLinkButton() *QCommandLinkButton { - ret := C.QCommandLinkButton_new() +func NewQCommandLinkButton(parent *QWidget) *QCommandLinkButton { + ret := C.QCommandLinkButton_new(parent.cPointer()) return newQCommandLinkButton(ret) } // NewQCommandLinkButton2 constructs a new QCommandLinkButton object. -func NewQCommandLinkButton2(text string) *QCommandLinkButton { +func NewQCommandLinkButton2() *QCommandLinkButton { + ret := C.QCommandLinkButton_new2() + return newQCommandLinkButton(ret) +} + +// NewQCommandLinkButton3 constructs a new QCommandLinkButton object. +func NewQCommandLinkButton3(text string) *QCommandLinkButton { text_ms := C.struct_miqt_string{} text_ms.data = C.CString(text) text_ms.len = C.size_t(len(text)) defer C.free(unsafe.Pointer(text_ms.data)) - ret := C.QCommandLinkButton_new2(text_ms) + ret := C.QCommandLinkButton_new3(text_ms) return newQCommandLinkButton(ret) } -// NewQCommandLinkButton3 constructs a new QCommandLinkButton object. -func NewQCommandLinkButton3(text string, description string) *QCommandLinkButton { +// NewQCommandLinkButton4 constructs a new QCommandLinkButton object. +func NewQCommandLinkButton4(text string, description string) *QCommandLinkButton { text_ms := C.struct_miqt_string{} text_ms.data = C.CString(text) text_ms.len = C.size_t(len(text)) @@ -69,13 +75,7 @@ func NewQCommandLinkButton3(text string, description string) *QCommandLinkButton description_ms.data = C.CString(description) description_ms.len = C.size_t(len(description)) defer C.free(unsafe.Pointer(description_ms.data)) - ret := C.QCommandLinkButton_new3(text_ms, description_ms) - return newQCommandLinkButton(ret) -} - -// NewQCommandLinkButton4 constructs a new QCommandLinkButton object. -func NewQCommandLinkButton4(parent *QWidget) *QCommandLinkButton { - ret := C.QCommandLinkButton_new4(parent.cPointer()) + ret := C.QCommandLinkButton_new4(text_ms, description_ms) return newQCommandLinkButton(ret) } diff --git a/qt6/gen_qcommandlinkbutton.h b/qt6/gen_qcommandlinkbutton.h index ee0a9454..640dfd72 100644 --- a/qt6/gen_qcommandlinkbutton.h +++ b/qt6/gen_qcommandlinkbutton.h @@ -27,10 +27,10 @@ typedef struct QStyleOptionButton QStyleOptionButton; typedef struct QWidget QWidget; #endif -QCommandLinkButton* QCommandLinkButton_new(); -QCommandLinkButton* QCommandLinkButton_new2(struct miqt_string text); -QCommandLinkButton* QCommandLinkButton_new3(struct miqt_string text, struct miqt_string description); -QCommandLinkButton* QCommandLinkButton_new4(QWidget* parent); +QCommandLinkButton* QCommandLinkButton_new(QWidget* parent); +QCommandLinkButton* QCommandLinkButton_new2(); +QCommandLinkButton* QCommandLinkButton_new3(struct miqt_string text); +QCommandLinkButton* QCommandLinkButton_new4(struct miqt_string text, struct miqt_string description); QCommandLinkButton* QCommandLinkButton_new5(struct miqt_string text, QWidget* parent); QCommandLinkButton* QCommandLinkButton_new6(struct miqt_string text, struct miqt_string description, QWidget* parent); QMetaObject* QCommandLinkButton_MetaObject(const QCommandLinkButton* self); diff --git a/qt6/gen_qdatetimeedit.cpp b/qt6/gen_qdatetimeedit.cpp index fa2d4de9..c757397c 100644 --- a/qt6/gen_qdatetimeedit.cpp +++ b/qt6/gen_qdatetimeedit.cpp @@ -17,26 +17,26 @@ #include "gen_qdatetimeedit.h" #include "_cgo_export.h" -QDateTimeEdit* QDateTimeEdit_new() { +QDateTimeEdit* QDateTimeEdit_new(QWidget* parent) { + return new QDateTimeEdit(parent); +} + +QDateTimeEdit* QDateTimeEdit_new2() { return new QDateTimeEdit(); } -QDateTimeEdit* QDateTimeEdit_new2(QDateTime* dt) { +QDateTimeEdit* QDateTimeEdit_new3(QDateTime* dt) { return new QDateTimeEdit(*dt); } -QDateTimeEdit* QDateTimeEdit_new3(QDate* d) { +QDateTimeEdit* QDateTimeEdit_new4(QDate* d) { return new QDateTimeEdit(*d); } -QDateTimeEdit* QDateTimeEdit_new4(QTime* t) { +QDateTimeEdit* QDateTimeEdit_new5(QTime* t) { return new QDateTimeEdit(*t); } -QDateTimeEdit* QDateTimeEdit_new5(QWidget* parent) { - return new QDateTimeEdit(parent); -} - QDateTimeEdit* QDateTimeEdit_new6(QDateTime* dt, QWidget* parent) { return new QDateTimeEdit(*dt, parent); } @@ -348,16 +348,16 @@ void QDateTimeEdit_Delete(QDateTimeEdit* self) { delete self; } -QTimeEdit* QTimeEdit_new() { - return new QTimeEdit(); +QTimeEdit* QTimeEdit_new(QWidget* parent) { + return new QTimeEdit(parent); } -QTimeEdit* QTimeEdit_new2(QTime* time) { - return new QTimeEdit(*time); +QTimeEdit* QTimeEdit_new2() { + return new QTimeEdit(); } -QTimeEdit* QTimeEdit_new3(QWidget* parent) { - return new QTimeEdit(parent); +QTimeEdit* QTimeEdit_new3(QTime* time) { + return new QTimeEdit(*time); } QTimeEdit* QTimeEdit_new4(QTime* time, QWidget* parent) { @@ -420,16 +420,16 @@ void QTimeEdit_Delete(QTimeEdit* self) { delete self; } -QDateEdit* QDateEdit_new() { - return new QDateEdit(); +QDateEdit* QDateEdit_new(QWidget* parent) { + return new QDateEdit(parent); } -QDateEdit* QDateEdit_new2(QDate* date) { - return new QDateEdit(*date); +QDateEdit* QDateEdit_new2() { + return new QDateEdit(); } -QDateEdit* QDateEdit_new3(QWidget* parent) { - return new QDateEdit(parent); +QDateEdit* QDateEdit_new3(QDate* date) { + return new QDateEdit(*date); } QDateEdit* QDateEdit_new4(QDate* date, QWidget* parent) { diff --git a/qt6/gen_qdatetimeedit.go b/qt6/gen_qdatetimeedit.go index cc90b966..28b43f05 100644 --- a/qt6/gen_qdatetimeedit.go +++ b/qt6/gen_qdatetimeedit.go @@ -61,32 +61,32 @@ func UnsafeNewQDateTimeEdit(h unsafe.Pointer) *QDateTimeEdit { } // NewQDateTimeEdit constructs a new QDateTimeEdit object. -func NewQDateTimeEdit() *QDateTimeEdit { - ret := C.QDateTimeEdit_new() +func NewQDateTimeEdit(parent *QWidget) *QDateTimeEdit { + ret := C.QDateTimeEdit_new(parent.cPointer()) return newQDateTimeEdit(ret) } // NewQDateTimeEdit2 constructs a new QDateTimeEdit object. -func NewQDateTimeEdit2(dt *QDateTime) *QDateTimeEdit { - ret := C.QDateTimeEdit_new2(dt.cPointer()) +func NewQDateTimeEdit2() *QDateTimeEdit { + ret := C.QDateTimeEdit_new2() return newQDateTimeEdit(ret) } // NewQDateTimeEdit3 constructs a new QDateTimeEdit object. -func NewQDateTimeEdit3(d QDate) *QDateTimeEdit { - ret := C.QDateTimeEdit_new3(d.cPointer()) +func NewQDateTimeEdit3(dt *QDateTime) *QDateTimeEdit { + ret := C.QDateTimeEdit_new3(dt.cPointer()) return newQDateTimeEdit(ret) } // NewQDateTimeEdit4 constructs a new QDateTimeEdit object. -func NewQDateTimeEdit4(t QTime) *QDateTimeEdit { - ret := C.QDateTimeEdit_new4(t.cPointer()) +func NewQDateTimeEdit4(d QDate) *QDateTimeEdit { + ret := C.QDateTimeEdit_new4(d.cPointer()) return newQDateTimeEdit(ret) } // NewQDateTimeEdit5 constructs a new QDateTimeEdit object. -func NewQDateTimeEdit5(parent *QWidget) *QDateTimeEdit { - ret := C.QDateTimeEdit_new5(parent.cPointer()) +func NewQDateTimeEdit5(t QTime) *QDateTimeEdit { + ret := C.QDateTimeEdit_new5(t.cPointer()) return newQDateTimeEdit(ret) } @@ -503,20 +503,20 @@ func UnsafeNewQTimeEdit(h unsafe.Pointer) *QTimeEdit { } // NewQTimeEdit constructs a new QTimeEdit object. -func NewQTimeEdit() *QTimeEdit { - ret := C.QTimeEdit_new() +func NewQTimeEdit(parent *QWidget) *QTimeEdit { + ret := C.QTimeEdit_new(parent.cPointer()) return newQTimeEdit(ret) } // NewQTimeEdit2 constructs a new QTimeEdit object. -func NewQTimeEdit2(time QTime) *QTimeEdit { - ret := C.QTimeEdit_new2(time.cPointer()) +func NewQTimeEdit2() *QTimeEdit { + ret := C.QTimeEdit_new2() return newQTimeEdit(ret) } // NewQTimeEdit3 constructs a new QTimeEdit object. -func NewQTimeEdit3(parent *QWidget) *QTimeEdit { - ret := C.QTimeEdit_new3(parent.cPointer()) +func NewQTimeEdit3(time QTime) *QTimeEdit { + ret := C.QTimeEdit_new3(time.cPointer()) return newQTimeEdit(ret) } @@ -635,20 +635,20 @@ func UnsafeNewQDateEdit(h unsafe.Pointer) *QDateEdit { } // NewQDateEdit constructs a new QDateEdit object. -func NewQDateEdit() *QDateEdit { - ret := C.QDateEdit_new() +func NewQDateEdit(parent *QWidget) *QDateEdit { + ret := C.QDateEdit_new(parent.cPointer()) return newQDateEdit(ret) } // NewQDateEdit2 constructs a new QDateEdit object. -func NewQDateEdit2(date QDate) *QDateEdit { - ret := C.QDateEdit_new2(date.cPointer()) +func NewQDateEdit2() *QDateEdit { + ret := C.QDateEdit_new2() return newQDateEdit(ret) } // NewQDateEdit3 constructs a new QDateEdit object. -func NewQDateEdit3(parent *QWidget) *QDateEdit { - ret := C.QDateEdit_new3(parent.cPointer()) +func NewQDateEdit3(date QDate) *QDateEdit { + ret := C.QDateEdit_new3(date.cPointer()) return newQDateEdit(ret) } diff --git a/qt6/gen_qdatetimeedit.h b/qt6/gen_qdatetimeedit.h index 398d1eca..f375ea32 100644 --- a/qt6/gen_qdatetimeedit.h +++ b/qt6/gen_qdatetimeedit.h @@ -41,11 +41,11 @@ typedef struct QTimeEdit QTimeEdit; typedef struct QWidget QWidget; #endif -QDateTimeEdit* QDateTimeEdit_new(); -QDateTimeEdit* QDateTimeEdit_new2(QDateTime* dt); -QDateTimeEdit* QDateTimeEdit_new3(QDate* d); -QDateTimeEdit* QDateTimeEdit_new4(QTime* t); -QDateTimeEdit* QDateTimeEdit_new5(QWidget* parent); +QDateTimeEdit* QDateTimeEdit_new(QWidget* parent); +QDateTimeEdit* QDateTimeEdit_new2(); +QDateTimeEdit* QDateTimeEdit_new3(QDateTime* dt); +QDateTimeEdit* QDateTimeEdit_new4(QDate* d); +QDateTimeEdit* QDateTimeEdit_new5(QTime* t); QDateTimeEdit* QDateTimeEdit_new6(QDateTime* dt, QWidget* parent); QDateTimeEdit* QDateTimeEdit_new7(QDate* d, QWidget* parent); QDateTimeEdit* QDateTimeEdit_new8(QTime* t, QWidget* parent); @@ -112,9 +112,9 @@ struct miqt_string QDateTimeEdit_Tr2(const char* s, const char* c); struct miqt_string QDateTimeEdit_Tr3(const char* s, const char* c, int n); void QDateTimeEdit_Delete(QDateTimeEdit* self); -QTimeEdit* QTimeEdit_new(); -QTimeEdit* QTimeEdit_new2(QTime* time); -QTimeEdit* QTimeEdit_new3(QWidget* parent); +QTimeEdit* QTimeEdit_new(QWidget* parent); +QTimeEdit* QTimeEdit_new2(); +QTimeEdit* QTimeEdit_new3(QTime* time); QTimeEdit* QTimeEdit_new4(QTime* time, QWidget* parent); QMetaObject* QTimeEdit_MetaObject(const QTimeEdit* self); void* QTimeEdit_Metacast(QTimeEdit* self, const char* param1); @@ -125,9 +125,9 @@ struct miqt_string QTimeEdit_Tr2(const char* s, const char* c); struct miqt_string QTimeEdit_Tr3(const char* s, const char* c, int n); void QTimeEdit_Delete(QTimeEdit* self); -QDateEdit* QDateEdit_new(); -QDateEdit* QDateEdit_new2(QDate* date); -QDateEdit* QDateEdit_new3(QWidget* parent); +QDateEdit* QDateEdit_new(QWidget* parent); +QDateEdit* QDateEdit_new2(); +QDateEdit* QDateEdit_new3(QDate* date); QDateEdit* QDateEdit_new4(QDate* date, QWidget* parent); QMetaObject* QDateEdit_MetaObject(const QDateEdit* self); void* QDateEdit_Metacast(QDateEdit* self, const char* param1); diff --git a/qt6/gen_qdial.cpp b/qt6/gen_qdial.cpp index 805b1b7d..585a2380 100644 --- a/qt6/gen_qdial.cpp +++ b/qt6/gen_qdial.cpp @@ -9,12 +9,12 @@ #include "gen_qdial.h" #include "_cgo_export.h" -QDial* QDial_new() { - return new QDial(); +QDial* QDial_new(QWidget* parent) { + return new QDial(parent); } -QDial* QDial_new2(QWidget* parent) { - return new QDial(parent); +QDial* QDial_new2() { + return new QDial(); } QMetaObject* QDial_MetaObject(const QDial* self) { diff --git a/qt6/gen_qdial.go b/qt6/gen_qdial.go index 5af72f79..7b2ceae2 100644 --- a/qt6/gen_qdial.go +++ b/qt6/gen_qdial.go @@ -44,14 +44,14 @@ func UnsafeNewQDial(h unsafe.Pointer) *QDial { } // NewQDial constructs a new QDial object. -func NewQDial() *QDial { - ret := C.QDial_new() +func NewQDial(parent *QWidget) *QDial { + ret := C.QDial_new(parent.cPointer()) return newQDial(ret) } // NewQDial2 constructs a new QDial object. -func NewQDial2(parent *QWidget) *QDial { - ret := C.QDial_new2(parent.cPointer()) +func NewQDial2() *QDial { + ret := C.QDial_new2() return newQDial(ret) } diff --git a/qt6/gen_qdial.h b/qt6/gen_qdial.h index 73ea278f..dfac05ba 100644 --- a/qt6/gen_qdial.h +++ b/qt6/gen_qdial.h @@ -25,8 +25,8 @@ typedef struct QSize QSize; typedef struct QWidget QWidget; #endif -QDial* QDial_new(); -QDial* QDial_new2(QWidget* parent); +QDial* QDial_new(QWidget* parent); +QDial* QDial_new2(); QMetaObject* QDial_MetaObject(const QDial* self); void* QDial_Metacast(QDial* self, const char* param1); struct miqt_string QDial_Tr(const char* s); diff --git a/qt6/gen_qdialog.cpp b/qt6/gen_qdialog.cpp index 2b4dad70..aabeb0a7 100644 --- a/qt6/gen_qdialog.cpp +++ b/qt6/gen_qdialog.cpp @@ -9,12 +9,12 @@ #include "gen_qdialog.h" #include "_cgo_export.h" -QDialog* QDialog_new() { - return new QDialog(); +QDialog* QDialog_new(QWidget* parent) { + return new QDialog(parent); } -QDialog* QDialog_new2(QWidget* parent) { - return new QDialog(parent); +QDialog* QDialog_new2() { + return new QDialog(); } QDialog* QDialog_new3(QWidget* parent, int f) { diff --git a/qt6/gen_qdialog.go b/qt6/gen_qdialog.go index b0e374c2..32fcd4b3 100644 --- a/qt6/gen_qdialog.go +++ b/qt6/gen_qdialog.go @@ -52,14 +52,14 @@ func UnsafeNewQDialog(h unsafe.Pointer) *QDialog { } // NewQDialog constructs a new QDialog object. -func NewQDialog() *QDialog { - ret := C.QDialog_new() +func NewQDialog(parent *QWidget) *QDialog { + ret := C.QDialog_new(parent.cPointer()) return newQDialog(ret) } // NewQDialog2 constructs a new QDialog object. -func NewQDialog2(parent *QWidget) *QDialog { - ret := C.QDialog_new2(parent.cPointer()) +func NewQDialog2() *QDialog { + ret := C.QDialog_new2() return newQDialog(ret) } diff --git a/qt6/gen_qdialog.h b/qt6/gen_qdialog.h index ff925556..713c347f 100644 --- a/qt6/gen_qdialog.h +++ b/qt6/gen_qdialog.h @@ -25,8 +25,8 @@ typedef struct QSize QSize; typedef struct QWidget QWidget; #endif -QDialog* QDialog_new(); -QDialog* QDialog_new2(QWidget* parent); +QDialog* QDialog_new(QWidget* parent); +QDialog* QDialog_new2(); QDialog* QDialog_new3(QWidget* parent, int f); QMetaObject* QDialog_MetaObject(const QDialog* self); void* QDialog_Metacast(QDialog* self, const char* param1); diff --git a/qt6/gen_qdialogbuttonbox.cpp b/qt6/gen_qdialogbuttonbox.cpp index 9fcaa0f6..d2c42e7e 100644 --- a/qt6/gen_qdialogbuttonbox.cpp +++ b/qt6/gen_qdialogbuttonbox.cpp @@ -11,26 +11,26 @@ #include "gen_qdialogbuttonbox.h" #include "_cgo_export.h" -QDialogButtonBox* QDialogButtonBox_new() { +QDialogButtonBox* QDialogButtonBox_new(QWidget* parent) { + return new QDialogButtonBox(parent); +} + +QDialogButtonBox* QDialogButtonBox_new2() { return new QDialogButtonBox(); } -QDialogButtonBox* QDialogButtonBox_new2(int orientation) { +QDialogButtonBox* QDialogButtonBox_new3(int orientation) { return new QDialogButtonBox(static_cast(orientation)); } -QDialogButtonBox* QDialogButtonBox_new3(int buttons) { +QDialogButtonBox* QDialogButtonBox_new4(int buttons) { return new QDialogButtonBox(static_cast(buttons)); } -QDialogButtonBox* QDialogButtonBox_new4(int buttons, int orientation) { +QDialogButtonBox* QDialogButtonBox_new5(int buttons, int orientation) { return new QDialogButtonBox(static_cast(buttons), static_cast(orientation)); } -QDialogButtonBox* QDialogButtonBox_new5(QWidget* parent) { - return new QDialogButtonBox(parent); -} - QDialogButtonBox* QDialogButtonBox_new6(int orientation, QWidget* parent) { return new QDialogButtonBox(static_cast(orientation), parent); } diff --git a/qt6/gen_qdialogbuttonbox.go b/qt6/gen_qdialogbuttonbox.go index 71a0b53a..6952ee32 100644 --- a/qt6/gen_qdialogbuttonbox.go +++ b/qt6/gen_qdialogbuttonbox.go @@ -97,32 +97,32 @@ func UnsafeNewQDialogButtonBox(h unsafe.Pointer) *QDialogButtonBox { } // NewQDialogButtonBox constructs a new QDialogButtonBox object. -func NewQDialogButtonBox() *QDialogButtonBox { - ret := C.QDialogButtonBox_new() +func NewQDialogButtonBox(parent *QWidget) *QDialogButtonBox { + ret := C.QDialogButtonBox_new(parent.cPointer()) return newQDialogButtonBox(ret) } // NewQDialogButtonBox2 constructs a new QDialogButtonBox object. -func NewQDialogButtonBox2(orientation Orientation) *QDialogButtonBox { - ret := C.QDialogButtonBox_new2((C.int)(orientation)) +func NewQDialogButtonBox2() *QDialogButtonBox { + ret := C.QDialogButtonBox_new2() return newQDialogButtonBox(ret) } // NewQDialogButtonBox3 constructs a new QDialogButtonBox object. -func NewQDialogButtonBox3(buttons QDialogButtonBox__StandardButton) *QDialogButtonBox { - ret := C.QDialogButtonBox_new3((C.int)(buttons)) +func NewQDialogButtonBox3(orientation Orientation) *QDialogButtonBox { + ret := C.QDialogButtonBox_new3((C.int)(orientation)) return newQDialogButtonBox(ret) } // NewQDialogButtonBox4 constructs a new QDialogButtonBox object. -func NewQDialogButtonBox4(buttons QDialogButtonBox__StandardButton, orientation Orientation) *QDialogButtonBox { - ret := C.QDialogButtonBox_new4((C.int)(buttons), (C.int)(orientation)) +func NewQDialogButtonBox4(buttons QDialogButtonBox__StandardButton) *QDialogButtonBox { + ret := C.QDialogButtonBox_new4((C.int)(buttons)) return newQDialogButtonBox(ret) } // NewQDialogButtonBox5 constructs a new QDialogButtonBox object. -func NewQDialogButtonBox5(parent *QWidget) *QDialogButtonBox { - ret := C.QDialogButtonBox_new5(parent.cPointer()) +func NewQDialogButtonBox5(buttons QDialogButtonBox__StandardButton, orientation Orientation) *QDialogButtonBox { + ret := C.QDialogButtonBox_new5((C.int)(buttons), (C.int)(orientation)) return newQDialogButtonBox(ret) } diff --git a/qt6/gen_qdialogbuttonbox.h b/qt6/gen_qdialogbuttonbox.h index fee63b2b..c699741f 100644 --- a/qt6/gen_qdialogbuttonbox.h +++ b/qt6/gen_qdialogbuttonbox.h @@ -27,11 +27,11 @@ typedef struct QPushButton QPushButton; typedef struct QWidget QWidget; #endif -QDialogButtonBox* QDialogButtonBox_new(); -QDialogButtonBox* QDialogButtonBox_new2(int orientation); -QDialogButtonBox* QDialogButtonBox_new3(int buttons); -QDialogButtonBox* QDialogButtonBox_new4(int buttons, int orientation); -QDialogButtonBox* QDialogButtonBox_new5(QWidget* parent); +QDialogButtonBox* QDialogButtonBox_new(QWidget* parent); +QDialogButtonBox* QDialogButtonBox_new2(); +QDialogButtonBox* QDialogButtonBox_new3(int orientation); +QDialogButtonBox* QDialogButtonBox_new4(int buttons); +QDialogButtonBox* QDialogButtonBox_new5(int buttons, int orientation); QDialogButtonBox* QDialogButtonBox_new6(int orientation, QWidget* parent); QDialogButtonBox* QDialogButtonBox_new7(int buttons, QWidget* parent); QDialogButtonBox* QDialogButtonBox_new8(int buttons, int orientation, QWidget* parent); diff --git a/qt6/gen_qdockwidget.cpp b/qt6/gen_qdockwidget.cpp index 3c2d8c83..9a6cfa48 100644 --- a/qt6/gen_qdockwidget.cpp +++ b/qt6/gen_qdockwidget.cpp @@ -9,29 +9,29 @@ #include "gen_qdockwidget.h" #include "_cgo_export.h" -QDockWidget* QDockWidget_new(struct miqt_string title) { +QDockWidget* QDockWidget_new(QWidget* parent) { + return new QDockWidget(parent); +} + +QDockWidget* QDockWidget_new2(struct miqt_string title) { QString title_QString = QString::fromUtf8(title.data, title.len); return new QDockWidget(title_QString); } -QDockWidget* QDockWidget_new2() { +QDockWidget* QDockWidget_new3() { return new QDockWidget(); } -QDockWidget* QDockWidget_new3(struct miqt_string title, QWidget* parent) { +QDockWidget* QDockWidget_new4(struct miqt_string title, QWidget* parent) { QString title_QString = QString::fromUtf8(title.data, title.len); return new QDockWidget(title_QString, parent); } -QDockWidget* QDockWidget_new4(struct miqt_string title, QWidget* parent, int flags) { +QDockWidget* QDockWidget_new5(struct miqt_string title, QWidget* parent, int flags) { QString title_QString = QString::fromUtf8(title.data, title.len); return new QDockWidget(title_QString, parent, static_cast(flags)); } -QDockWidget* QDockWidget_new5(QWidget* parent) { - return new QDockWidget(parent); -} - QDockWidget* QDockWidget_new6(QWidget* parent, int flags) { return new QDockWidget(parent, static_cast(flags)); } diff --git a/qt6/gen_qdockwidget.go b/qt6/gen_qdockwidget.go index 0946a380..6315929b 100644 --- a/qt6/gen_qdockwidget.go +++ b/qt6/gen_qdockwidget.go @@ -57,44 +57,44 @@ func UnsafeNewQDockWidget(h unsafe.Pointer) *QDockWidget { } // NewQDockWidget constructs a new QDockWidget object. -func NewQDockWidget(title string) *QDockWidget { +func NewQDockWidget(parent *QWidget) *QDockWidget { + ret := C.QDockWidget_new(parent.cPointer()) + return newQDockWidget(ret) +} + +// NewQDockWidget2 constructs a new QDockWidget object. +func NewQDockWidget2(title string) *QDockWidget { title_ms := C.struct_miqt_string{} title_ms.data = C.CString(title) title_ms.len = C.size_t(len(title)) defer C.free(unsafe.Pointer(title_ms.data)) - ret := C.QDockWidget_new(title_ms) + ret := C.QDockWidget_new2(title_ms) return newQDockWidget(ret) } -// NewQDockWidget2 constructs a new QDockWidget object. -func NewQDockWidget2() *QDockWidget { - ret := C.QDockWidget_new2() +// NewQDockWidget3 constructs a new QDockWidget object. +func NewQDockWidget3() *QDockWidget { + ret := C.QDockWidget_new3() return newQDockWidget(ret) } -// NewQDockWidget3 constructs a new QDockWidget object. -func NewQDockWidget3(title string, parent *QWidget) *QDockWidget { +// NewQDockWidget4 constructs a new QDockWidget object. +func NewQDockWidget4(title string, parent *QWidget) *QDockWidget { title_ms := C.struct_miqt_string{} title_ms.data = C.CString(title) title_ms.len = C.size_t(len(title)) defer C.free(unsafe.Pointer(title_ms.data)) - ret := C.QDockWidget_new3(title_ms, parent.cPointer()) + ret := C.QDockWidget_new4(title_ms, parent.cPointer()) return newQDockWidget(ret) } -// NewQDockWidget4 constructs a new QDockWidget object. -func NewQDockWidget4(title string, parent *QWidget, flags WindowType) *QDockWidget { +// NewQDockWidget5 constructs a new QDockWidget object. +func NewQDockWidget5(title string, parent *QWidget, flags WindowType) *QDockWidget { title_ms := C.struct_miqt_string{} title_ms.data = C.CString(title) title_ms.len = C.size_t(len(title)) defer C.free(unsafe.Pointer(title_ms.data)) - ret := C.QDockWidget_new4(title_ms, parent.cPointer(), (C.int)(flags)) - return newQDockWidget(ret) -} - -// NewQDockWidget5 constructs a new QDockWidget object. -func NewQDockWidget5(parent *QWidget) *QDockWidget { - ret := C.QDockWidget_new5(parent.cPointer()) + ret := C.QDockWidget_new5(title_ms, parent.cPointer(), (C.int)(flags)) return newQDockWidget(ret) } diff --git a/qt6/gen_qdockwidget.h b/qt6/gen_qdockwidget.h index 5fa43d8b..19dce0c8 100644 --- a/qt6/gen_qdockwidget.h +++ b/qt6/gen_qdockwidget.h @@ -25,11 +25,11 @@ typedef struct QMetaObject QMetaObject; typedef struct QWidget QWidget; #endif -QDockWidget* QDockWidget_new(struct miqt_string title); -QDockWidget* QDockWidget_new2(); -QDockWidget* QDockWidget_new3(struct miqt_string title, QWidget* parent); -QDockWidget* QDockWidget_new4(struct miqt_string title, QWidget* parent, int flags); -QDockWidget* QDockWidget_new5(QWidget* parent); +QDockWidget* QDockWidget_new(QWidget* parent); +QDockWidget* QDockWidget_new2(struct miqt_string title); +QDockWidget* QDockWidget_new3(); +QDockWidget* QDockWidget_new4(struct miqt_string title, QWidget* parent); +QDockWidget* QDockWidget_new5(struct miqt_string title, QWidget* parent, int flags); QDockWidget* QDockWidget_new6(QWidget* parent, int flags); QMetaObject* QDockWidget_MetaObject(const QDockWidget* self); void* QDockWidget_Metacast(QDockWidget* self, const char* param1); diff --git a/qt6/gen_qerrormessage.cpp b/qt6/gen_qerrormessage.cpp index 1abede37..8a324ba8 100644 --- a/qt6/gen_qerrormessage.cpp +++ b/qt6/gen_qerrormessage.cpp @@ -8,12 +8,12 @@ #include "gen_qerrormessage.h" #include "_cgo_export.h" -QErrorMessage* QErrorMessage_new() { - return new QErrorMessage(); +QErrorMessage* QErrorMessage_new(QWidget* parent) { + return new QErrorMessage(parent); } -QErrorMessage* QErrorMessage_new2(QWidget* parent) { - return new QErrorMessage(parent); +QErrorMessage* QErrorMessage_new2() { + return new QErrorMessage(); } QMetaObject* QErrorMessage_MetaObject(const QErrorMessage* self) { diff --git a/qt6/gen_qerrormessage.go b/qt6/gen_qerrormessage.go index eb9da22b..7449a8cf 100644 --- a/qt6/gen_qerrormessage.go +++ b/qt6/gen_qerrormessage.go @@ -44,14 +44,14 @@ func UnsafeNewQErrorMessage(h unsafe.Pointer) *QErrorMessage { } // NewQErrorMessage constructs a new QErrorMessage object. -func NewQErrorMessage() *QErrorMessage { - ret := C.QErrorMessage_new() +func NewQErrorMessage(parent *QWidget) *QErrorMessage { + ret := C.QErrorMessage_new(parent.cPointer()) return newQErrorMessage(ret) } // NewQErrorMessage2 constructs a new QErrorMessage object. -func NewQErrorMessage2(parent *QWidget) *QErrorMessage { - ret := C.QErrorMessage_new2(parent.cPointer()) +func NewQErrorMessage2() *QErrorMessage { + ret := C.QErrorMessage_new2() return newQErrorMessage(ret) } diff --git a/qt6/gen_qerrormessage.h b/qt6/gen_qerrormessage.h index cef62a66..7de3d29d 100644 --- a/qt6/gen_qerrormessage.h +++ b/qt6/gen_qerrormessage.h @@ -23,8 +23,8 @@ typedef struct QMetaObject QMetaObject; typedef struct QWidget QWidget; #endif -QErrorMessage* QErrorMessage_new(); -QErrorMessage* QErrorMessage_new2(QWidget* parent); +QErrorMessage* QErrorMessage_new(QWidget* parent); +QErrorMessage* QErrorMessage_new2(); QMetaObject* QErrorMessage_MetaObject(const QErrorMessage* self); void* QErrorMessage_Metacast(QErrorMessage* self, const char* param1); struct miqt_string QErrorMessage_Tr(const char* s); diff --git a/qt6/gen_qfiledialog.cpp b/qt6/gen_qfiledialog.cpp index 34ba0e27..1553b8cd 100644 --- a/qt6/gen_qfiledialog.cpp +++ b/qt6/gen_qfiledialog.cpp @@ -15,16 +15,16 @@ #include "gen_qfiledialog.h" #include "_cgo_export.h" -QFileDialog* QFileDialog_new(QWidget* parent, int f) { - return new QFileDialog(parent, static_cast(f)); +QFileDialog* QFileDialog_new(QWidget* parent) { + return new QFileDialog(parent); } -QFileDialog* QFileDialog_new2() { - return new QFileDialog(); +QFileDialog* QFileDialog_new2(QWidget* parent, int f) { + return new QFileDialog(parent, static_cast(f)); } -QFileDialog* QFileDialog_new3(QWidget* parent) { - return new QFileDialog(parent); +QFileDialog* QFileDialog_new3() { + return new QFileDialog(); } QFileDialog* QFileDialog_new4(QWidget* parent, struct miqt_string caption) { diff --git a/qt6/gen_qfiledialog.go b/qt6/gen_qfiledialog.go index ff774108..ecf18200 100644 --- a/qt6/gen_qfiledialog.go +++ b/qt6/gen_qfiledialog.go @@ -90,20 +90,20 @@ func UnsafeNewQFileDialog(h unsafe.Pointer) *QFileDialog { } // NewQFileDialog constructs a new QFileDialog object. -func NewQFileDialog(parent *QWidget, f WindowType) *QFileDialog { - ret := C.QFileDialog_new(parent.cPointer(), (C.int)(f)) +func NewQFileDialog(parent *QWidget) *QFileDialog { + ret := C.QFileDialog_new(parent.cPointer()) return newQFileDialog(ret) } // NewQFileDialog2 constructs a new QFileDialog object. -func NewQFileDialog2() *QFileDialog { - ret := C.QFileDialog_new2() +func NewQFileDialog2(parent *QWidget, f WindowType) *QFileDialog { + ret := C.QFileDialog_new2(parent.cPointer(), (C.int)(f)) return newQFileDialog(ret) } // NewQFileDialog3 constructs a new QFileDialog object. -func NewQFileDialog3(parent *QWidget) *QFileDialog { - ret := C.QFileDialog_new3(parent.cPointer()) +func NewQFileDialog3() *QFileDialog { + ret := C.QFileDialog_new3() return newQFileDialog(ret) } diff --git a/qt6/gen_qfiledialog.h b/qt6/gen_qfiledialog.h index 3a14a890..8a18a89f 100644 --- a/qt6/gen_qfiledialog.h +++ b/qt6/gen_qfiledialog.h @@ -35,9 +35,9 @@ typedef struct QUrl QUrl; typedef struct QWidget QWidget; #endif -QFileDialog* QFileDialog_new(QWidget* parent, int f); -QFileDialog* QFileDialog_new2(); -QFileDialog* QFileDialog_new3(QWidget* parent); +QFileDialog* QFileDialog_new(QWidget* parent); +QFileDialog* QFileDialog_new2(QWidget* parent, int f); +QFileDialog* QFileDialog_new3(); QFileDialog* QFileDialog_new4(QWidget* parent, struct miqt_string caption); QFileDialog* QFileDialog_new5(QWidget* parent, struct miqt_string caption, struct miqt_string directory); QFileDialog* QFileDialog_new6(QWidget* parent, struct miqt_string caption, struct miqt_string directory, struct miqt_string filter); diff --git a/qt6/gen_qfocusframe.cpp b/qt6/gen_qfocusframe.cpp index eda7cde9..df30ac12 100644 --- a/qt6/gen_qfocusframe.cpp +++ b/qt6/gen_qfocusframe.cpp @@ -8,12 +8,12 @@ #include "gen_qfocusframe.h" #include "_cgo_export.h" -QFocusFrame* QFocusFrame_new() { - return new QFocusFrame(); +QFocusFrame* QFocusFrame_new(QWidget* parent) { + return new QFocusFrame(parent); } -QFocusFrame* QFocusFrame_new2(QWidget* parent) { - return new QFocusFrame(parent); +QFocusFrame* QFocusFrame_new2() { + return new QFocusFrame(); } QMetaObject* QFocusFrame_MetaObject(const QFocusFrame* self) { diff --git a/qt6/gen_qfocusframe.go b/qt6/gen_qfocusframe.go index 8f34cb1b..b4134fae 100644 --- a/qt6/gen_qfocusframe.go +++ b/qt6/gen_qfocusframe.go @@ -44,14 +44,14 @@ func UnsafeNewQFocusFrame(h unsafe.Pointer) *QFocusFrame { } // NewQFocusFrame constructs a new QFocusFrame object. -func NewQFocusFrame() *QFocusFrame { - ret := C.QFocusFrame_new() +func NewQFocusFrame(parent *QWidget) *QFocusFrame { + ret := C.QFocusFrame_new(parent.cPointer()) return newQFocusFrame(ret) } // NewQFocusFrame2 constructs a new QFocusFrame object. -func NewQFocusFrame2(parent *QWidget) *QFocusFrame { - ret := C.QFocusFrame_new2(parent.cPointer()) +func NewQFocusFrame2() *QFocusFrame { + ret := C.QFocusFrame_new2() return newQFocusFrame(ret) } diff --git a/qt6/gen_qfocusframe.h b/qt6/gen_qfocusframe.h index 5cd70bbb..d50995ed 100644 --- a/qt6/gen_qfocusframe.h +++ b/qt6/gen_qfocusframe.h @@ -23,8 +23,8 @@ typedef struct QMetaObject QMetaObject; typedef struct QWidget QWidget; #endif -QFocusFrame* QFocusFrame_new(); -QFocusFrame* QFocusFrame_new2(QWidget* parent); +QFocusFrame* QFocusFrame_new(QWidget* parent); +QFocusFrame* QFocusFrame_new2(); QMetaObject* QFocusFrame_MetaObject(const QFocusFrame* self); void* QFocusFrame_Metacast(QFocusFrame* self, const char* param1); struct miqt_string QFocusFrame_Tr(const char* s); diff --git a/qt6/gen_qfontcombobox.cpp b/qt6/gen_qfontcombobox.cpp index 1ead6382..359c7e86 100644 --- a/qt6/gen_qfontcombobox.cpp +++ b/qt6/gen_qfontcombobox.cpp @@ -10,12 +10,12 @@ #include "gen_qfontcombobox.h" #include "_cgo_export.h" -QFontComboBox* QFontComboBox_new() { - return new QFontComboBox(); +QFontComboBox* QFontComboBox_new(QWidget* parent) { + return new QFontComboBox(parent); } -QFontComboBox* QFontComboBox_new2(QWidget* parent) { - return new QFontComboBox(parent); +QFontComboBox* QFontComboBox_new2() { + return new QFontComboBox(); } QMetaObject* QFontComboBox_MetaObject(const QFontComboBox* self) { diff --git a/qt6/gen_qfontcombobox.go b/qt6/gen_qfontcombobox.go index cf78a90a..9e0da525 100644 --- a/qt6/gen_qfontcombobox.go +++ b/qt6/gen_qfontcombobox.go @@ -55,14 +55,14 @@ func UnsafeNewQFontComboBox(h unsafe.Pointer) *QFontComboBox { } // NewQFontComboBox constructs a new QFontComboBox object. -func NewQFontComboBox() *QFontComboBox { - ret := C.QFontComboBox_new() +func NewQFontComboBox(parent *QWidget) *QFontComboBox { + ret := C.QFontComboBox_new(parent.cPointer()) return newQFontComboBox(ret) } // NewQFontComboBox2 constructs a new QFontComboBox object. -func NewQFontComboBox2(parent *QWidget) *QFontComboBox { - ret := C.QFontComboBox_new2(parent.cPointer()) +func NewQFontComboBox2() *QFontComboBox { + ret := C.QFontComboBox_new2() return newQFontComboBox(ret) } diff --git a/qt6/gen_qfontcombobox.h b/qt6/gen_qfontcombobox.h index 132fc676..bf3edbec 100644 --- a/qt6/gen_qfontcombobox.h +++ b/qt6/gen_qfontcombobox.h @@ -27,8 +27,8 @@ typedef struct QSize QSize; typedef struct QWidget QWidget; #endif -QFontComboBox* QFontComboBox_new(); -QFontComboBox* QFontComboBox_new2(QWidget* parent); +QFontComboBox* QFontComboBox_new(QWidget* parent); +QFontComboBox* QFontComboBox_new2(); QMetaObject* QFontComboBox_MetaObject(const QFontComboBox* self); void* QFontComboBox_Metacast(QFontComboBox* self, const char* param1); struct miqt_string QFontComboBox_Tr(const char* s); diff --git a/qt6/gen_qfontdialog.cpp b/qt6/gen_qfontdialog.cpp index 74068e2c..ee407856 100644 --- a/qt6/gen_qfontdialog.cpp +++ b/qt6/gen_qfontdialog.cpp @@ -9,16 +9,16 @@ #include "gen_qfontdialog.h" #include "_cgo_export.h" -QFontDialog* QFontDialog_new() { - return new QFontDialog(); +QFontDialog* QFontDialog_new(QWidget* parent) { + return new QFontDialog(parent); } -QFontDialog* QFontDialog_new2(QFont* initial) { - return new QFontDialog(*initial); +QFontDialog* QFontDialog_new2() { + return new QFontDialog(); } -QFontDialog* QFontDialog_new3(QWidget* parent) { - return new QFontDialog(parent); +QFontDialog* QFontDialog_new3(QFont* initial) { + return new QFontDialog(*initial); } QFontDialog* QFontDialog_new4(QFont* initial, QWidget* parent) { diff --git a/qt6/gen_qfontdialog.go b/qt6/gen_qfontdialog.go index 24f6c39c..eaa85cd8 100644 --- a/qt6/gen_qfontdialog.go +++ b/qt6/gen_qfontdialog.go @@ -56,20 +56,20 @@ func UnsafeNewQFontDialog(h unsafe.Pointer) *QFontDialog { } // NewQFontDialog constructs a new QFontDialog object. -func NewQFontDialog() *QFontDialog { - ret := C.QFontDialog_new() +func NewQFontDialog(parent *QWidget) *QFontDialog { + ret := C.QFontDialog_new(parent.cPointer()) return newQFontDialog(ret) } // NewQFontDialog2 constructs a new QFontDialog object. -func NewQFontDialog2(initial *QFont) *QFontDialog { - ret := C.QFontDialog_new2(initial.cPointer()) +func NewQFontDialog2() *QFontDialog { + ret := C.QFontDialog_new2() return newQFontDialog(ret) } // NewQFontDialog3 constructs a new QFontDialog object. -func NewQFontDialog3(parent *QWidget) *QFontDialog { - ret := C.QFontDialog_new3(parent.cPointer()) +func NewQFontDialog3(initial *QFont) *QFontDialog { + ret := C.QFontDialog_new3(initial.cPointer()) return newQFontDialog(ret) } diff --git a/qt6/gen_qfontdialog.h b/qt6/gen_qfontdialog.h index 97202913..e678443f 100644 --- a/qt6/gen_qfontdialog.h +++ b/qt6/gen_qfontdialog.h @@ -25,9 +25,9 @@ typedef struct QMetaObject QMetaObject; typedef struct QWidget QWidget; #endif -QFontDialog* QFontDialog_new(); -QFontDialog* QFontDialog_new2(QFont* initial); -QFontDialog* QFontDialog_new3(QWidget* parent); +QFontDialog* QFontDialog_new(QWidget* parent); +QFontDialog* QFontDialog_new2(); +QFontDialog* QFontDialog_new3(QFont* initial); QFontDialog* QFontDialog_new4(QFont* initial, QWidget* parent); QMetaObject* QFontDialog_MetaObject(const QFontDialog* self); void* QFontDialog_Metacast(QFontDialog* self, const char* param1); diff --git a/qt6/gen_qformlayout.cpp b/qt6/gen_qformlayout.cpp index 02566562..c94f0891 100644 --- a/qt6/gen_qformlayout.cpp +++ b/qt6/gen_qformlayout.cpp @@ -13,12 +13,12 @@ #include "gen_qformlayout.h" #include "_cgo_export.h" -QFormLayout* QFormLayout_new() { - return new QFormLayout(); +QFormLayout* QFormLayout_new(QWidget* parent) { + return new QFormLayout(parent); } -QFormLayout* QFormLayout_new2(QWidget* parent) { - return new QFormLayout(parent); +QFormLayout* QFormLayout_new2() { + return new QFormLayout(); } QMetaObject* QFormLayout_MetaObject(const QFormLayout* self) { diff --git a/qt6/gen_qformlayout.go b/qt6/gen_qformlayout.go index fe4f8ff5..8518d84b 100644 --- a/qt6/gen_qformlayout.go +++ b/qt6/gen_qformlayout.go @@ -68,14 +68,14 @@ func UnsafeNewQFormLayout(h unsafe.Pointer) *QFormLayout { } // NewQFormLayout constructs a new QFormLayout object. -func NewQFormLayout() *QFormLayout { - ret := C.QFormLayout_new() +func NewQFormLayout(parent *QWidget) *QFormLayout { + ret := C.QFormLayout_new(parent.cPointer()) return newQFormLayout(ret) } // NewQFormLayout2 constructs a new QFormLayout object. -func NewQFormLayout2(parent *QWidget) *QFormLayout { - ret := C.QFormLayout_new2(parent.cPointer()) +func NewQFormLayout2() *QFormLayout { + ret := C.QFormLayout_new2() return newQFormLayout(ret) } diff --git a/qt6/gen_qformlayout.h b/qt6/gen_qformlayout.h index 8da9ed18..a97d0f18 100644 --- a/qt6/gen_qformlayout.h +++ b/qt6/gen_qformlayout.h @@ -37,8 +37,8 @@ typedef struct QSize QSize; typedef struct QWidget QWidget; #endif -QFormLayout* QFormLayout_new(); -QFormLayout* QFormLayout_new2(QWidget* parent); +QFormLayout* QFormLayout_new(QWidget* parent); +QFormLayout* QFormLayout_new2(); QMetaObject* QFormLayout_MetaObject(const QFormLayout* self); void* QFormLayout_Metacast(QFormLayout* self, const char* param1); struct miqt_string QFormLayout_Tr(const char* s); diff --git a/qt6/gen_qframe.cpp b/qt6/gen_qframe.cpp index 582f02fc..77fc11d7 100644 --- a/qt6/gen_qframe.cpp +++ b/qt6/gen_qframe.cpp @@ -10,12 +10,12 @@ #include "gen_qframe.h" #include "_cgo_export.h" -QFrame* QFrame_new() { - return new QFrame(); +QFrame* QFrame_new(QWidget* parent) { + return new QFrame(parent); } -QFrame* QFrame_new2(QWidget* parent) { - return new QFrame(parent); +QFrame* QFrame_new2() { + return new QFrame(); } QFrame* QFrame_new3(QWidget* parent, int f) { diff --git a/qt6/gen_qframe.go b/qt6/gen_qframe.go index 61de8513..da0c65fe 100644 --- a/qt6/gen_qframe.go +++ b/qt6/gen_qframe.go @@ -71,14 +71,14 @@ func UnsafeNewQFrame(h unsafe.Pointer) *QFrame { } // NewQFrame constructs a new QFrame object. -func NewQFrame() *QFrame { - ret := C.QFrame_new() +func NewQFrame(parent *QWidget) *QFrame { + ret := C.QFrame_new(parent.cPointer()) return newQFrame(ret) } // NewQFrame2 constructs a new QFrame object. -func NewQFrame2(parent *QWidget) *QFrame { - ret := C.QFrame_new2(parent.cPointer()) +func NewQFrame2() *QFrame { + ret := C.QFrame_new2() return newQFrame(ret) } diff --git a/qt6/gen_qframe.h b/qt6/gen_qframe.h index a7fa325f..79280141 100644 --- a/qt6/gen_qframe.h +++ b/qt6/gen_qframe.h @@ -27,8 +27,8 @@ typedef struct QSize QSize; typedef struct QWidget QWidget; #endif -QFrame* QFrame_new(); -QFrame* QFrame_new2(QWidget* parent); +QFrame* QFrame_new(QWidget* parent); +QFrame* QFrame_new2(); QFrame* QFrame_new3(QWidget* parent, int f); QMetaObject* QFrame_MetaObject(const QFrame* self); void* QFrame_Metacast(QFrame* self, const char* param1); diff --git a/qt6/gen_qgraphicsview.cpp b/qt6/gen_qgraphicsview.cpp index 45d2539a..a501a407 100644 --- a/qt6/gen_qgraphicsview.cpp +++ b/qt6/gen_qgraphicsview.cpp @@ -21,16 +21,16 @@ #include "gen_qgraphicsview.h" #include "_cgo_export.h" -QGraphicsView* QGraphicsView_new() { - return new QGraphicsView(); +QGraphicsView* QGraphicsView_new(QWidget* parent) { + return new QGraphicsView(parent); } -QGraphicsView* QGraphicsView_new2(QGraphicsScene* scene) { - return new QGraphicsView(scene); +QGraphicsView* QGraphicsView_new2() { + return new QGraphicsView(); } -QGraphicsView* QGraphicsView_new3(QWidget* parent) { - return new QGraphicsView(parent); +QGraphicsView* QGraphicsView_new3(QGraphicsScene* scene) { + return new QGraphicsView(scene); } QGraphicsView* QGraphicsView_new4(QGraphicsScene* scene, QWidget* parent) { diff --git a/qt6/gen_qgraphicsview.go b/qt6/gen_qgraphicsview.go index c0386d3f..491b908f 100644 --- a/qt6/gen_qgraphicsview.go +++ b/qt6/gen_qgraphicsview.go @@ -86,20 +86,20 @@ func UnsafeNewQGraphicsView(h unsafe.Pointer) *QGraphicsView { } // NewQGraphicsView constructs a new QGraphicsView object. -func NewQGraphicsView() *QGraphicsView { - ret := C.QGraphicsView_new() +func NewQGraphicsView(parent *QWidget) *QGraphicsView { + ret := C.QGraphicsView_new(parent.cPointer()) return newQGraphicsView(ret) } // NewQGraphicsView2 constructs a new QGraphicsView object. -func NewQGraphicsView2(scene *QGraphicsScene) *QGraphicsView { - ret := C.QGraphicsView_new2(scene.cPointer()) +func NewQGraphicsView2() *QGraphicsView { + ret := C.QGraphicsView_new2() return newQGraphicsView(ret) } // NewQGraphicsView3 constructs a new QGraphicsView object. -func NewQGraphicsView3(parent *QWidget) *QGraphicsView { - ret := C.QGraphicsView_new3(parent.cPointer()) +func NewQGraphicsView3(scene *QGraphicsScene) *QGraphicsView { + ret := C.QGraphicsView_new3(scene.cPointer()) return newQGraphicsView(ret) } diff --git a/qt6/gen_qgraphicsview.h b/qt6/gen_qgraphicsview.h index ccfe2677..6d7543e3 100644 --- a/qt6/gen_qgraphicsview.h +++ b/qt6/gen_qgraphicsview.h @@ -47,9 +47,9 @@ typedef struct QVariant QVariant; typedef struct QWidget QWidget; #endif -QGraphicsView* QGraphicsView_new(); -QGraphicsView* QGraphicsView_new2(QGraphicsScene* scene); -QGraphicsView* QGraphicsView_new3(QWidget* parent); +QGraphicsView* QGraphicsView_new(QWidget* parent); +QGraphicsView* QGraphicsView_new2(); +QGraphicsView* QGraphicsView_new3(QGraphicsScene* scene); QGraphicsView* QGraphicsView_new4(QGraphicsScene* scene, QWidget* parent); QMetaObject* QGraphicsView_MetaObject(const QGraphicsView* self); void* QGraphicsView_Metacast(QGraphicsView* self, const char* param1); diff --git a/qt6/gen_qgridlayout.cpp b/qt6/gen_qgridlayout.cpp index 549fc1a1..7ba9eb86 100644 --- a/qt6/gen_qgridlayout.cpp +++ b/qt6/gen_qgridlayout.cpp @@ -12,12 +12,12 @@ #include "gen_qgridlayout.h" #include "_cgo_export.h" -QGridLayout* QGridLayout_new() { - return new QGridLayout(); +QGridLayout* QGridLayout_new(QWidget* parent) { + return new QGridLayout(parent); } -QGridLayout* QGridLayout_new2(QWidget* parent) { - return new QGridLayout(parent); +QGridLayout* QGridLayout_new2() { + return new QGridLayout(); } QMetaObject* QGridLayout_MetaObject(const QGridLayout* self) { diff --git a/qt6/gen_qgridlayout.go b/qt6/gen_qgridlayout.go index f9c1135f..a3db8dbc 100644 --- a/qt6/gen_qgridlayout.go +++ b/qt6/gen_qgridlayout.go @@ -44,14 +44,14 @@ func UnsafeNewQGridLayout(h unsafe.Pointer) *QGridLayout { } // NewQGridLayout constructs a new QGridLayout object. -func NewQGridLayout() *QGridLayout { - ret := C.QGridLayout_new() +func NewQGridLayout(parent *QWidget) *QGridLayout { + ret := C.QGridLayout_new(parent.cPointer()) return newQGridLayout(ret) } // NewQGridLayout2 constructs a new QGridLayout object. -func NewQGridLayout2(parent *QWidget) *QGridLayout { - ret := C.QGridLayout_new2(parent.cPointer()) +func NewQGridLayout2() *QGridLayout { + ret := C.QGridLayout_new2() return newQGridLayout(ret) } diff --git a/qt6/gen_qgridlayout.h b/qt6/gen_qgridlayout.h index d54ead9c..9eb2b989 100644 --- a/qt6/gen_qgridlayout.h +++ b/qt6/gen_qgridlayout.h @@ -31,8 +31,8 @@ typedef struct QSize QSize; typedef struct QWidget QWidget; #endif -QGridLayout* QGridLayout_new(); -QGridLayout* QGridLayout_new2(QWidget* parent); +QGridLayout* QGridLayout_new(QWidget* parent); +QGridLayout* QGridLayout_new2(); QMetaObject* QGridLayout_MetaObject(const QGridLayout* self); void* QGridLayout_Metacast(QGridLayout* self, const char* param1); struct miqt_string QGridLayout_Tr(const char* s); diff --git a/qt6/gen_qgroupbox.cpp b/qt6/gen_qgroupbox.cpp index ee238248..22430303 100644 --- a/qt6/gen_qgroupbox.cpp +++ b/qt6/gen_qgroupbox.cpp @@ -9,19 +9,19 @@ #include "gen_qgroupbox.h" #include "_cgo_export.h" -QGroupBox* QGroupBox_new() { +QGroupBox* QGroupBox_new(QWidget* parent) { + return new QGroupBox(parent); +} + +QGroupBox* QGroupBox_new2() { return new QGroupBox(); } -QGroupBox* QGroupBox_new2(struct miqt_string title) { +QGroupBox* QGroupBox_new3(struct miqt_string title) { QString title_QString = QString::fromUtf8(title.data, title.len); return new QGroupBox(title_QString); } -QGroupBox* QGroupBox_new3(QWidget* parent) { - return new QGroupBox(parent); -} - QGroupBox* QGroupBox_new4(struct miqt_string title, QWidget* parent) { QString title_QString = QString::fromUtf8(title.data, title.len); return new QGroupBox(title_QString, parent); diff --git a/qt6/gen_qgroupbox.go b/qt6/gen_qgroupbox.go index 9c5f8e5a..8f724b79 100644 --- a/qt6/gen_qgroupbox.go +++ b/qt6/gen_qgroupbox.go @@ -45,24 +45,24 @@ func UnsafeNewQGroupBox(h unsafe.Pointer) *QGroupBox { } // NewQGroupBox constructs a new QGroupBox object. -func NewQGroupBox() *QGroupBox { - ret := C.QGroupBox_new() +func NewQGroupBox(parent *QWidget) *QGroupBox { + ret := C.QGroupBox_new(parent.cPointer()) return newQGroupBox(ret) } // NewQGroupBox2 constructs a new QGroupBox object. -func NewQGroupBox2(title string) *QGroupBox { - title_ms := C.struct_miqt_string{} - title_ms.data = C.CString(title) - title_ms.len = C.size_t(len(title)) - defer C.free(unsafe.Pointer(title_ms.data)) - ret := C.QGroupBox_new2(title_ms) +func NewQGroupBox2() *QGroupBox { + ret := C.QGroupBox_new2() return newQGroupBox(ret) } // NewQGroupBox3 constructs a new QGroupBox object. -func NewQGroupBox3(parent *QWidget) *QGroupBox { - ret := C.QGroupBox_new3(parent.cPointer()) +func NewQGroupBox3(title string) *QGroupBox { + title_ms := C.struct_miqt_string{} + title_ms.data = C.CString(title) + title_ms.len = C.size_t(len(title)) + defer C.free(unsafe.Pointer(title_ms.data)) + ret := C.QGroupBox_new3(title_ms) return newQGroupBox(ret) } diff --git a/qt6/gen_qgroupbox.h b/qt6/gen_qgroupbox.h index d4325a19..88ec32e7 100644 --- a/qt6/gen_qgroupbox.h +++ b/qt6/gen_qgroupbox.h @@ -25,9 +25,9 @@ typedef struct QSize QSize; typedef struct QWidget QWidget; #endif -QGroupBox* QGroupBox_new(); -QGroupBox* QGroupBox_new2(struct miqt_string title); -QGroupBox* QGroupBox_new3(QWidget* parent); +QGroupBox* QGroupBox_new(QWidget* parent); +QGroupBox* QGroupBox_new2(); +QGroupBox* QGroupBox_new3(struct miqt_string title); QGroupBox* QGroupBox_new4(struct miqt_string title, QWidget* parent); QMetaObject* QGroupBox_MetaObject(const QGroupBox* self); void* QGroupBox_Metacast(QGroupBox* self, const char* param1); diff --git a/qt6/gen_qinputdialog.cpp b/qt6/gen_qinputdialog.cpp index 3333a267..54528c8f 100644 --- a/qt6/gen_qinputdialog.cpp +++ b/qt6/gen_qinputdialog.cpp @@ -10,12 +10,12 @@ #include "gen_qinputdialog.h" #include "_cgo_export.h" -QInputDialog* QInputDialog_new() { - return new QInputDialog(); +QInputDialog* QInputDialog_new(QWidget* parent) { + return new QInputDialog(parent); } -QInputDialog* QInputDialog_new2(QWidget* parent) { - return new QInputDialog(parent); +QInputDialog* QInputDialog_new2() { + return new QInputDialog(); } QInputDialog* QInputDialog_new3(QWidget* parent, int flags) { diff --git a/qt6/gen_qinputdialog.go b/qt6/gen_qinputdialog.go index 5afd1584..e8bb3748 100644 --- a/qt6/gen_qinputdialog.go +++ b/qt6/gen_qinputdialog.go @@ -61,14 +61,14 @@ func UnsafeNewQInputDialog(h unsafe.Pointer) *QInputDialog { } // NewQInputDialog constructs a new QInputDialog object. -func NewQInputDialog() *QInputDialog { - ret := C.QInputDialog_new() +func NewQInputDialog(parent *QWidget) *QInputDialog { + ret := C.QInputDialog_new(parent.cPointer()) return newQInputDialog(ret) } // NewQInputDialog2 constructs a new QInputDialog object. -func NewQInputDialog2(parent *QWidget) *QInputDialog { - ret := C.QInputDialog_new2(parent.cPointer()) +func NewQInputDialog2() *QInputDialog { + ret := C.QInputDialog_new2() return newQInputDialog(ret) } diff --git a/qt6/gen_qinputdialog.h b/qt6/gen_qinputdialog.h index 75d4ff7c..de8b83f9 100644 --- a/qt6/gen_qinputdialog.h +++ b/qt6/gen_qinputdialog.h @@ -25,8 +25,8 @@ typedef struct QSize QSize; typedef struct QWidget QWidget; #endif -QInputDialog* QInputDialog_new(); -QInputDialog* QInputDialog_new2(QWidget* parent); +QInputDialog* QInputDialog_new(QWidget* parent); +QInputDialog* QInputDialog_new2(); QInputDialog* QInputDialog_new3(QWidget* parent, int flags); QMetaObject* QInputDialog_MetaObject(const QInputDialog* self); void* QInputDialog_Metacast(QInputDialog* self, const char* param1); diff --git a/qt6/gen_qkeysequenceedit.cpp b/qt6/gen_qkeysequenceedit.cpp index 78a1f11e..c524cf5b 100644 --- a/qt6/gen_qkeysequenceedit.cpp +++ b/qt6/gen_qkeysequenceedit.cpp @@ -9,16 +9,16 @@ #include "gen_qkeysequenceedit.h" #include "_cgo_export.h" -QKeySequenceEdit* QKeySequenceEdit_new() { - return new QKeySequenceEdit(); +QKeySequenceEdit* QKeySequenceEdit_new(QWidget* parent) { + return new QKeySequenceEdit(parent); } -QKeySequenceEdit* QKeySequenceEdit_new2(QKeySequence* keySequence) { - return new QKeySequenceEdit(*keySequence); +QKeySequenceEdit* QKeySequenceEdit_new2() { + return new QKeySequenceEdit(); } -QKeySequenceEdit* QKeySequenceEdit_new3(QWidget* parent) { - return new QKeySequenceEdit(parent); +QKeySequenceEdit* QKeySequenceEdit_new3(QKeySequence* keySequence) { + return new QKeySequenceEdit(*keySequence); } QKeySequenceEdit* QKeySequenceEdit_new4(QKeySequence* keySequence, QWidget* parent) { diff --git a/qt6/gen_qkeysequenceedit.go b/qt6/gen_qkeysequenceedit.go index c00b38c8..b0ad91f9 100644 --- a/qt6/gen_qkeysequenceedit.go +++ b/qt6/gen_qkeysequenceedit.go @@ -45,20 +45,20 @@ func UnsafeNewQKeySequenceEdit(h unsafe.Pointer) *QKeySequenceEdit { } // NewQKeySequenceEdit constructs a new QKeySequenceEdit object. -func NewQKeySequenceEdit() *QKeySequenceEdit { - ret := C.QKeySequenceEdit_new() +func NewQKeySequenceEdit(parent *QWidget) *QKeySequenceEdit { + ret := C.QKeySequenceEdit_new(parent.cPointer()) return newQKeySequenceEdit(ret) } // NewQKeySequenceEdit2 constructs a new QKeySequenceEdit object. -func NewQKeySequenceEdit2(keySequence *QKeySequence) *QKeySequenceEdit { - ret := C.QKeySequenceEdit_new2(keySequence.cPointer()) +func NewQKeySequenceEdit2() *QKeySequenceEdit { + ret := C.QKeySequenceEdit_new2() return newQKeySequenceEdit(ret) } // NewQKeySequenceEdit3 constructs a new QKeySequenceEdit object. -func NewQKeySequenceEdit3(parent *QWidget) *QKeySequenceEdit { - ret := C.QKeySequenceEdit_new3(parent.cPointer()) +func NewQKeySequenceEdit3(keySequence *QKeySequence) *QKeySequenceEdit { + ret := C.QKeySequenceEdit_new3(keySequence.cPointer()) return newQKeySequenceEdit(ret) } diff --git a/qt6/gen_qkeysequenceedit.h b/qt6/gen_qkeysequenceedit.h index 0bb49cc0..ada98c35 100644 --- a/qt6/gen_qkeysequenceedit.h +++ b/qt6/gen_qkeysequenceedit.h @@ -25,9 +25,9 @@ typedef struct QMetaObject QMetaObject; typedef struct QWidget QWidget; #endif -QKeySequenceEdit* QKeySequenceEdit_new(); -QKeySequenceEdit* QKeySequenceEdit_new2(QKeySequence* keySequence); -QKeySequenceEdit* QKeySequenceEdit_new3(QWidget* parent); +QKeySequenceEdit* QKeySequenceEdit_new(QWidget* parent); +QKeySequenceEdit* QKeySequenceEdit_new2(); +QKeySequenceEdit* QKeySequenceEdit_new3(QKeySequence* keySequence); QKeySequenceEdit* QKeySequenceEdit_new4(QKeySequence* keySequence, QWidget* parent); QMetaObject* QKeySequenceEdit_MetaObject(const QKeySequenceEdit* self); void* QKeySequenceEdit_Metacast(QKeySequenceEdit* self, const char* param1); diff --git a/qt6/gen_qlabel.cpp b/qt6/gen_qlabel.cpp index 09a75438..fe7af127 100644 --- a/qt6/gen_qlabel.cpp +++ b/qt6/gen_qlabel.cpp @@ -12,19 +12,19 @@ #include "gen_qlabel.h" #include "_cgo_export.h" -QLabel* QLabel_new() { +QLabel* QLabel_new(QWidget* parent) { + return new QLabel(parent); +} + +QLabel* QLabel_new2() { return new QLabel(); } -QLabel* QLabel_new2(struct miqt_string text) { +QLabel* QLabel_new3(struct miqt_string text) { QString text_QString = QString::fromUtf8(text.data, text.len); return new QLabel(text_QString); } -QLabel* QLabel_new3(QWidget* parent) { - return new QLabel(parent); -} - QLabel* QLabel_new4(QWidget* parent, int f) { return new QLabel(parent, static_cast(f)); } diff --git a/qt6/gen_qlabel.go b/qt6/gen_qlabel.go index 217fca90..ae7b43ca 100644 --- a/qt6/gen_qlabel.go +++ b/qt6/gen_qlabel.go @@ -45,24 +45,24 @@ func UnsafeNewQLabel(h unsafe.Pointer) *QLabel { } // NewQLabel constructs a new QLabel object. -func NewQLabel() *QLabel { - ret := C.QLabel_new() +func NewQLabel(parent *QWidget) *QLabel { + ret := C.QLabel_new(parent.cPointer()) return newQLabel(ret) } // NewQLabel2 constructs a new QLabel object. -func NewQLabel2(text string) *QLabel { - text_ms := C.struct_miqt_string{} - text_ms.data = C.CString(text) - text_ms.len = C.size_t(len(text)) - defer C.free(unsafe.Pointer(text_ms.data)) - ret := C.QLabel_new2(text_ms) +func NewQLabel2() *QLabel { + ret := C.QLabel_new2() return newQLabel(ret) } // NewQLabel3 constructs a new QLabel object. -func NewQLabel3(parent *QWidget) *QLabel { - ret := C.QLabel_new3(parent.cPointer()) +func NewQLabel3(text string) *QLabel { + text_ms := C.struct_miqt_string{} + text_ms.data = C.CString(text) + text_ms.len = C.size_t(len(text)) + defer C.free(unsafe.Pointer(text_ms.data)) + ret := C.QLabel_new3(text_ms) return newQLabel(ret) } diff --git a/qt6/gen_qlabel.h b/qt6/gen_qlabel.h index f6d9d876..4009a6d1 100644 --- a/qt6/gen_qlabel.h +++ b/qt6/gen_qlabel.h @@ -31,9 +31,9 @@ typedef struct QSize QSize; typedef struct QWidget QWidget; #endif -QLabel* QLabel_new(); -QLabel* QLabel_new2(struct miqt_string text); -QLabel* QLabel_new3(QWidget* parent); +QLabel* QLabel_new(QWidget* parent); +QLabel* QLabel_new2(); +QLabel* QLabel_new3(struct miqt_string text); QLabel* QLabel_new4(QWidget* parent, int f); QLabel* QLabel_new5(struct miqt_string text, QWidget* parent); QLabel* QLabel_new6(struct miqt_string text, QWidget* parent, int f); diff --git a/qt6/gen_qlcdnumber.cpp b/qt6/gen_qlcdnumber.cpp index 1b7acd08..75efd194 100644 --- a/qt6/gen_qlcdnumber.cpp +++ b/qt6/gen_qlcdnumber.cpp @@ -9,16 +9,16 @@ #include "gen_qlcdnumber.h" #include "_cgo_export.h" -QLCDNumber* QLCDNumber_new() { - return new QLCDNumber(); +QLCDNumber* QLCDNumber_new(QWidget* parent) { + return new QLCDNumber(parent); } -QLCDNumber* QLCDNumber_new2(unsigned int numDigits) { - return new QLCDNumber(static_cast(numDigits)); +QLCDNumber* QLCDNumber_new2() { + return new QLCDNumber(); } -QLCDNumber* QLCDNumber_new3(QWidget* parent) { - return new QLCDNumber(parent); +QLCDNumber* QLCDNumber_new3(unsigned int numDigits) { + return new QLCDNumber(static_cast(numDigits)); } QLCDNumber* QLCDNumber_new4(unsigned int numDigits, QWidget* parent) { diff --git a/qt6/gen_qlcdnumber.go b/qt6/gen_qlcdnumber.go index d3aed7ab..46adee8d 100644 --- a/qt6/gen_qlcdnumber.go +++ b/qt6/gen_qlcdnumber.go @@ -62,20 +62,20 @@ func UnsafeNewQLCDNumber(h unsafe.Pointer) *QLCDNumber { } // NewQLCDNumber constructs a new QLCDNumber object. -func NewQLCDNumber() *QLCDNumber { - ret := C.QLCDNumber_new() +func NewQLCDNumber(parent *QWidget) *QLCDNumber { + ret := C.QLCDNumber_new(parent.cPointer()) return newQLCDNumber(ret) } // NewQLCDNumber2 constructs a new QLCDNumber object. -func NewQLCDNumber2(numDigits uint) *QLCDNumber { - ret := C.QLCDNumber_new2((C.uint)(numDigits)) +func NewQLCDNumber2() *QLCDNumber { + ret := C.QLCDNumber_new2() return newQLCDNumber(ret) } // NewQLCDNumber3 constructs a new QLCDNumber object. -func NewQLCDNumber3(parent *QWidget) *QLCDNumber { - ret := C.QLCDNumber_new3(parent.cPointer()) +func NewQLCDNumber3(numDigits uint) *QLCDNumber { + ret := C.QLCDNumber_new3((C.uint)(numDigits)) return newQLCDNumber(ret) } diff --git a/qt6/gen_qlcdnumber.h b/qt6/gen_qlcdnumber.h index 21f2e48d..8aabe6fe 100644 --- a/qt6/gen_qlcdnumber.h +++ b/qt6/gen_qlcdnumber.h @@ -25,9 +25,9 @@ typedef struct QSize QSize; typedef struct QWidget QWidget; #endif -QLCDNumber* QLCDNumber_new(); -QLCDNumber* QLCDNumber_new2(unsigned int numDigits); -QLCDNumber* QLCDNumber_new3(QWidget* parent); +QLCDNumber* QLCDNumber_new(QWidget* parent); +QLCDNumber* QLCDNumber_new2(); +QLCDNumber* QLCDNumber_new3(unsigned int numDigits); QLCDNumber* QLCDNumber_new4(unsigned int numDigits, QWidget* parent); QMetaObject* QLCDNumber_MetaObject(const QLCDNumber* self); void* QLCDNumber_Metacast(QLCDNumber* self, const char* param1); diff --git a/qt6/gen_qlineedit.cpp b/qt6/gen_qlineedit.cpp index 44944162..b248a60a 100644 --- a/qt6/gen_qlineedit.cpp +++ b/qt6/gen_qlineedit.cpp @@ -19,19 +19,19 @@ #include "gen_qlineedit.h" #include "_cgo_export.h" -QLineEdit* QLineEdit_new() { +QLineEdit* QLineEdit_new(QWidget* parent) { + return new QLineEdit(parent); +} + +QLineEdit* QLineEdit_new2() { return new QLineEdit(); } -QLineEdit* QLineEdit_new2(struct miqt_string param1) { +QLineEdit* QLineEdit_new3(struct miqt_string param1) { QString param1_QString = QString::fromUtf8(param1.data, param1.len); return new QLineEdit(param1_QString); } -QLineEdit* QLineEdit_new3(QWidget* parent) { - return new QLineEdit(parent); -} - QLineEdit* QLineEdit_new4(struct miqt_string param1, QWidget* parent) { QString param1_QString = QString::fromUtf8(param1.data, param1.len); return new QLineEdit(param1_QString, parent); diff --git a/qt6/gen_qlineedit.go b/qt6/gen_qlineedit.go index 9e7c939c..d098f022 100644 --- a/qt6/gen_qlineedit.go +++ b/qt6/gen_qlineedit.go @@ -61,24 +61,24 @@ func UnsafeNewQLineEdit(h unsafe.Pointer) *QLineEdit { } // NewQLineEdit constructs a new QLineEdit object. -func NewQLineEdit() *QLineEdit { - ret := C.QLineEdit_new() +func NewQLineEdit(parent *QWidget) *QLineEdit { + ret := C.QLineEdit_new(parent.cPointer()) return newQLineEdit(ret) } // NewQLineEdit2 constructs a new QLineEdit object. -func NewQLineEdit2(param1 string) *QLineEdit { - param1_ms := C.struct_miqt_string{} - param1_ms.data = C.CString(param1) - param1_ms.len = C.size_t(len(param1)) - defer C.free(unsafe.Pointer(param1_ms.data)) - ret := C.QLineEdit_new2(param1_ms) +func NewQLineEdit2() *QLineEdit { + ret := C.QLineEdit_new2() return newQLineEdit(ret) } // NewQLineEdit3 constructs a new QLineEdit object. -func NewQLineEdit3(parent *QWidget) *QLineEdit { - ret := C.QLineEdit_new3(parent.cPointer()) +func NewQLineEdit3(param1 string) *QLineEdit { + param1_ms := C.struct_miqt_string{} + param1_ms.data = C.CString(param1) + param1_ms.len = C.size_t(len(param1)) + defer C.free(unsafe.Pointer(param1_ms.data)) + ret := C.QLineEdit_new3(param1_ms) return newQLineEdit(ret) } diff --git a/qt6/gen_qlineedit.h b/qt6/gen_qlineedit.h index ffe49eb4..99dbf145 100644 --- a/qt6/gen_qlineedit.h +++ b/qt6/gen_qlineedit.h @@ -45,9 +45,9 @@ typedef struct QVariant QVariant; typedef struct QWidget QWidget; #endif -QLineEdit* QLineEdit_new(); -QLineEdit* QLineEdit_new2(struct miqt_string param1); -QLineEdit* QLineEdit_new3(QWidget* parent); +QLineEdit* QLineEdit_new(QWidget* parent); +QLineEdit* QLineEdit_new2(); +QLineEdit* QLineEdit_new3(struct miqt_string param1); QLineEdit* QLineEdit_new4(struct miqt_string param1, QWidget* parent); QMetaObject* QLineEdit_MetaObject(const QLineEdit* self); void* QLineEdit_Metacast(QLineEdit* self, const char* param1); diff --git a/qt6/gen_qlistview.cpp b/qt6/gen_qlistview.cpp index b28b0f51..a1cce36f 100644 --- a/qt6/gen_qlistview.cpp +++ b/qt6/gen_qlistview.cpp @@ -13,12 +13,12 @@ #include "gen_qlistview.h" #include "_cgo_export.h" -QListView* QListView_new() { - return new QListView(); +QListView* QListView_new(QWidget* parent) { + return new QListView(parent); } -QListView* QListView_new2(QWidget* parent) { - return new QListView(parent); +QListView* QListView_new2() { + return new QListView(); } QMetaObject* QListView_MetaObject(const QListView* self) { diff --git a/qt6/gen_qlistview.go b/qt6/gen_qlistview.go index b4aeddbf..edaa6905 100644 --- a/qt6/gen_qlistview.go +++ b/qt6/gen_qlistview.go @@ -81,14 +81,14 @@ func UnsafeNewQListView(h unsafe.Pointer) *QListView { } // NewQListView constructs a new QListView object. -func NewQListView() *QListView { - ret := C.QListView_new() +func NewQListView(parent *QWidget) *QListView { + ret := C.QListView_new(parent.cPointer()) return newQListView(ret) } // NewQListView2 constructs a new QListView object. -func NewQListView2(parent *QWidget) *QListView { - ret := C.QListView_new2(parent.cPointer()) +func NewQListView2() *QListView { + ret := C.QListView_new2() return newQListView(ret) } diff --git a/qt6/gen_qlistview.h b/qt6/gen_qlistview.h index 07af0931..7695776d 100644 --- a/qt6/gen_qlistview.h +++ b/qt6/gen_qlistview.h @@ -31,8 +31,8 @@ typedef struct QSize QSize; typedef struct QWidget QWidget; #endif -QListView* QListView_new(); -QListView* QListView_new2(QWidget* parent); +QListView* QListView_new(QWidget* parent); +QListView* QListView_new2(); QMetaObject* QListView_MetaObject(const QListView* self); void* QListView_Metacast(QListView* self, const char* param1); struct miqt_string QListView_Tr(const char* s); diff --git a/qt6/gen_qlistwidget.cpp b/qt6/gen_qlistwidget.cpp index 2bfc504f..7a2d3cc6 100644 --- a/qt6/gen_qlistwidget.cpp +++ b/qt6/gen_qlistwidget.cpp @@ -261,12 +261,12 @@ void QListWidgetItem_Delete(QListWidgetItem* self) { delete self; } -QListWidget* QListWidget_new() { - return new QListWidget(); +QListWidget* QListWidget_new(QWidget* parent) { + return new QListWidget(parent); } -QListWidget* QListWidget_new2(QWidget* parent) { - return new QListWidget(parent); +QListWidget* QListWidget_new2() { + return new QListWidget(); } QMetaObject* QListWidget_MetaObject(const QListWidget* self) { diff --git a/qt6/gen_qlistwidget.go b/qt6/gen_qlistwidget.go index b332a1a9..8a7b9f25 100644 --- a/qt6/gen_qlistwidget.go +++ b/qt6/gen_qlistwidget.go @@ -381,14 +381,14 @@ func UnsafeNewQListWidget(h unsafe.Pointer) *QListWidget { } // NewQListWidget constructs a new QListWidget object. -func NewQListWidget() *QListWidget { - ret := C.QListWidget_new() +func NewQListWidget(parent *QWidget) *QListWidget { + ret := C.QListWidget_new(parent.cPointer()) return newQListWidget(ret) } // NewQListWidget2 constructs a new QListWidget object. -func NewQListWidget2(parent *QWidget) *QListWidget { - ret := C.QListWidget_new2(parent.cPointer()) +func NewQListWidget2() *QListWidget { + ret := C.QListWidget_new2() return newQListWidget(ret) } diff --git a/qt6/gen_qlistwidget.h b/qt6/gen_qlistwidget.h index 0a36bcaf..aae2548f 100644 --- a/qt6/gen_qlistwidget.h +++ b/qt6/gen_qlistwidget.h @@ -98,8 +98,8 @@ void QListWidgetItem_OperatorAssign(QListWidgetItem* self, QListWidgetItem* othe int QListWidgetItem_Type(const QListWidgetItem* self); void QListWidgetItem_Delete(QListWidgetItem* self); -QListWidget* QListWidget_new(); -QListWidget* QListWidget_new2(QWidget* parent); +QListWidget* QListWidget_new(QWidget* parent); +QListWidget* QListWidget_new2(); QMetaObject* QListWidget_MetaObject(const QListWidget* self); void* QListWidget_Metacast(QListWidget* self, const char* param1); struct miqt_string QListWidget_Tr(const char* s); diff --git a/qt6/gen_qmainwindow.cpp b/qt6/gen_qmainwindow.cpp index 003a8183..06cc75b3 100644 --- a/qt6/gen_qmainwindow.cpp +++ b/qt6/gen_qmainwindow.cpp @@ -17,12 +17,12 @@ #include "gen_qmainwindow.h" #include "_cgo_export.h" -QMainWindow* QMainWindow_new() { - return new QMainWindow(); +QMainWindow* QMainWindow_new(QWidget* parent) { + return new QMainWindow(parent); } -QMainWindow* QMainWindow_new2(QWidget* parent) { - return new QMainWindow(parent); +QMainWindow* QMainWindow_new2() { + return new QMainWindow(); } QMainWindow* QMainWindow_new3(QWidget* parent, int flags) { diff --git a/qt6/gen_qmainwindow.go b/qt6/gen_qmainwindow.go index d876ff18..f466be88 100644 --- a/qt6/gen_qmainwindow.go +++ b/qt6/gen_qmainwindow.go @@ -56,14 +56,14 @@ func UnsafeNewQMainWindow(h unsafe.Pointer) *QMainWindow { } // NewQMainWindow constructs a new QMainWindow object. -func NewQMainWindow() *QMainWindow { - ret := C.QMainWindow_new() +func NewQMainWindow(parent *QWidget) *QMainWindow { + ret := C.QMainWindow_new(parent.cPointer()) return newQMainWindow(ret) } // NewQMainWindow2 constructs a new QMainWindow object. -func NewQMainWindow2(parent *QWidget) *QMainWindow { - ret := C.QMainWindow_new2(parent.cPointer()) +func NewQMainWindow2() *QMainWindow { + ret := C.QMainWindow_new2() return newQMainWindow(ret) } diff --git a/qt6/gen_qmainwindow.h b/qt6/gen_qmainwindow.h index b8e11774..84148a13 100644 --- a/qt6/gen_qmainwindow.h +++ b/qt6/gen_qmainwindow.h @@ -39,8 +39,8 @@ typedef struct QToolBar QToolBar; typedef struct QWidget QWidget; #endif -QMainWindow* QMainWindow_new(); -QMainWindow* QMainWindow_new2(QWidget* parent); +QMainWindow* QMainWindow_new(QWidget* parent); +QMainWindow* QMainWindow_new2(); QMainWindow* QMainWindow_new3(QWidget* parent, int flags); QMetaObject* QMainWindow_MetaObject(const QMainWindow* self); void* QMainWindow_Metacast(QMainWindow* self, const char* param1); diff --git a/qt6/gen_qmdiarea.cpp b/qt6/gen_qmdiarea.cpp index 0100f91b..6ed7de36 100644 --- a/qt6/gen_qmdiarea.cpp +++ b/qt6/gen_qmdiarea.cpp @@ -12,12 +12,12 @@ #include "gen_qmdiarea.h" #include "_cgo_export.h" -QMdiArea* QMdiArea_new() { - return new QMdiArea(); +QMdiArea* QMdiArea_new(QWidget* parent) { + return new QMdiArea(parent); } -QMdiArea* QMdiArea_new2(QWidget* parent) { - return new QMdiArea(parent); +QMdiArea* QMdiArea_new2() { + return new QMdiArea(); } QMetaObject* QMdiArea_MetaObject(const QMdiArea* self) { diff --git a/qt6/gen_qmdiarea.go b/qt6/gen_qmdiarea.go index 559b923d..d6e3af71 100644 --- a/qt6/gen_qmdiarea.go +++ b/qt6/gen_qmdiarea.go @@ -66,14 +66,14 @@ func UnsafeNewQMdiArea(h unsafe.Pointer) *QMdiArea { } // NewQMdiArea constructs a new QMdiArea object. -func NewQMdiArea() *QMdiArea { - ret := C.QMdiArea_new() +func NewQMdiArea(parent *QWidget) *QMdiArea { + ret := C.QMdiArea_new(parent.cPointer()) return newQMdiArea(ret) } // NewQMdiArea2 constructs a new QMdiArea object. -func NewQMdiArea2(parent *QWidget) *QMdiArea { - ret := C.QMdiArea_new2(parent.cPointer()) +func NewQMdiArea2() *QMdiArea { + ret := C.QMdiArea_new2() return newQMdiArea(ret) } diff --git a/qt6/gen_qmdiarea.h b/qt6/gen_qmdiarea.h index e307c32a..049e09e6 100644 --- a/qt6/gen_qmdiarea.h +++ b/qt6/gen_qmdiarea.h @@ -29,8 +29,8 @@ typedef struct QSize QSize; typedef struct QWidget QWidget; #endif -QMdiArea* QMdiArea_new(); -QMdiArea* QMdiArea_new2(QWidget* parent); +QMdiArea* QMdiArea_new(QWidget* parent); +QMdiArea* QMdiArea_new2(); QMetaObject* QMdiArea_MetaObject(const QMdiArea* self); void* QMdiArea_Metacast(QMdiArea* self, const char* param1); struct miqt_string QMdiArea_Tr(const char* s); diff --git a/qt6/gen_qmdisubwindow.cpp b/qt6/gen_qmdisubwindow.cpp index 1cc3a189..1e237800 100644 --- a/qt6/gen_qmdisubwindow.cpp +++ b/qt6/gen_qmdisubwindow.cpp @@ -11,12 +11,12 @@ #include "gen_qmdisubwindow.h" #include "_cgo_export.h" -QMdiSubWindow* QMdiSubWindow_new() { - return new QMdiSubWindow(); +QMdiSubWindow* QMdiSubWindow_new(QWidget* parent) { + return new QMdiSubWindow(parent); } -QMdiSubWindow* QMdiSubWindow_new2(QWidget* parent) { - return new QMdiSubWindow(parent); +QMdiSubWindow* QMdiSubWindow_new2() { + return new QMdiSubWindow(); } QMdiSubWindow* QMdiSubWindow_new3(QWidget* parent, int flags) { diff --git a/qt6/gen_qmdisubwindow.go b/qt6/gen_qmdisubwindow.go index b7e3fc3d..9c79620c 100644 --- a/qt6/gen_qmdisubwindow.go +++ b/qt6/gen_qmdisubwindow.go @@ -54,14 +54,14 @@ func UnsafeNewQMdiSubWindow(h unsafe.Pointer) *QMdiSubWindow { } // NewQMdiSubWindow constructs a new QMdiSubWindow object. -func NewQMdiSubWindow() *QMdiSubWindow { - ret := C.QMdiSubWindow_new() +func NewQMdiSubWindow(parent *QWidget) *QMdiSubWindow { + ret := C.QMdiSubWindow_new(parent.cPointer()) return newQMdiSubWindow(ret) } // NewQMdiSubWindow2 constructs a new QMdiSubWindow object. -func NewQMdiSubWindow2(parent *QWidget) *QMdiSubWindow { - ret := C.QMdiSubWindow_new2(parent.cPointer()) +func NewQMdiSubWindow2() *QMdiSubWindow { + ret := C.QMdiSubWindow_new2() return newQMdiSubWindow(ret) } diff --git a/qt6/gen_qmdisubwindow.h b/qt6/gen_qmdisubwindow.h index 061b41ea..d7c1f8b4 100644 --- a/qt6/gen_qmdisubwindow.h +++ b/qt6/gen_qmdisubwindow.h @@ -29,8 +29,8 @@ typedef struct QSize QSize; typedef struct QWidget QWidget; #endif -QMdiSubWindow* QMdiSubWindow_new(); -QMdiSubWindow* QMdiSubWindow_new2(QWidget* parent); +QMdiSubWindow* QMdiSubWindow_new(QWidget* parent); +QMdiSubWindow* QMdiSubWindow_new2(); QMdiSubWindow* QMdiSubWindow_new3(QWidget* parent, int flags); QMetaObject* QMdiSubWindow_MetaObject(const QMdiSubWindow* self); void* QMdiSubWindow_Metacast(QMdiSubWindow* self, const char* param1); diff --git a/qt6/gen_qmenu.cpp b/qt6/gen_qmenu.cpp index fbcebc76..66111a17 100644 --- a/qt6/gen_qmenu.cpp +++ b/qt6/gen_qmenu.cpp @@ -14,19 +14,19 @@ #include "gen_qmenu.h" #include "_cgo_export.h" -QMenu* QMenu_new() { +QMenu* QMenu_new(QWidget* parent) { + return new QMenu(parent); +} + +QMenu* QMenu_new2() { return new QMenu(); } -QMenu* QMenu_new2(struct miqt_string title) { +QMenu* QMenu_new3(struct miqt_string title) { QString title_QString = QString::fromUtf8(title.data, title.len); return new QMenu(title_QString); } -QMenu* QMenu_new3(QWidget* parent) { - return new QMenu(parent); -} - QMenu* QMenu_new4(struct miqt_string title, QWidget* parent) { QString title_QString = QString::fromUtf8(title.data, title.len); return new QMenu(title_QString, parent); diff --git a/qt6/gen_qmenu.go b/qt6/gen_qmenu.go index 714c671f..259dbd30 100644 --- a/qt6/gen_qmenu.go +++ b/qt6/gen_qmenu.go @@ -45,24 +45,24 @@ func UnsafeNewQMenu(h unsafe.Pointer) *QMenu { } // NewQMenu constructs a new QMenu object. -func NewQMenu() *QMenu { - ret := C.QMenu_new() +func NewQMenu(parent *QWidget) *QMenu { + ret := C.QMenu_new(parent.cPointer()) return newQMenu(ret) } // NewQMenu2 constructs a new QMenu object. -func NewQMenu2(title string) *QMenu { - title_ms := C.struct_miqt_string{} - title_ms.data = C.CString(title) - title_ms.len = C.size_t(len(title)) - defer C.free(unsafe.Pointer(title_ms.data)) - ret := C.QMenu_new2(title_ms) +func NewQMenu2() *QMenu { + ret := C.QMenu_new2() return newQMenu(ret) } // NewQMenu3 constructs a new QMenu object. -func NewQMenu3(parent *QWidget) *QMenu { - ret := C.QMenu_new3(parent.cPointer()) +func NewQMenu3(title string) *QMenu { + title_ms := C.struct_miqt_string{} + title_ms.data = C.CString(title) + title_ms.len = C.size_t(len(title)) + defer C.free(unsafe.Pointer(title_ms.data)) + ret := C.QMenu_new3(title_ms) return newQMenu(ret) } diff --git a/qt6/gen_qmenu.h b/qt6/gen_qmenu.h index a6c06771..1c4df8b8 100644 --- a/qt6/gen_qmenu.h +++ b/qt6/gen_qmenu.h @@ -33,9 +33,9 @@ typedef struct QSize QSize; typedef struct QWidget QWidget; #endif -QMenu* QMenu_new(); -QMenu* QMenu_new2(struct miqt_string title); -QMenu* QMenu_new3(QWidget* parent); +QMenu* QMenu_new(QWidget* parent); +QMenu* QMenu_new2(); +QMenu* QMenu_new3(struct miqt_string title); QMenu* QMenu_new4(struct miqt_string title, QWidget* parent); QMetaObject* QMenu_MetaObject(const QMenu* self); void* QMenu_Metacast(QMenu* self, const char* param1); diff --git a/qt6/gen_qmenubar.cpp b/qt6/gen_qmenubar.cpp index bf230e50..80516bf5 100644 --- a/qt6/gen_qmenubar.cpp +++ b/qt6/gen_qmenubar.cpp @@ -14,12 +14,12 @@ #include "gen_qmenubar.h" #include "_cgo_export.h" -QMenuBar* QMenuBar_new() { - return new QMenuBar(); +QMenuBar* QMenuBar_new(QWidget* parent) { + return new QMenuBar(parent); } -QMenuBar* QMenuBar_new2(QWidget* parent) { - return new QMenuBar(parent); +QMenuBar* QMenuBar_new2() { + return new QMenuBar(); } QMetaObject* QMenuBar_MetaObject(const QMenuBar* self) { diff --git a/qt6/gen_qmenubar.go b/qt6/gen_qmenubar.go index 69eba646..b4d34e71 100644 --- a/qt6/gen_qmenubar.go +++ b/qt6/gen_qmenubar.go @@ -45,14 +45,14 @@ func UnsafeNewQMenuBar(h unsafe.Pointer) *QMenuBar { } // NewQMenuBar constructs a new QMenuBar object. -func NewQMenuBar() *QMenuBar { - ret := C.QMenuBar_new() +func NewQMenuBar(parent *QWidget) *QMenuBar { + ret := C.QMenuBar_new(parent.cPointer()) return newQMenuBar(ret) } // NewQMenuBar2 constructs a new QMenuBar object. -func NewQMenuBar2(parent *QWidget) *QMenuBar { - ret := C.QMenuBar_new2(parent.cPointer()) +func NewQMenuBar2() *QMenuBar { + ret := C.QMenuBar_new2() return newQMenuBar(ret) } diff --git a/qt6/gen_qmenubar.h b/qt6/gen_qmenubar.h index 75d52970..2c0eaa86 100644 --- a/qt6/gen_qmenubar.h +++ b/qt6/gen_qmenubar.h @@ -35,8 +35,8 @@ typedef struct QSize QSize; typedef struct QWidget QWidget; #endif -QMenuBar* QMenuBar_new(); -QMenuBar* QMenuBar_new2(QWidget* parent); +QMenuBar* QMenuBar_new(QWidget* parent); +QMenuBar* QMenuBar_new2(); QMetaObject* QMenuBar_MetaObject(const QMenuBar* self); void* QMenuBar_Metacast(QMenuBar* self, const char* param1); struct miqt_string QMenuBar_Tr(const char* s); diff --git a/qt6/gen_qmessagebox.cpp b/qt6/gen_qmessagebox.cpp index a1fef713..3954da90 100644 --- a/qt6/gen_qmessagebox.cpp +++ b/qt6/gen_qmessagebox.cpp @@ -13,26 +13,26 @@ #include "gen_qmessagebox.h" #include "_cgo_export.h" -QMessageBox* QMessageBox_new() { +QMessageBox* QMessageBox_new(QWidget* parent) { + return new QMessageBox(parent); +} + +QMessageBox* QMessageBox_new2() { return new QMessageBox(); } -QMessageBox* QMessageBox_new2(int icon, struct miqt_string title, struct miqt_string text) { +QMessageBox* QMessageBox_new3(int icon, struct miqt_string title, struct miqt_string text) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); return new QMessageBox(static_cast(icon), title_QString, text_QString); } -QMessageBox* QMessageBox_new3(struct miqt_string title, struct miqt_string text, int icon, int button0, int button1, int button2) { +QMessageBox* QMessageBox_new4(struct miqt_string title, struct miqt_string text, int icon, int button0, int button1, int button2) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); return new QMessageBox(title_QString, text_QString, static_cast(icon), static_cast(button0), static_cast(button1), static_cast(button2)); } -QMessageBox* QMessageBox_new4(QWidget* parent) { - return new QMessageBox(parent); -} - QMessageBox* QMessageBox_new5(int icon, struct miqt_string title, struct miqt_string text, int buttons) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); diff --git a/qt6/gen_qmessagebox.go b/qt6/gen_qmessagebox.go index cd13be79..72eaed3f 100644 --- a/qt6/gen_qmessagebox.go +++ b/qt6/gen_qmessagebox.go @@ -103,13 +103,19 @@ func UnsafeNewQMessageBox(h unsafe.Pointer) *QMessageBox { } // NewQMessageBox constructs a new QMessageBox object. -func NewQMessageBox() *QMessageBox { - ret := C.QMessageBox_new() +func NewQMessageBox(parent *QWidget) *QMessageBox { + ret := C.QMessageBox_new(parent.cPointer()) return newQMessageBox(ret) } // NewQMessageBox2 constructs a new QMessageBox object. -func NewQMessageBox2(icon QMessageBox__Icon, title string, text string) *QMessageBox { +func NewQMessageBox2() *QMessageBox { + ret := C.QMessageBox_new2() + return newQMessageBox(ret) +} + +// NewQMessageBox3 constructs a new QMessageBox object. +func NewQMessageBox3(icon QMessageBox__Icon, title string, text string) *QMessageBox { title_ms := C.struct_miqt_string{} title_ms.data = C.CString(title) title_ms.len = C.size_t(len(title)) @@ -118,12 +124,12 @@ func NewQMessageBox2(icon QMessageBox__Icon, title string, text string) *QMessag text_ms.data = C.CString(text) text_ms.len = C.size_t(len(text)) defer C.free(unsafe.Pointer(text_ms.data)) - ret := C.QMessageBox_new2((C.int)(icon), title_ms, text_ms) + ret := C.QMessageBox_new3((C.int)(icon), title_ms, text_ms) return newQMessageBox(ret) } -// NewQMessageBox3 constructs a new QMessageBox object. -func NewQMessageBox3(title string, text string, icon QMessageBox__Icon, button0 int, button1 int, button2 int) *QMessageBox { +// NewQMessageBox4 constructs a new QMessageBox object. +func NewQMessageBox4(title string, text string, icon QMessageBox__Icon, button0 int, button1 int, button2 int) *QMessageBox { title_ms := C.struct_miqt_string{} title_ms.data = C.CString(title) title_ms.len = C.size_t(len(title)) @@ -132,13 +138,7 @@ func NewQMessageBox3(title string, text string, icon QMessageBox__Icon, button0 text_ms.data = C.CString(text) text_ms.len = C.size_t(len(text)) defer C.free(unsafe.Pointer(text_ms.data)) - ret := C.QMessageBox_new3(title_ms, text_ms, (C.int)(icon), (C.int)(button0), (C.int)(button1), (C.int)(button2)) - return newQMessageBox(ret) -} - -// NewQMessageBox4 constructs a new QMessageBox object. -func NewQMessageBox4(parent *QWidget) *QMessageBox { - ret := C.QMessageBox_new4(parent.cPointer()) + ret := C.QMessageBox_new4(title_ms, text_ms, (C.int)(icon), (C.int)(button0), (C.int)(button1), (C.int)(button2)) return newQMessageBox(ret) } diff --git a/qt6/gen_qmessagebox.h b/qt6/gen_qmessagebox.h index 0af8c494..c574da2a 100644 --- a/qt6/gen_qmessagebox.h +++ b/qt6/gen_qmessagebox.h @@ -31,10 +31,10 @@ typedef struct QPushButton QPushButton; typedef struct QWidget QWidget; #endif -QMessageBox* QMessageBox_new(); -QMessageBox* QMessageBox_new2(int icon, struct miqt_string title, struct miqt_string text); -QMessageBox* QMessageBox_new3(struct miqt_string title, struct miqt_string text, int icon, int button0, int button1, int button2); -QMessageBox* QMessageBox_new4(QWidget* parent); +QMessageBox* QMessageBox_new(QWidget* parent); +QMessageBox* QMessageBox_new2(); +QMessageBox* QMessageBox_new3(int icon, struct miqt_string title, struct miqt_string text); +QMessageBox* QMessageBox_new4(struct miqt_string title, struct miqt_string text, int icon, int button0, int button1, int button2); QMessageBox* QMessageBox_new5(int icon, struct miqt_string title, struct miqt_string text, int buttons); QMessageBox* QMessageBox_new6(int icon, struct miqt_string title, struct miqt_string text, int buttons, QWidget* parent); QMessageBox* QMessageBox_new7(int icon, struct miqt_string title, struct miqt_string text, int buttons, QWidget* parent, int flags); diff --git a/qt6/gen_qplaintextedit.cpp b/qt6/gen_qplaintextedit.cpp index b8c554a5..559d7b87 100644 --- a/qt6/gen_qplaintextedit.cpp +++ b/qt6/gen_qplaintextedit.cpp @@ -28,19 +28,19 @@ #include "gen_qplaintextedit.h" #include "_cgo_export.h" -QPlainTextEdit* QPlainTextEdit_new() { +QPlainTextEdit* QPlainTextEdit_new(QWidget* parent) { + return new QPlainTextEdit(parent); +} + +QPlainTextEdit* QPlainTextEdit_new2() { return new QPlainTextEdit(); } -QPlainTextEdit* QPlainTextEdit_new2(struct miqt_string text) { +QPlainTextEdit* QPlainTextEdit_new3(struct miqt_string text) { QString text_QString = QString::fromUtf8(text.data, text.len); return new QPlainTextEdit(text_QString); } -QPlainTextEdit* QPlainTextEdit_new3(QWidget* parent) { - return new QPlainTextEdit(parent); -} - QPlainTextEdit* QPlainTextEdit_new4(struct miqt_string text, QWidget* parent) { QString text_QString = QString::fromUtf8(text.data, text.len); return new QPlainTextEdit(text_QString, parent); diff --git a/qt6/gen_qplaintextedit.go b/qt6/gen_qplaintextedit.go index 6d30bd18..07a78e6d 100644 --- a/qt6/gen_qplaintextedit.go +++ b/qt6/gen_qplaintextedit.go @@ -52,24 +52,24 @@ func UnsafeNewQPlainTextEdit(h unsafe.Pointer) *QPlainTextEdit { } // NewQPlainTextEdit constructs a new QPlainTextEdit object. -func NewQPlainTextEdit() *QPlainTextEdit { - ret := C.QPlainTextEdit_new() +func NewQPlainTextEdit(parent *QWidget) *QPlainTextEdit { + ret := C.QPlainTextEdit_new(parent.cPointer()) return newQPlainTextEdit(ret) } // NewQPlainTextEdit2 constructs a new QPlainTextEdit object. -func NewQPlainTextEdit2(text string) *QPlainTextEdit { - text_ms := C.struct_miqt_string{} - text_ms.data = C.CString(text) - text_ms.len = C.size_t(len(text)) - defer C.free(unsafe.Pointer(text_ms.data)) - ret := C.QPlainTextEdit_new2(text_ms) +func NewQPlainTextEdit2() *QPlainTextEdit { + ret := C.QPlainTextEdit_new2() return newQPlainTextEdit(ret) } // NewQPlainTextEdit3 constructs a new QPlainTextEdit object. -func NewQPlainTextEdit3(parent *QWidget) *QPlainTextEdit { - ret := C.QPlainTextEdit_new3(parent.cPointer()) +func NewQPlainTextEdit3(text string) *QPlainTextEdit { + text_ms := C.struct_miqt_string{} + text_ms.data = C.CString(text) + text_ms.len = C.size_t(len(text)) + defer C.free(unsafe.Pointer(text_ms.data)) + ret := C.QPlainTextEdit_new3(text_ms) return newQPlainTextEdit(ret) } diff --git a/qt6/gen_qplaintextedit.h b/qt6/gen_qplaintextedit.h index fbd0a1c2..7dd117de 100644 --- a/qt6/gen_qplaintextedit.h +++ b/qt6/gen_qplaintextedit.h @@ -69,9 +69,9 @@ typedef struct QVariant QVariant; typedef struct QWidget QWidget; #endif -QPlainTextEdit* QPlainTextEdit_new(); -QPlainTextEdit* QPlainTextEdit_new2(struct miqt_string text); -QPlainTextEdit* QPlainTextEdit_new3(QWidget* parent); +QPlainTextEdit* QPlainTextEdit_new(QWidget* parent); +QPlainTextEdit* QPlainTextEdit_new2(); +QPlainTextEdit* QPlainTextEdit_new3(struct miqt_string text); QPlainTextEdit* QPlainTextEdit_new4(struct miqt_string text, QWidget* parent); QMetaObject* QPlainTextEdit_MetaObject(const QPlainTextEdit* self); void* QPlainTextEdit_Metacast(QPlainTextEdit* self, const char* param1); diff --git a/qt6/gen_qprogressbar.cpp b/qt6/gen_qprogressbar.cpp index 9a26bfb3..16ca9e96 100644 --- a/qt6/gen_qprogressbar.cpp +++ b/qt6/gen_qprogressbar.cpp @@ -9,12 +9,12 @@ #include "gen_qprogressbar.h" #include "_cgo_export.h" -QProgressBar* QProgressBar_new() { - return new QProgressBar(); +QProgressBar* QProgressBar_new(QWidget* parent) { + return new QProgressBar(parent); } -QProgressBar* QProgressBar_new2(QWidget* parent) { - return new QProgressBar(parent); +QProgressBar* QProgressBar_new2() { + return new QProgressBar(); } QMetaObject* QProgressBar_MetaObject(const QProgressBar* self) { diff --git a/qt6/gen_qprogressbar.go b/qt6/gen_qprogressbar.go index 9af8241e..85cc95c1 100644 --- a/qt6/gen_qprogressbar.go +++ b/qt6/gen_qprogressbar.go @@ -52,14 +52,14 @@ func UnsafeNewQProgressBar(h unsafe.Pointer) *QProgressBar { } // NewQProgressBar constructs a new QProgressBar object. -func NewQProgressBar() *QProgressBar { - ret := C.QProgressBar_new() +func NewQProgressBar(parent *QWidget) *QProgressBar { + ret := C.QProgressBar_new(parent.cPointer()) return newQProgressBar(ret) } // NewQProgressBar2 constructs a new QProgressBar object. -func NewQProgressBar2(parent *QWidget) *QProgressBar { - ret := C.QProgressBar_new2(parent.cPointer()) +func NewQProgressBar2() *QProgressBar { + ret := C.QProgressBar_new2() return newQProgressBar(ret) } diff --git a/qt6/gen_qprogressbar.h b/qt6/gen_qprogressbar.h index 9924a270..44e66c11 100644 --- a/qt6/gen_qprogressbar.h +++ b/qt6/gen_qprogressbar.h @@ -25,8 +25,8 @@ typedef struct QSize QSize; typedef struct QWidget QWidget; #endif -QProgressBar* QProgressBar_new(); -QProgressBar* QProgressBar_new2(QWidget* parent); +QProgressBar* QProgressBar_new(QWidget* parent); +QProgressBar* QProgressBar_new2(); QMetaObject* QProgressBar_MetaObject(const QProgressBar* self); void* QProgressBar_Metacast(QProgressBar* self, const char* param1); struct miqt_string QProgressBar_Tr(const char* s); diff --git a/qt6/gen_qprogressdialog.cpp b/qt6/gen_qprogressdialog.cpp index 0a57aa69..0c4ccfe6 100644 --- a/qt6/gen_qprogressdialog.cpp +++ b/qt6/gen_qprogressdialog.cpp @@ -12,20 +12,20 @@ #include "gen_qprogressdialog.h" #include "_cgo_export.h" -QProgressDialog* QProgressDialog_new() { +QProgressDialog* QProgressDialog_new(QWidget* parent) { + return new QProgressDialog(parent); +} + +QProgressDialog* QProgressDialog_new2() { return new QProgressDialog(); } -QProgressDialog* QProgressDialog_new2(struct miqt_string labelText, struct miqt_string cancelButtonText, int minimum, int maximum) { +QProgressDialog* QProgressDialog_new3(struct miqt_string labelText, struct miqt_string cancelButtonText, int minimum, int maximum) { QString labelText_QString = QString::fromUtf8(labelText.data, labelText.len); QString cancelButtonText_QString = QString::fromUtf8(cancelButtonText.data, cancelButtonText.len); return new QProgressDialog(labelText_QString, cancelButtonText_QString, static_cast(minimum), static_cast(maximum)); } -QProgressDialog* QProgressDialog_new3(QWidget* parent) { - return new QProgressDialog(parent); -} - QProgressDialog* QProgressDialog_new4(QWidget* parent, int flags) { return new QProgressDialog(parent, static_cast(flags)); } diff --git a/qt6/gen_qprogressdialog.go b/qt6/gen_qprogressdialog.go index 97fb3e80..df6a62b2 100644 --- a/qt6/gen_qprogressdialog.go +++ b/qt6/gen_qprogressdialog.go @@ -45,13 +45,19 @@ func UnsafeNewQProgressDialog(h unsafe.Pointer) *QProgressDialog { } // NewQProgressDialog constructs a new QProgressDialog object. -func NewQProgressDialog() *QProgressDialog { - ret := C.QProgressDialog_new() +func NewQProgressDialog(parent *QWidget) *QProgressDialog { + ret := C.QProgressDialog_new(parent.cPointer()) return newQProgressDialog(ret) } // NewQProgressDialog2 constructs a new QProgressDialog object. -func NewQProgressDialog2(labelText string, cancelButtonText string, minimum int, maximum int) *QProgressDialog { +func NewQProgressDialog2() *QProgressDialog { + ret := C.QProgressDialog_new2() + return newQProgressDialog(ret) +} + +// NewQProgressDialog3 constructs a new QProgressDialog object. +func NewQProgressDialog3(labelText string, cancelButtonText string, minimum int, maximum int) *QProgressDialog { labelText_ms := C.struct_miqt_string{} labelText_ms.data = C.CString(labelText) labelText_ms.len = C.size_t(len(labelText)) @@ -60,13 +66,7 @@ func NewQProgressDialog2(labelText string, cancelButtonText string, minimum int, cancelButtonText_ms.data = C.CString(cancelButtonText) cancelButtonText_ms.len = C.size_t(len(cancelButtonText)) defer C.free(unsafe.Pointer(cancelButtonText_ms.data)) - ret := C.QProgressDialog_new2(labelText_ms, cancelButtonText_ms, (C.int)(minimum), (C.int)(maximum)) - return newQProgressDialog(ret) -} - -// NewQProgressDialog3 constructs a new QProgressDialog object. -func NewQProgressDialog3(parent *QWidget) *QProgressDialog { - ret := C.QProgressDialog_new3(parent.cPointer()) + ret := C.QProgressDialog_new3(labelText_ms, cancelButtonText_ms, (C.int)(minimum), (C.int)(maximum)) return newQProgressDialog(ret) } diff --git a/qt6/gen_qprogressdialog.h b/qt6/gen_qprogressdialog.h index 7469303f..d31df441 100644 --- a/qt6/gen_qprogressdialog.h +++ b/qt6/gen_qprogressdialog.h @@ -31,9 +31,9 @@ typedef struct QSize QSize; typedef struct QWidget QWidget; #endif -QProgressDialog* QProgressDialog_new(); -QProgressDialog* QProgressDialog_new2(struct miqt_string labelText, struct miqt_string cancelButtonText, int minimum, int maximum); -QProgressDialog* QProgressDialog_new3(QWidget* parent); +QProgressDialog* QProgressDialog_new(QWidget* parent); +QProgressDialog* QProgressDialog_new2(); +QProgressDialog* QProgressDialog_new3(struct miqt_string labelText, struct miqt_string cancelButtonText, int minimum, int maximum); QProgressDialog* QProgressDialog_new4(QWidget* parent, int flags); QProgressDialog* QProgressDialog_new5(struct miqt_string labelText, struct miqt_string cancelButtonText, int minimum, int maximum, QWidget* parent); QProgressDialog* QProgressDialog_new6(struct miqt_string labelText, struct miqt_string cancelButtonText, int minimum, int maximum, QWidget* parent, int flags); diff --git a/qt6/gen_qpushbutton.cpp b/qt6/gen_qpushbutton.cpp index 32a7bdeb..101860aa 100644 --- a/qt6/gen_qpushbutton.cpp +++ b/qt6/gen_qpushbutton.cpp @@ -11,24 +11,24 @@ #include "gen_qpushbutton.h" #include "_cgo_export.h" -QPushButton* QPushButton_new() { +QPushButton* QPushButton_new(QWidget* parent) { + return new QPushButton(parent); +} + +QPushButton* QPushButton_new2() { return new QPushButton(); } -QPushButton* QPushButton_new2(struct miqt_string text) { +QPushButton* QPushButton_new3(struct miqt_string text) { QString text_QString = QString::fromUtf8(text.data, text.len); return new QPushButton(text_QString); } -QPushButton* QPushButton_new3(QIcon* icon, struct miqt_string text) { +QPushButton* QPushButton_new4(QIcon* icon, struct miqt_string text) { QString text_QString = QString::fromUtf8(text.data, text.len); return new QPushButton(*icon, text_QString); } -QPushButton* QPushButton_new4(QWidget* parent) { - return new QPushButton(parent); -} - QPushButton* QPushButton_new5(struct miqt_string text, QWidget* parent) { QString text_QString = QString::fromUtf8(text.data, text.len); return new QPushButton(text_QString, parent); diff --git a/qt6/gen_qpushbutton.go b/qt6/gen_qpushbutton.go index e2d550b6..7f531653 100644 --- a/qt6/gen_qpushbutton.go +++ b/qt6/gen_qpushbutton.go @@ -44,34 +44,34 @@ func UnsafeNewQPushButton(h unsafe.Pointer) *QPushButton { } // NewQPushButton constructs a new QPushButton object. -func NewQPushButton() *QPushButton { - ret := C.QPushButton_new() +func NewQPushButton(parent *QWidget) *QPushButton { + ret := C.QPushButton_new(parent.cPointer()) return newQPushButton(ret) } // NewQPushButton2 constructs a new QPushButton object. -func NewQPushButton2(text string) *QPushButton { - text_ms := C.struct_miqt_string{} - text_ms.data = C.CString(text) - text_ms.len = C.size_t(len(text)) - defer C.free(unsafe.Pointer(text_ms.data)) - ret := C.QPushButton_new2(text_ms) +func NewQPushButton2() *QPushButton { + ret := C.QPushButton_new2() return newQPushButton(ret) } // NewQPushButton3 constructs a new QPushButton object. -func NewQPushButton3(icon *QIcon, text string) *QPushButton { +func NewQPushButton3(text string) *QPushButton { text_ms := C.struct_miqt_string{} text_ms.data = C.CString(text) text_ms.len = C.size_t(len(text)) defer C.free(unsafe.Pointer(text_ms.data)) - ret := C.QPushButton_new3(icon.cPointer(), text_ms) + ret := C.QPushButton_new3(text_ms) return newQPushButton(ret) } // NewQPushButton4 constructs a new QPushButton object. -func NewQPushButton4(parent *QWidget) *QPushButton { - ret := C.QPushButton_new4(parent.cPointer()) +func NewQPushButton4(icon *QIcon, text string) *QPushButton { + text_ms := C.struct_miqt_string{} + text_ms.data = C.CString(text) + text_ms.len = C.size_t(len(text)) + defer C.free(unsafe.Pointer(text_ms.data)) + ret := C.QPushButton_new4(icon.cPointer(), text_ms) return newQPushButton(ret) } diff --git a/qt6/gen_qpushbutton.h b/qt6/gen_qpushbutton.h index 1ca5f109..f65ff27e 100644 --- a/qt6/gen_qpushbutton.h +++ b/qt6/gen_qpushbutton.h @@ -29,10 +29,10 @@ typedef struct QSize QSize; typedef struct QWidget QWidget; #endif -QPushButton* QPushButton_new(); -QPushButton* QPushButton_new2(struct miqt_string text); -QPushButton* QPushButton_new3(QIcon* icon, struct miqt_string text); -QPushButton* QPushButton_new4(QWidget* parent); +QPushButton* QPushButton_new(QWidget* parent); +QPushButton* QPushButton_new2(); +QPushButton* QPushButton_new3(struct miqt_string text); +QPushButton* QPushButton_new4(QIcon* icon, struct miqt_string text); QPushButton* QPushButton_new5(struct miqt_string text, QWidget* parent); QPushButton* QPushButton_new6(QIcon* icon, struct miqt_string text, QWidget* parent); QMetaObject* QPushButton_MetaObject(const QPushButton* self); diff --git a/qt6/gen_qradiobutton.cpp b/qt6/gen_qradiobutton.cpp index d20deffa..c00679e5 100644 --- a/qt6/gen_qradiobutton.cpp +++ b/qt6/gen_qradiobutton.cpp @@ -9,19 +9,19 @@ #include "gen_qradiobutton.h" #include "_cgo_export.h" -QRadioButton* QRadioButton_new() { +QRadioButton* QRadioButton_new(QWidget* parent) { + return new QRadioButton(parent); +} + +QRadioButton* QRadioButton_new2() { return new QRadioButton(); } -QRadioButton* QRadioButton_new2(struct miqt_string text) { +QRadioButton* QRadioButton_new3(struct miqt_string text) { QString text_QString = QString::fromUtf8(text.data, text.len); return new QRadioButton(text_QString); } -QRadioButton* QRadioButton_new3(QWidget* parent) { - return new QRadioButton(parent); -} - QRadioButton* QRadioButton_new4(struct miqt_string text, QWidget* parent) { QString text_QString = QString::fromUtf8(text.data, text.len); return new QRadioButton(text_QString, parent); diff --git a/qt6/gen_qradiobutton.go b/qt6/gen_qradiobutton.go index 7d3884c2..ebe3ed28 100644 --- a/qt6/gen_qradiobutton.go +++ b/qt6/gen_qradiobutton.go @@ -44,24 +44,24 @@ func UnsafeNewQRadioButton(h unsafe.Pointer) *QRadioButton { } // NewQRadioButton constructs a new QRadioButton object. -func NewQRadioButton() *QRadioButton { - ret := C.QRadioButton_new() +func NewQRadioButton(parent *QWidget) *QRadioButton { + ret := C.QRadioButton_new(parent.cPointer()) return newQRadioButton(ret) } // NewQRadioButton2 constructs a new QRadioButton object. -func NewQRadioButton2(text string) *QRadioButton { - text_ms := C.struct_miqt_string{} - text_ms.data = C.CString(text) - text_ms.len = C.size_t(len(text)) - defer C.free(unsafe.Pointer(text_ms.data)) - ret := C.QRadioButton_new2(text_ms) +func NewQRadioButton2() *QRadioButton { + ret := C.QRadioButton_new2() return newQRadioButton(ret) } // NewQRadioButton3 constructs a new QRadioButton object. -func NewQRadioButton3(parent *QWidget) *QRadioButton { - ret := C.QRadioButton_new3(parent.cPointer()) +func NewQRadioButton3(text string) *QRadioButton { + text_ms := C.struct_miqt_string{} + text_ms.data = C.CString(text) + text_ms.len = C.size_t(len(text)) + defer C.free(unsafe.Pointer(text_ms.data)) + ret := C.QRadioButton_new3(text_ms) return newQRadioButton(ret) } diff --git a/qt6/gen_qradiobutton.h b/qt6/gen_qradiobutton.h index cd07fedb..75f0ad32 100644 --- a/qt6/gen_qradiobutton.h +++ b/qt6/gen_qradiobutton.h @@ -25,9 +25,9 @@ typedef struct QSize QSize; typedef struct QWidget QWidget; #endif -QRadioButton* QRadioButton_new(); -QRadioButton* QRadioButton_new2(struct miqt_string text); -QRadioButton* QRadioButton_new3(QWidget* parent); +QRadioButton* QRadioButton_new(QWidget* parent); +QRadioButton* QRadioButton_new2(); +QRadioButton* QRadioButton_new3(struct miqt_string text); QRadioButton* QRadioButton_new4(struct miqt_string text, QWidget* parent); QMetaObject* QRadioButton_MetaObject(const QRadioButton* self); void* QRadioButton_Metacast(QRadioButton* self, const char* param1); diff --git a/qt6/gen_qscrollarea.cpp b/qt6/gen_qscrollarea.cpp index 160c3403..5a497319 100644 --- a/qt6/gen_qscrollarea.cpp +++ b/qt6/gen_qscrollarea.cpp @@ -9,12 +9,12 @@ #include "gen_qscrollarea.h" #include "_cgo_export.h" -QScrollArea* QScrollArea_new() { - return new QScrollArea(); +QScrollArea* QScrollArea_new(QWidget* parent) { + return new QScrollArea(parent); } -QScrollArea* QScrollArea_new2(QWidget* parent) { - return new QScrollArea(parent); +QScrollArea* QScrollArea_new2() { + return new QScrollArea(); } QMetaObject* QScrollArea_MetaObject(const QScrollArea* self) { diff --git a/qt6/gen_qscrollarea.go b/qt6/gen_qscrollarea.go index 27720cb5..94dc1a01 100644 --- a/qt6/gen_qscrollarea.go +++ b/qt6/gen_qscrollarea.go @@ -44,14 +44,14 @@ func UnsafeNewQScrollArea(h unsafe.Pointer) *QScrollArea { } // NewQScrollArea constructs a new QScrollArea object. -func NewQScrollArea() *QScrollArea { - ret := C.QScrollArea_new() +func NewQScrollArea(parent *QWidget) *QScrollArea { + ret := C.QScrollArea_new(parent.cPointer()) return newQScrollArea(ret) } // NewQScrollArea2 constructs a new QScrollArea object. -func NewQScrollArea2(parent *QWidget) *QScrollArea { - ret := C.QScrollArea_new2(parent.cPointer()) +func NewQScrollArea2() *QScrollArea { + ret := C.QScrollArea_new2() return newQScrollArea(ret) } diff --git a/qt6/gen_qscrollarea.h b/qt6/gen_qscrollarea.h index 688ab42c..84fcd405 100644 --- a/qt6/gen_qscrollarea.h +++ b/qt6/gen_qscrollarea.h @@ -25,8 +25,8 @@ typedef struct QSize QSize; typedef struct QWidget QWidget; #endif -QScrollArea* QScrollArea_new(); -QScrollArea* QScrollArea_new2(QWidget* parent); +QScrollArea* QScrollArea_new(QWidget* parent); +QScrollArea* QScrollArea_new2(); QMetaObject* QScrollArea_MetaObject(const QScrollArea* self); void* QScrollArea_Metacast(QScrollArea* self, const char* param1); struct miqt_string QScrollArea_Tr(const char* s); diff --git a/qt6/gen_qscrollbar.cpp b/qt6/gen_qscrollbar.cpp index 7f92fa6e..b7ecd3b7 100644 --- a/qt6/gen_qscrollbar.cpp +++ b/qt6/gen_qscrollbar.cpp @@ -10,16 +10,16 @@ #include "gen_qscrollbar.h" #include "_cgo_export.h" -QScrollBar* QScrollBar_new() { - return new QScrollBar(); +QScrollBar* QScrollBar_new(QWidget* parent) { + return new QScrollBar(parent); } -QScrollBar* QScrollBar_new2(int param1) { - return new QScrollBar(static_cast(param1)); +QScrollBar* QScrollBar_new2() { + return new QScrollBar(); } -QScrollBar* QScrollBar_new3(QWidget* parent) { - return new QScrollBar(parent); +QScrollBar* QScrollBar_new3(int param1) { + return new QScrollBar(static_cast(param1)); } QScrollBar* QScrollBar_new4(int param1, QWidget* parent) { diff --git a/qt6/gen_qscrollbar.go b/qt6/gen_qscrollbar.go index f6ab86dc..fb3f9c4a 100644 --- a/qt6/gen_qscrollbar.go +++ b/qt6/gen_qscrollbar.go @@ -44,20 +44,20 @@ func UnsafeNewQScrollBar(h unsafe.Pointer) *QScrollBar { } // NewQScrollBar constructs a new QScrollBar object. -func NewQScrollBar() *QScrollBar { - ret := C.QScrollBar_new() +func NewQScrollBar(parent *QWidget) *QScrollBar { + ret := C.QScrollBar_new(parent.cPointer()) return newQScrollBar(ret) } // NewQScrollBar2 constructs a new QScrollBar object. -func NewQScrollBar2(param1 Orientation) *QScrollBar { - ret := C.QScrollBar_new2((C.int)(param1)) +func NewQScrollBar2() *QScrollBar { + ret := C.QScrollBar_new2() return newQScrollBar(ret) } // NewQScrollBar3 constructs a new QScrollBar object. -func NewQScrollBar3(parent *QWidget) *QScrollBar { - ret := C.QScrollBar_new3(parent.cPointer()) +func NewQScrollBar3(param1 Orientation) *QScrollBar { + ret := C.QScrollBar_new3((C.int)(param1)) return newQScrollBar(ret) } diff --git a/qt6/gen_qscrollbar.h b/qt6/gen_qscrollbar.h index 21f8bd58..7c28908c 100644 --- a/qt6/gen_qscrollbar.h +++ b/qt6/gen_qscrollbar.h @@ -27,9 +27,9 @@ typedef struct QSize QSize; typedef struct QWidget QWidget; #endif -QScrollBar* QScrollBar_new(); -QScrollBar* QScrollBar_new2(int param1); -QScrollBar* QScrollBar_new3(QWidget* parent); +QScrollBar* QScrollBar_new(QWidget* parent); +QScrollBar* QScrollBar_new2(); +QScrollBar* QScrollBar_new3(int param1); QScrollBar* QScrollBar_new4(int param1, QWidget* parent); QMetaObject* QScrollBar_MetaObject(const QScrollBar* self); void* QScrollBar_Metacast(QScrollBar* self, const char* param1); diff --git a/qt6/gen_qslider.cpp b/qt6/gen_qslider.cpp index da41596f..ebe3f2f8 100644 --- a/qt6/gen_qslider.cpp +++ b/qt6/gen_qslider.cpp @@ -10,16 +10,16 @@ #include "gen_qslider.h" #include "_cgo_export.h" -QSlider* QSlider_new() { - return new QSlider(); +QSlider* QSlider_new(QWidget* parent) { + return new QSlider(parent); } -QSlider* QSlider_new2(int orientation) { - return new QSlider(static_cast(orientation)); +QSlider* QSlider_new2() { + return new QSlider(); } -QSlider* QSlider_new3(QWidget* parent) { - return new QSlider(parent); +QSlider* QSlider_new3(int orientation) { + return new QSlider(static_cast(orientation)); } QSlider* QSlider_new4(int orientation, QWidget* parent) { diff --git a/qt6/gen_qslider.go b/qt6/gen_qslider.go index b745a7a4..40955f88 100644 --- a/qt6/gen_qslider.go +++ b/qt6/gen_qslider.go @@ -55,20 +55,20 @@ func UnsafeNewQSlider(h unsafe.Pointer) *QSlider { } // NewQSlider constructs a new QSlider object. -func NewQSlider() *QSlider { - ret := C.QSlider_new() +func NewQSlider(parent *QWidget) *QSlider { + ret := C.QSlider_new(parent.cPointer()) return newQSlider(ret) } // NewQSlider2 constructs a new QSlider object. -func NewQSlider2(orientation Orientation) *QSlider { - ret := C.QSlider_new2((C.int)(orientation)) +func NewQSlider2() *QSlider { + ret := C.QSlider_new2() return newQSlider(ret) } // NewQSlider3 constructs a new QSlider object. -func NewQSlider3(parent *QWidget) *QSlider { - ret := C.QSlider_new3(parent.cPointer()) +func NewQSlider3(orientation Orientation) *QSlider { + ret := C.QSlider_new3((C.int)(orientation)) return newQSlider(ret) } diff --git a/qt6/gen_qslider.h b/qt6/gen_qslider.h index 868788f4..25b55f42 100644 --- a/qt6/gen_qslider.h +++ b/qt6/gen_qslider.h @@ -27,9 +27,9 @@ typedef struct QSlider QSlider; typedef struct QWidget QWidget; #endif -QSlider* QSlider_new(); -QSlider* QSlider_new2(int orientation); -QSlider* QSlider_new3(QWidget* parent); +QSlider* QSlider_new(QWidget* parent); +QSlider* QSlider_new2(); +QSlider* QSlider_new3(int orientation); QSlider* QSlider_new4(int orientation, QWidget* parent); QMetaObject* QSlider_MetaObject(const QSlider* self); void* QSlider_Metacast(QSlider* self, const char* param1); diff --git a/qt6/gen_qspinbox.cpp b/qt6/gen_qspinbox.cpp index aa1686d9..344da5f0 100644 --- a/qt6/gen_qspinbox.cpp +++ b/qt6/gen_qspinbox.cpp @@ -9,12 +9,12 @@ #include "gen_qspinbox.h" #include "_cgo_export.h" -QSpinBox* QSpinBox_new() { - return new QSpinBox(); +QSpinBox* QSpinBox_new(QWidget* parent) { + return new QSpinBox(parent); } -QSpinBox* QSpinBox_new2(QWidget* parent) { - return new QSpinBox(parent); +QSpinBox* QSpinBox_new2() { + return new QSpinBox(); } QMetaObject* QSpinBox_MetaObject(const QSpinBox* self) { @@ -188,12 +188,12 @@ void QSpinBox_Delete(QSpinBox* self) { delete self; } -QDoubleSpinBox* QDoubleSpinBox_new() { - return new QDoubleSpinBox(); +QDoubleSpinBox* QDoubleSpinBox_new(QWidget* parent) { + return new QDoubleSpinBox(parent); } -QDoubleSpinBox* QDoubleSpinBox_new2(QWidget* parent) { - return new QDoubleSpinBox(parent); +QDoubleSpinBox* QDoubleSpinBox_new2() { + return new QDoubleSpinBox(); } QMetaObject* QDoubleSpinBox_MetaObject(const QDoubleSpinBox* self) { diff --git a/qt6/gen_qspinbox.go b/qt6/gen_qspinbox.go index c5b09550..76db29a8 100644 --- a/qt6/gen_qspinbox.go +++ b/qt6/gen_qspinbox.go @@ -45,14 +45,14 @@ func UnsafeNewQSpinBox(h unsafe.Pointer) *QSpinBox { } // NewQSpinBox constructs a new QSpinBox object. -func NewQSpinBox() *QSpinBox { - ret := C.QSpinBox_new() +func NewQSpinBox(parent *QWidget) *QSpinBox { + ret := C.QSpinBox_new(parent.cPointer()) return newQSpinBox(ret) } // NewQSpinBox2 constructs a new QSpinBox object. -func NewQSpinBox2(parent *QWidget) *QSpinBox { - ret := C.QSpinBox_new2(parent.cPointer()) +func NewQSpinBox2() *QSpinBox { + ret := C.QSpinBox_new2() return newQSpinBox(ret) } @@ -278,14 +278,14 @@ func UnsafeNewQDoubleSpinBox(h unsafe.Pointer) *QDoubleSpinBox { } // NewQDoubleSpinBox constructs a new QDoubleSpinBox object. -func NewQDoubleSpinBox() *QDoubleSpinBox { - ret := C.QDoubleSpinBox_new() +func NewQDoubleSpinBox(parent *QWidget) *QDoubleSpinBox { + ret := C.QDoubleSpinBox_new(parent.cPointer()) return newQDoubleSpinBox(ret) } // NewQDoubleSpinBox2 constructs a new QDoubleSpinBox object. -func NewQDoubleSpinBox2(parent *QWidget) *QDoubleSpinBox { - ret := C.QDoubleSpinBox_new2(parent.cPointer()) +func NewQDoubleSpinBox2() *QDoubleSpinBox { + ret := C.QDoubleSpinBox_new2() return newQDoubleSpinBox(ret) } diff --git a/qt6/gen_qspinbox.h b/qt6/gen_qspinbox.h index d6999857..5cc5e713 100644 --- a/qt6/gen_qspinbox.h +++ b/qt6/gen_qspinbox.h @@ -25,8 +25,8 @@ typedef struct QSpinBox QSpinBox; typedef struct QWidget QWidget; #endif -QSpinBox* QSpinBox_new(); -QSpinBox* QSpinBox_new2(QWidget* parent); +QSpinBox* QSpinBox_new(QWidget* parent); +QSpinBox* QSpinBox_new2(); QMetaObject* QSpinBox_MetaObject(const QSpinBox* self); void* QSpinBox_Metacast(QSpinBox* self, const char* param1); struct miqt_string QSpinBox_Tr(const char* s); @@ -56,8 +56,8 @@ struct miqt_string QSpinBox_Tr2(const char* s, const char* c); struct miqt_string QSpinBox_Tr3(const char* s, const char* c, int n); void QSpinBox_Delete(QSpinBox* self); -QDoubleSpinBox* QDoubleSpinBox_new(); -QDoubleSpinBox* QDoubleSpinBox_new2(QWidget* parent); +QDoubleSpinBox* QDoubleSpinBox_new(QWidget* parent); +QDoubleSpinBox* QDoubleSpinBox_new2(); QMetaObject* QDoubleSpinBox_MetaObject(const QDoubleSpinBox* self); void* QDoubleSpinBox_Metacast(QDoubleSpinBox* self, const char* param1); struct miqt_string QDoubleSpinBox_Tr(const char* s); diff --git a/qt6/gen_qsplitter.cpp b/qt6/gen_qsplitter.cpp index 808f708a..cc14ea86 100644 --- a/qt6/gen_qsplitter.cpp +++ b/qt6/gen_qsplitter.cpp @@ -12,16 +12,16 @@ #include "gen_qsplitter.h" #include "_cgo_export.h" -QSplitter* QSplitter_new() { - return new QSplitter(); +QSplitter* QSplitter_new(QWidget* parent) { + return new QSplitter(parent); } -QSplitter* QSplitter_new2(int param1) { - return new QSplitter(static_cast(param1)); +QSplitter* QSplitter_new2() { + return new QSplitter(); } -QSplitter* QSplitter_new3(QWidget* parent) { - return new QSplitter(parent); +QSplitter* QSplitter_new3(int param1) { + return new QSplitter(static_cast(param1)); } QSplitter* QSplitter_new4(int param1, QWidget* parent) { diff --git a/qt6/gen_qsplitter.go b/qt6/gen_qsplitter.go index 5c0d1b2f..c2b5ef2f 100644 --- a/qt6/gen_qsplitter.go +++ b/qt6/gen_qsplitter.go @@ -45,20 +45,20 @@ func UnsafeNewQSplitter(h unsafe.Pointer) *QSplitter { } // NewQSplitter constructs a new QSplitter object. -func NewQSplitter() *QSplitter { - ret := C.QSplitter_new() +func NewQSplitter(parent *QWidget) *QSplitter { + ret := C.QSplitter_new(parent.cPointer()) return newQSplitter(ret) } // NewQSplitter2 constructs a new QSplitter object. -func NewQSplitter2(param1 Orientation) *QSplitter { - ret := C.QSplitter_new2((C.int)(param1)) +func NewQSplitter2() *QSplitter { + ret := C.QSplitter_new2() return newQSplitter(ret) } // NewQSplitter3 constructs a new QSplitter object. -func NewQSplitter3(parent *QWidget) *QSplitter { - ret := C.QSplitter_new3(parent.cPointer()) +func NewQSplitter3(param1 Orientation) *QSplitter { + ret := C.QSplitter_new3((C.int)(param1)) return newQSplitter(ret) } diff --git a/qt6/gen_qsplitter.h b/qt6/gen_qsplitter.h index 129090ba..474c736d 100644 --- a/qt6/gen_qsplitter.h +++ b/qt6/gen_qsplitter.h @@ -29,9 +29,9 @@ typedef struct QSplitterHandle QSplitterHandle; typedef struct QWidget QWidget; #endif -QSplitter* QSplitter_new(); -QSplitter* QSplitter_new2(int param1); -QSplitter* QSplitter_new3(QWidget* parent); +QSplitter* QSplitter_new(QWidget* parent); +QSplitter* QSplitter_new2(); +QSplitter* QSplitter_new3(int param1); QSplitter* QSplitter_new4(int param1, QWidget* parent); QMetaObject* QSplitter_MetaObject(const QSplitter* self); void* QSplitter_Metacast(QSplitter* self, const char* param1); diff --git a/qt6/gen_qstackedlayout.cpp b/qt6/gen_qstackedlayout.cpp index ed2437c9..49ea1789 100644 --- a/qt6/gen_qstackedlayout.cpp +++ b/qt6/gen_qstackedlayout.cpp @@ -12,12 +12,12 @@ #include "gen_qstackedlayout.h" #include "_cgo_export.h" -QStackedLayout* QStackedLayout_new() { - return new QStackedLayout(); +QStackedLayout* QStackedLayout_new(QWidget* parent) { + return new QStackedLayout(parent); } -QStackedLayout* QStackedLayout_new2(QWidget* parent) { - return new QStackedLayout(parent); +QStackedLayout* QStackedLayout_new2() { + return new QStackedLayout(); } QStackedLayout* QStackedLayout_new3(QLayout* parentLayout) { diff --git a/qt6/gen_qstackedlayout.go b/qt6/gen_qstackedlayout.go index 4f7fa0f8..b4a2ec40 100644 --- a/qt6/gen_qstackedlayout.go +++ b/qt6/gen_qstackedlayout.go @@ -52,14 +52,14 @@ func UnsafeNewQStackedLayout(h unsafe.Pointer) *QStackedLayout { } // NewQStackedLayout constructs a new QStackedLayout object. -func NewQStackedLayout() *QStackedLayout { - ret := C.QStackedLayout_new() +func NewQStackedLayout(parent *QWidget) *QStackedLayout { + ret := C.QStackedLayout_new(parent.cPointer()) return newQStackedLayout(ret) } // NewQStackedLayout2 constructs a new QStackedLayout object. -func NewQStackedLayout2(parent *QWidget) *QStackedLayout { - ret := C.QStackedLayout_new2(parent.cPointer()) +func NewQStackedLayout2() *QStackedLayout { + ret := C.QStackedLayout_new2() return newQStackedLayout(ret) } diff --git a/qt6/gen_qstackedlayout.h b/qt6/gen_qstackedlayout.h index 0aa37485..c3e0e556 100644 --- a/qt6/gen_qstackedlayout.h +++ b/qt6/gen_qstackedlayout.h @@ -31,8 +31,8 @@ typedef struct QStackedLayout QStackedLayout; typedef struct QWidget QWidget; #endif -QStackedLayout* QStackedLayout_new(); -QStackedLayout* QStackedLayout_new2(QWidget* parent); +QStackedLayout* QStackedLayout_new(QWidget* parent); +QStackedLayout* QStackedLayout_new2(); QStackedLayout* QStackedLayout_new3(QLayout* parentLayout); QMetaObject* QStackedLayout_MetaObject(const QStackedLayout* self); void* QStackedLayout_Metacast(QStackedLayout* self, const char* param1); diff --git a/qt6/gen_qstackedwidget.cpp b/qt6/gen_qstackedwidget.cpp index c4d4d24d..2cd89899 100644 --- a/qt6/gen_qstackedwidget.cpp +++ b/qt6/gen_qstackedwidget.cpp @@ -8,12 +8,12 @@ #include "gen_qstackedwidget.h" #include "_cgo_export.h" -QStackedWidget* QStackedWidget_new() { - return new QStackedWidget(); +QStackedWidget* QStackedWidget_new(QWidget* parent) { + return new QStackedWidget(parent); } -QStackedWidget* QStackedWidget_new2(QWidget* parent) { - return new QStackedWidget(parent); +QStackedWidget* QStackedWidget_new2() { + return new QStackedWidget(); } QMetaObject* QStackedWidget_MetaObject(const QStackedWidget* self) { diff --git a/qt6/gen_qstackedwidget.go b/qt6/gen_qstackedwidget.go index fdc37508..c1c29898 100644 --- a/qt6/gen_qstackedwidget.go +++ b/qt6/gen_qstackedwidget.go @@ -45,14 +45,14 @@ func UnsafeNewQStackedWidget(h unsafe.Pointer) *QStackedWidget { } // NewQStackedWidget constructs a new QStackedWidget object. -func NewQStackedWidget() *QStackedWidget { - ret := C.QStackedWidget_new() +func NewQStackedWidget(parent *QWidget) *QStackedWidget { + ret := C.QStackedWidget_new(parent.cPointer()) return newQStackedWidget(ret) } // NewQStackedWidget2 constructs a new QStackedWidget object. -func NewQStackedWidget2(parent *QWidget) *QStackedWidget { - ret := C.QStackedWidget_new2(parent.cPointer()) +func NewQStackedWidget2() *QStackedWidget { + ret := C.QStackedWidget_new2() return newQStackedWidget(ret) } diff --git a/qt6/gen_qstackedwidget.h b/qt6/gen_qstackedwidget.h index 80279c61..ed84d7c6 100644 --- a/qt6/gen_qstackedwidget.h +++ b/qt6/gen_qstackedwidget.h @@ -23,8 +23,8 @@ typedef struct QStackedWidget QStackedWidget; typedef struct QWidget QWidget; #endif -QStackedWidget* QStackedWidget_new(); -QStackedWidget* QStackedWidget_new2(QWidget* parent); +QStackedWidget* QStackedWidget_new(QWidget* parent); +QStackedWidget* QStackedWidget_new2(); QMetaObject* QStackedWidget_MetaObject(const QStackedWidget* self); void* QStackedWidget_Metacast(QStackedWidget* self, const char* param1); struct miqt_string QStackedWidget_Tr(const char* s); diff --git a/qt6/gen_qstatusbar.cpp b/qt6/gen_qstatusbar.cpp index 000d31c4..3706c108 100644 --- a/qt6/gen_qstatusbar.cpp +++ b/qt6/gen_qstatusbar.cpp @@ -8,12 +8,12 @@ #include "gen_qstatusbar.h" #include "_cgo_export.h" -QStatusBar* QStatusBar_new() { - return new QStatusBar(); +QStatusBar* QStatusBar_new(QWidget* parent) { + return new QStatusBar(parent); } -QStatusBar* QStatusBar_new2(QWidget* parent) { - return new QStatusBar(parent); +QStatusBar* QStatusBar_new2() { + return new QStatusBar(); } QMetaObject* QStatusBar_MetaObject(const QStatusBar* self) { diff --git a/qt6/gen_qstatusbar.go b/qt6/gen_qstatusbar.go index 1cf0e699..07db43c7 100644 --- a/qt6/gen_qstatusbar.go +++ b/qt6/gen_qstatusbar.go @@ -45,14 +45,14 @@ func UnsafeNewQStatusBar(h unsafe.Pointer) *QStatusBar { } // NewQStatusBar constructs a new QStatusBar object. -func NewQStatusBar() *QStatusBar { - ret := C.QStatusBar_new() +func NewQStatusBar(parent *QWidget) *QStatusBar { + ret := C.QStatusBar_new(parent.cPointer()) return newQStatusBar(ret) } // NewQStatusBar2 constructs a new QStatusBar object. -func NewQStatusBar2(parent *QWidget) *QStatusBar { - ret := C.QStatusBar_new2(parent.cPointer()) +func NewQStatusBar2() *QStatusBar { + ret := C.QStatusBar_new2() return newQStatusBar(ret) } diff --git a/qt6/gen_qstatusbar.h b/qt6/gen_qstatusbar.h index b5a6d2ea..df4a878b 100644 --- a/qt6/gen_qstatusbar.h +++ b/qt6/gen_qstatusbar.h @@ -23,8 +23,8 @@ typedef struct QStatusBar QStatusBar; typedef struct QWidget QWidget; #endif -QStatusBar* QStatusBar_new(); -QStatusBar* QStatusBar_new2(QWidget* parent); +QStatusBar* QStatusBar_new(QWidget* parent); +QStatusBar* QStatusBar_new2(); QMetaObject* QStatusBar_MetaObject(const QStatusBar* self); void* QStatusBar_Metacast(QStatusBar* self, const char* param1); struct miqt_string QStatusBar_Tr(const char* s); diff --git a/qt6/gen_qstylepainter.cpp b/qt6/gen_qstylepainter.cpp index f81f3087..327e99eb 100644 --- a/qt6/gen_qstylepainter.cpp +++ b/qt6/gen_qstylepainter.cpp @@ -14,12 +14,12 @@ #include "gen_qstylepainter.h" #include "_cgo_export.h" -QStylePainter* QStylePainter_new() { - return new QStylePainter(); +QStylePainter* QStylePainter_new(QWidget* w) { + return new QStylePainter(w); } -QStylePainter* QStylePainter_new2(QWidget* w) { - return new QStylePainter(w); +QStylePainter* QStylePainter_new2() { + return new QStylePainter(); } QStylePainter* QStylePainter_new3(QPaintDevice* pd, QWidget* w) { diff --git a/qt6/gen_qstylepainter.go b/qt6/gen_qstylepainter.go index de0e7819..ea900c2a 100644 --- a/qt6/gen_qstylepainter.go +++ b/qt6/gen_qstylepainter.go @@ -44,14 +44,14 @@ func UnsafeNewQStylePainter(h unsafe.Pointer) *QStylePainter { } // NewQStylePainter constructs a new QStylePainter object. -func NewQStylePainter() *QStylePainter { - ret := C.QStylePainter_new() +func NewQStylePainter(w *QWidget) *QStylePainter { + ret := C.QStylePainter_new(w.cPointer()) return newQStylePainter(ret) } // NewQStylePainter2 constructs a new QStylePainter object. -func NewQStylePainter2(w *QWidget) *QStylePainter { - ret := C.QStylePainter_new2(w.cPointer()) +func NewQStylePainter2() *QStylePainter { + ret := C.QStylePainter_new2() return newQStylePainter(ret) } diff --git a/qt6/gen_qstylepainter.h b/qt6/gen_qstylepainter.h index ef1a9a00..b2c8efab 100644 --- a/qt6/gen_qstylepainter.h +++ b/qt6/gen_qstylepainter.h @@ -35,8 +35,8 @@ typedef struct QStylePainter QStylePainter; typedef struct QWidget QWidget; #endif -QStylePainter* QStylePainter_new(); -QStylePainter* QStylePainter_new2(QWidget* w); +QStylePainter* QStylePainter_new(QWidget* w); +QStylePainter* QStylePainter_new2(); QStylePainter* QStylePainter_new3(QPaintDevice* pd, QWidget* w); bool QStylePainter_Begin(QStylePainter* self, QWidget* w); bool QStylePainter_Begin2(QStylePainter* self, QPaintDevice* pd, QWidget* w); diff --git a/qt6/gen_qtabbar.cpp b/qt6/gen_qtabbar.cpp index cc7c38ac..ee91fbc9 100644 --- a/qt6/gen_qtabbar.cpp +++ b/qt6/gen_qtabbar.cpp @@ -14,12 +14,12 @@ #include "gen_qtabbar.h" #include "_cgo_export.h" -QTabBar* QTabBar_new() { - return new QTabBar(); +QTabBar* QTabBar_new(QWidget* parent) { + return new QTabBar(parent); } -QTabBar* QTabBar_new2(QWidget* parent) { - return new QTabBar(parent); +QTabBar* QTabBar_new2() { + return new QTabBar(); } QMetaObject* QTabBar_MetaObject(const QTabBar* self) { diff --git a/qt6/gen_qtabbar.go b/qt6/gen_qtabbar.go index 49ea6a1f..d2fe8735 100644 --- a/qt6/gen_qtabbar.go +++ b/qt6/gen_qtabbar.go @@ -73,14 +73,14 @@ func UnsafeNewQTabBar(h unsafe.Pointer) *QTabBar { } // NewQTabBar constructs a new QTabBar object. -func NewQTabBar() *QTabBar { - ret := C.QTabBar_new() +func NewQTabBar(parent *QWidget) *QTabBar { + ret := C.QTabBar_new(parent.cPointer()) return newQTabBar(ret) } // NewQTabBar2 constructs a new QTabBar object. -func NewQTabBar2(parent *QWidget) *QTabBar { - ret := C.QTabBar_new2(parent.cPointer()) +func NewQTabBar2() *QTabBar { + ret := C.QTabBar_new2() return newQTabBar(ret) } diff --git a/qt6/gen_qtabbar.h b/qt6/gen_qtabbar.h index 540d9cbf..54ac388b 100644 --- a/qt6/gen_qtabbar.h +++ b/qt6/gen_qtabbar.h @@ -35,8 +35,8 @@ typedef struct QVariant QVariant; typedef struct QWidget QWidget; #endif -QTabBar* QTabBar_new(); -QTabBar* QTabBar_new2(QWidget* parent); +QTabBar* QTabBar_new(QWidget* parent); +QTabBar* QTabBar_new2(); QMetaObject* QTabBar_MetaObject(const QTabBar* self); void* QTabBar_Metacast(QTabBar* self, const char* param1); struct miqt_string QTabBar_Tr(const char* s); diff --git a/qt6/gen_qtableview.cpp b/qt6/gen_qtableview.cpp index 9f92e546..5da52aed 100644 --- a/qt6/gen_qtableview.cpp +++ b/qt6/gen_qtableview.cpp @@ -14,12 +14,12 @@ #include "gen_qtableview.h" #include "_cgo_export.h" -QTableView* QTableView_new() { - return new QTableView(); +QTableView* QTableView_new(QWidget* parent) { + return new QTableView(parent); } -QTableView* QTableView_new2(QWidget* parent) { - return new QTableView(parent); +QTableView* QTableView_new2() { + return new QTableView(); } QMetaObject* QTableView_MetaObject(const QTableView* self) { diff --git a/qt6/gen_qtableview.go b/qt6/gen_qtableview.go index 7fa9e28f..c554de8e 100644 --- a/qt6/gen_qtableview.go +++ b/qt6/gen_qtableview.go @@ -44,14 +44,14 @@ func UnsafeNewQTableView(h unsafe.Pointer) *QTableView { } // NewQTableView constructs a new QTableView object. -func NewQTableView() *QTableView { - ret := C.QTableView_new() +func NewQTableView(parent *QWidget) *QTableView { + ret := C.QTableView_new(parent.cPointer()) return newQTableView(ret) } // NewQTableView2 constructs a new QTableView object. -func NewQTableView2(parent *QWidget) *QTableView { - ret := C.QTableView_new2(parent.cPointer()) +func NewQTableView2() *QTableView { + ret := C.QTableView_new2() return newQTableView(ret) } diff --git a/qt6/gen_qtableview.h b/qt6/gen_qtableview.h index dfbb1d10..11eac06a 100644 --- a/qt6/gen_qtableview.h +++ b/qt6/gen_qtableview.h @@ -35,8 +35,8 @@ typedef struct QTableView QTableView; typedef struct QWidget QWidget; #endif -QTableView* QTableView_new(); -QTableView* QTableView_new2(QWidget* parent); +QTableView* QTableView_new(QWidget* parent); +QTableView* QTableView_new2(); QMetaObject* QTableView_MetaObject(const QTableView* self); void* QTableView_Metacast(QTableView* self, const char* param1); struct miqt_string QTableView_Tr(const char* s); diff --git a/qt6/gen_qtablewidget.cpp b/qt6/gen_qtablewidget.cpp index 3c2b869c..91156324 100644 --- a/qt6/gen_qtablewidget.cpp +++ b/qt6/gen_qtablewidget.cpp @@ -283,16 +283,16 @@ void QTableWidgetItem_Delete(QTableWidgetItem* self) { delete self; } -QTableWidget* QTableWidget_new() { - return new QTableWidget(); +QTableWidget* QTableWidget_new(QWidget* parent) { + return new QTableWidget(parent); } -QTableWidget* QTableWidget_new2(int rows, int columns) { - return new QTableWidget(static_cast(rows), static_cast(columns)); +QTableWidget* QTableWidget_new2() { + return new QTableWidget(); } -QTableWidget* QTableWidget_new3(QWidget* parent) { - return new QTableWidget(parent); +QTableWidget* QTableWidget_new3(int rows, int columns) { + return new QTableWidget(static_cast(rows), static_cast(columns)); } QTableWidget* QTableWidget_new4(int rows, int columns, QWidget* parent) { diff --git a/qt6/gen_qtablewidget.go b/qt6/gen_qtablewidget.go index fdd41adb..cebb677a 100644 --- a/qt6/gen_qtablewidget.go +++ b/qt6/gen_qtablewidget.go @@ -434,20 +434,20 @@ func UnsafeNewQTableWidget(h unsafe.Pointer) *QTableWidget { } // NewQTableWidget constructs a new QTableWidget object. -func NewQTableWidget() *QTableWidget { - ret := C.QTableWidget_new() +func NewQTableWidget(parent *QWidget) *QTableWidget { + ret := C.QTableWidget_new(parent.cPointer()) return newQTableWidget(ret) } // NewQTableWidget2 constructs a new QTableWidget object. -func NewQTableWidget2(rows int, columns int) *QTableWidget { - ret := C.QTableWidget_new2((C.int)(rows), (C.int)(columns)) +func NewQTableWidget2() *QTableWidget { + ret := C.QTableWidget_new2() return newQTableWidget(ret) } // NewQTableWidget3 constructs a new QTableWidget object. -func NewQTableWidget3(parent *QWidget) *QTableWidget { - ret := C.QTableWidget_new3(parent.cPointer()) +func NewQTableWidget3(rows int, columns int) *QTableWidget { + ret := C.QTableWidget_new3((C.int)(rows), (C.int)(columns)) return newQTableWidget(ret) } diff --git a/qt6/gen_qtablewidget.h b/qt6/gen_qtablewidget.h index 52b339b9..7825aa70 100644 --- a/qt6/gen_qtablewidget.h +++ b/qt6/gen_qtablewidget.h @@ -105,9 +105,9 @@ void QTableWidgetItem_OperatorAssign(QTableWidgetItem* self, QTableWidgetItem* o int QTableWidgetItem_Type(const QTableWidgetItem* self); void QTableWidgetItem_Delete(QTableWidgetItem* self); -QTableWidget* QTableWidget_new(); -QTableWidget* QTableWidget_new2(int rows, int columns); -QTableWidget* QTableWidget_new3(QWidget* parent); +QTableWidget* QTableWidget_new(QWidget* parent); +QTableWidget* QTableWidget_new2(); +QTableWidget* QTableWidget_new3(int rows, int columns); QTableWidget* QTableWidget_new4(int rows, int columns, QWidget* parent); QMetaObject* QTableWidget_MetaObject(const QTableWidget* self); void* QTableWidget_Metacast(QTableWidget* self, const char* param1); diff --git a/qt6/gen_qtabwidget.cpp b/qt6/gen_qtabwidget.cpp index 5677b599..51d7561d 100644 --- a/qt6/gen_qtabwidget.cpp +++ b/qt6/gen_qtabwidget.cpp @@ -11,12 +11,12 @@ #include "gen_qtabwidget.h" #include "_cgo_export.h" -QTabWidget* QTabWidget_new() { - return new QTabWidget(); +QTabWidget* QTabWidget_new(QWidget* parent) { + return new QTabWidget(parent); } -QTabWidget* QTabWidget_new2(QWidget* parent) { - return new QTabWidget(parent); +QTabWidget* QTabWidget_new2() { + return new QTabWidget(); } QMetaObject* QTabWidget_MetaObject(const QTabWidget* self) { diff --git a/qt6/gen_qtabwidget.go b/qt6/gen_qtabwidget.go index 86cd404b..f7387cec 100644 --- a/qt6/gen_qtabwidget.go +++ b/qt6/gen_qtabwidget.go @@ -61,14 +61,14 @@ func UnsafeNewQTabWidget(h unsafe.Pointer) *QTabWidget { } // NewQTabWidget constructs a new QTabWidget object. -func NewQTabWidget() *QTabWidget { - ret := C.QTabWidget_new() +func NewQTabWidget(parent *QWidget) *QTabWidget { + ret := C.QTabWidget_new(parent.cPointer()) return newQTabWidget(ret) } // NewQTabWidget2 constructs a new QTabWidget object. -func NewQTabWidget2(parent *QWidget) *QTabWidget { - ret := C.QTabWidget_new2(parent.cPointer()) +func NewQTabWidget2() *QTabWidget { + ret := C.QTabWidget_new2() return newQTabWidget(ret) } diff --git a/qt6/gen_qtabwidget.h b/qt6/gen_qtabwidget.h index d4ca27a4..2fec0d86 100644 --- a/qt6/gen_qtabwidget.h +++ b/qt6/gen_qtabwidget.h @@ -29,8 +29,8 @@ typedef struct QTabWidget QTabWidget; typedef struct QWidget QWidget; #endif -QTabWidget* QTabWidget_new(); -QTabWidget* QTabWidget_new2(QWidget* parent); +QTabWidget* QTabWidget_new(QWidget* parent); +QTabWidget* QTabWidget_new2(); QMetaObject* QTabWidget_MetaObject(const QTabWidget* self); void* QTabWidget_Metacast(QTabWidget* self, const char* param1); struct miqt_string QTabWidget_Tr(const char* s); diff --git a/qt6/gen_qtextbrowser.cpp b/qt6/gen_qtextbrowser.cpp index 8d542e84..179d2aa8 100644 --- a/qt6/gen_qtextbrowser.cpp +++ b/qt6/gen_qtextbrowser.cpp @@ -11,12 +11,12 @@ #include "gen_qtextbrowser.h" #include "_cgo_export.h" -QTextBrowser* QTextBrowser_new() { - return new QTextBrowser(); +QTextBrowser* QTextBrowser_new(QWidget* parent) { + return new QTextBrowser(parent); } -QTextBrowser* QTextBrowser_new2(QWidget* parent) { - return new QTextBrowser(parent); +QTextBrowser* QTextBrowser_new2() { + return new QTextBrowser(); } QMetaObject* QTextBrowser_MetaObject(const QTextBrowser* self) { diff --git a/qt6/gen_qtextbrowser.go b/qt6/gen_qtextbrowser.go index fb03dfa7..ffbb3e8e 100644 --- a/qt6/gen_qtextbrowser.go +++ b/qt6/gen_qtextbrowser.go @@ -45,14 +45,14 @@ func UnsafeNewQTextBrowser(h unsafe.Pointer) *QTextBrowser { } // NewQTextBrowser constructs a new QTextBrowser object. -func NewQTextBrowser() *QTextBrowser { - ret := C.QTextBrowser_new() +func NewQTextBrowser(parent *QWidget) *QTextBrowser { + ret := C.QTextBrowser_new(parent.cPointer()) return newQTextBrowser(ret) } // NewQTextBrowser2 constructs a new QTextBrowser object. -func NewQTextBrowser2(parent *QWidget) *QTextBrowser { - ret := C.QTextBrowser_new2(parent.cPointer()) +func NewQTextBrowser2() *QTextBrowser { + ret := C.QTextBrowser_new2() return newQTextBrowser(ret) } diff --git a/qt6/gen_qtextbrowser.h b/qt6/gen_qtextbrowser.h index 6e72d6ce..cf8afa24 100644 --- a/qt6/gen_qtextbrowser.h +++ b/qt6/gen_qtextbrowser.h @@ -27,8 +27,8 @@ typedef struct QVariant QVariant; typedef struct QWidget QWidget; #endif -QTextBrowser* QTextBrowser_new(); -QTextBrowser* QTextBrowser_new2(QWidget* parent); +QTextBrowser* QTextBrowser_new(QWidget* parent); +QTextBrowser* QTextBrowser_new2(); QMetaObject* QTextBrowser_MetaObject(const QTextBrowser* self); void* QTextBrowser_Metacast(QTextBrowser* self, const char* param1); struct miqt_string QTextBrowser_Tr(const char* s); diff --git a/qt6/gen_qtextedit.cpp b/qt6/gen_qtextedit.cpp index c3fbc397..26056d6a 100644 --- a/qt6/gen_qtextedit.cpp +++ b/qt6/gen_qtextedit.cpp @@ -22,19 +22,19 @@ #include "gen_qtextedit.h" #include "_cgo_export.h" -QTextEdit* QTextEdit_new() { +QTextEdit* QTextEdit_new(QWidget* parent) { + return new QTextEdit(parent); +} + +QTextEdit* QTextEdit_new2() { return new QTextEdit(); } -QTextEdit* QTextEdit_new2(struct miqt_string text) { +QTextEdit* QTextEdit_new3(struct miqt_string text) { QString text_QString = QString::fromUtf8(text.data, text.len); return new QTextEdit(text_QString); } -QTextEdit* QTextEdit_new3(QWidget* parent) { - return new QTextEdit(parent); -} - QTextEdit* QTextEdit_new4(struct miqt_string text, QWidget* parent) { QString text_QString = QString::fromUtf8(text.data, text.len); return new QTextEdit(text_QString, parent); diff --git a/qt6/gen_qtextedit.go b/qt6/gen_qtextedit.go index 706ca522..e7a9c947 100644 --- a/qt6/gen_qtextedit.go +++ b/qt6/gen_qtextedit.go @@ -62,24 +62,24 @@ func UnsafeNewQTextEdit(h unsafe.Pointer) *QTextEdit { } // NewQTextEdit constructs a new QTextEdit object. -func NewQTextEdit() *QTextEdit { - ret := C.QTextEdit_new() +func NewQTextEdit(parent *QWidget) *QTextEdit { + ret := C.QTextEdit_new(parent.cPointer()) return newQTextEdit(ret) } // NewQTextEdit2 constructs a new QTextEdit object. -func NewQTextEdit2(text string) *QTextEdit { - text_ms := C.struct_miqt_string{} - text_ms.data = C.CString(text) - text_ms.len = C.size_t(len(text)) - defer C.free(unsafe.Pointer(text_ms.data)) - ret := C.QTextEdit_new2(text_ms) +func NewQTextEdit2() *QTextEdit { + ret := C.QTextEdit_new2() return newQTextEdit(ret) } // NewQTextEdit3 constructs a new QTextEdit object. -func NewQTextEdit3(parent *QWidget) *QTextEdit { - ret := C.QTextEdit_new3(parent.cPointer()) +func NewQTextEdit3(text string) *QTextEdit { + text_ms := C.struct_miqt_string{} + text_ms.data = C.CString(text) + text_ms.len = C.size_t(len(text)) + defer C.free(unsafe.Pointer(text_ms.data)) + ret := C.QTextEdit_new3(text_ms) return newQTextEdit(ret) } diff --git a/qt6/gen_qtextedit.h b/qt6/gen_qtextedit.h index 59cfee19..e04b680a 100644 --- a/qt6/gen_qtextedit.h +++ b/qt6/gen_qtextedit.h @@ -53,9 +53,9 @@ typedef struct QVariant QVariant; typedef struct QWidget QWidget; #endif -QTextEdit* QTextEdit_new(); -QTextEdit* QTextEdit_new2(struct miqt_string text); -QTextEdit* QTextEdit_new3(QWidget* parent); +QTextEdit* QTextEdit_new(QWidget* parent); +QTextEdit* QTextEdit_new2(); +QTextEdit* QTextEdit_new3(struct miqt_string text); QTextEdit* QTextEdit_new4(struct miqt_string text, QWidget* parent); QMetaObject* QTextEdit_MetaObject(const QTextEdit* self); void* QTextEdit_Metacast(QTextEdit* self, const char* param1); diff --git a/qt6/gen_qtoolbar.cpp b/qt6/gen_qtoolbar.cpp index 708f6b99..2068c7e6 100644 --- a/qt6/gen_qtoolbar.cpp +++ b/qt6/gen_qtoolbar.cpp @@ -12,24 +12,24 @@ #include "gen_qtoolbar.h" #include "_cgo_export.h" -QToolBar* QToolBar_new(struct miqt_string title) { +QToolBar* QToolBar_new(QWidget* parent) { + return new QToolBar(parent); +} + +QToolBar* QToolBar_new2(struct miqt_string title) { QString title_QString = QString::fromUtf8(title.data, title.len); return new QToolBar(title_QString); } -QToolBar* QToolBar_new2() { +QToolBar* QToolBar_new3() { return new QToolBar(); } -QToolBar* QToolBar_new3(struct miqt_string title, QWidget* parent) { +QToolBar* QToolBar_new4(struct miqt_string title, QWidget* parent) { QString title_QString = QString::fromUtf8(title.data, title.len); return new QToolBar(title_QString, parent); } -QToolBar* QToolBar_new4(QWidget* parent) { - return new QToolBar(parent); -} - QMetaObject* QToolBar_MetaObject(const QToolBar* self) { return (QMetaObject*) self->metaObject(); } diff --git a/qt6/gen_qtoolbar.go b/qt6/gen_qtoolbar.go index 1fb8001a..c37ad074 100644 --- a/qt6/gen_qtoolbar.go +++ b/qt6/gen_qtoolbar.go @@ -45,34 +45,34 @@ func UnsafeNewQToolBar(h unsafe.Pointer) *QToolBar { } // NewQToolBar constructs a new QToolBar object. -func NewQToolBar(title string) *QToolBar { +func NewQToolBar(parent *QWidget) *QToolBar { + ret := C.QToolBar_new(parent.cPointer()) + return newQToolBar(ret) +} + +// NewQToolBar2 constructs a new QToolBar object. +func NewQToolBar2(title string) *QToolBar { title_ms := C.struct_miqt_string{} title_ms.data = C.CString(title) title_ms.len = C.size_t(len(title)) defer C.free(unsafe.Pointer(title_ms.data)) - ret := C.QToolBar_new(title_ms) + ret := C.QToolBar_new2(title_ms) return newQToolBar(ret) } -// NewQToolBar2 constructs a new QToolBar object. -func NewQToolBar2() *QToolBar { - ret := C.QToolBar_new2() +// NewQToolBar3 constructs a new QToolBar object. +func NewQToolBar3() *QToolBar { + ret := C.QToolBar_new3() return newQToolBar(ret) } -// NewQToolBar3 constructs a new QToolBar object. -func NewQToolBar3(title string, parent *QWidget) *QToolBar { +// NewQToolBar4 constructs a new QToolBar object. +func NewQToolBar4(title string, parent *QWidget) *QToolBar { title_ms := C.struct_miqt_string{} title_ms.data = C.CString(title) title_ms.len = C.size_t(len(title)) defer C.free(unsafe.Pointer(title_ms.data)) - ret := C.QToolBar_new3(title_ms, parent.cPointer()) - return newQToolBar(ret) -} - -// NewQToolBar4 constructs a new QToolBar object. -func NewQToolBar4(parent *QWidget) *QToolBar { - ret := C.QToolBar_new4(parent.cPointer()) + ret := C.QToolBar_new4(title_ms, parent.cPointer()) return newQToolBar(ret) } diff --git a/qt6/gen_qtoolbar.h b/qt6/gen_qtoolbar.h index 3c161c9f..41d90d21 100644 --- a/qt6/gen_qtoolbar.h +++ b/qt6/gen_qtoolbar.h @@ -31,10 +31,10 @@ typedef struct QToolBar QToolBar; typedef struct QWidget QWidget; #endif -QToolBar* QToolBar_new(struct miqt_string title); -QToolBar* QToolBar_new2(); -QToolBar* QToolBar_new3(struct miqt_string title, QWidget* parent); -QToolBar* QToolBar_new4(QWidget* parent); +QToolBar* QToolBar_new(QWidget* parent); +QToolBar* QToolBar_new2(struct miqt_string title); +QToolBar* QToolBar_new3(); +QToolBar* QToolBar_new4(struct miqt_string title, QWidget* parent); QMetaObject* QToolBar_MetaObject(const QToolBar* self); void* QToolBar_Metacast(QToolBar* self, const char* param1); struct miqt_string QToolBar_Tr(const char* s); diff --git a/qt6/gen_qtoolbox.cpp b/qt6/gen_qtoolbox.cpp index f1e5adb6..5c4738b5 100644 --- a/qt6/gen_qtoolbox.cpp +++ b/qt6/gen_qtoolbox.cpp @@ -9,12 +9,12 @@ #include "gen_qtoolbox.h" #include "_cgo_export.h" -QToolBox* QToolBox_new() { - return new QToolBox(); +QToolBox* QToolBox_new(QWidget* parent) { + return new QToolBox(parent); } -QToolBox* QToolBox_new2(QWidget* parent) { - return new QToolBox(parent); +QToolBox* QToolBox_new2() { + return new QToolBox(); } QToolBox* QToolBox_new3(QWidget* parent, int f) { diff --git a/qt6/gen_qtoolbox.go b/qt6/gen_qtoolbox.go index 52d9ccb2..1fcec03c 100644 --- a/qt6/gen_qtoolbox.go +++ b/qt6/gen_qtoolbox.go @@ -45,14 +45,14 @@ func UnsafeNewQToolBox(h unsafe.Pointer) *QToolBox { } // NewQToolBox constructs a new QToolBox object. -func NewQToolBox() *QToolBox { - ret := C.QToolBox_new() +func NewQToolBox(parent *QWidget) *QToolBox { + ret := C.QToolBox_new(parent.cPointer()) return newQToolBox(ret) } // NewQToolBox2 constructs a new QToolBox object. -func NewQToolBox2(parent *QWidget) *QToolBox { - ret := C.QToolBox_new2(parent.cPointer()) +func NewQToolBox2() *QToolBox { + ret := C.QToolBox_new2() return newQToolBox(ret) } diff --git a/qt6/gen_qtoolbox.h b/qt6/gen_qtoolbox.h index bdb81f50..5a63549e 100644 --- a/qt6/gen_qtoolbox.h +++ b/qt6/gen_qtoolbox.h @@ -25,8 +25,8 @@ typedef struct QToolBox QToolBox; typedef struct QWidget QWidget; #endif -QToolBox* QToolBox_new(); -QToolBox* QToolBox_new2(QWidget* parent); +QToolBox* QToolBox_new(QWidget* parent); +QToolBox* QToolBox_new2(); QToolBox* QToolBox_new3(QWidget* parent, int f); QMetaObject* QToolBox_MetaObject(const QToolBox* self); void* QToolBox_Metacast(QToolBox* self, const char* param1); diff --git a/qt6/gen_qtoolbutton.cpp b/qt6/gen_qtoolbutton.cpp index bd422fd6..f48cca76 100644 --- a/qt6/gen_qtoolbutton.cpp +++ b/qt6/gen_qtoolbutton.cpp @@ -11,12 +11,12 @@ #include "gen_qtoolbutton.h" #include "_cgo_export.h" -QToolButton* QToolButton_new() { - return new QToolButton(); +QToolButton* QToolButton_new(QWidget* parent) { + return new QToolButton(parent); } -QToolButton* QToolButton_new2(QWidget* parent) { - return new QToolButton(parent); +QToolButton* QToolButton_new2() { + return new QToolButton(); } QMetaObject* QToolButton_MetaObject(const QToolButton* self) { diff --git a/qt6/gen_qtoolbutton.go b/qt6/gen_qtoolbutton.go index c4c4fb26..c2ff41d8 100644 --- a/qt6/gen_qtoolbutton.go +++ b/qt6/gen_qtoolbutton.go @@ -53,14 +53,14 @@ func UnsafeNewQToolButton(h unsafe.Pointer) *QToolButton { } // NewQToolButton constructs a new QToolButton object. -func NewQToolButton() *QToolButton { - ret := C.QToolButton_new() +func NewQToolButton(parent *QWidget) *QToolButton { + ret := C.QToolButton_new(parent.cPointer()) return newQToolButton(ret) } // NewQToolButton2 constructs a new QToolButton object. -func NewQToolButton2(parent *QWidget) *QToolButton { - ret := C.QToolButton_new2(parent.cPointer()) +func NewQToolButton2() *QToolButton { + ret := C.QToolButton_new2() return newQToolButton(ret) } diff --git a/qt6/gen_qtoolbutton.h b/qt6/gen_qtoolbutton.h index 35e2e648..a6033587 100644 --- a/qt6/gen_qtoolbutton.h +++ b/qt6/gen_qtoolbutton.h @@ -29,8 +29,8 @@ typedef struct QToolButton QToolButton; typedef struct QWidget QWidget; #endif -QToolButton* QToolButton_new(); -QToolButton* QToolButton_new2(QWidget* parent); +QToolButton* QToolButton_new(QWidget* parent); +QToolButton* QToolButton_new2(); QMetaObject* QToolButton_MetaObject(const QToolButton* self); void* QToolButton_Metacast(QToolButton* self, const char* param1); struct miqt_string QToolButton_Tr(const char* s); diff --git a/qt6/gen_qtreeview.cpp b/qt6/gen_qtreeview.cpp index 129f398f..a288fc1d 100644 --- a/qt6/gen_qtreeview.cpp +++ b/qt6/gen_qtreeview.cpp @@ -15,12 +15,12 @@ #include "gen_qtreeview.h" #include "_cgo_export.h" -QTreeView* QTreeView_new() { - return new QTreeView(); +QTreeView* QTreeView_new(QWidget* parent) { + return new QTreeView(parent); } -QTreeView* QTreeView_new2(QWidget* parent) { - return new QTreeView(parent); +QTreeView* QTreeView_new2() { + return new QTreeView(); } QMetaObject* QTreeView_MetaObject(const QTreeView* self) { diff --git a/qt6/gen_qtreeview.go b/qt6/gen_qtreeview.go index b901255c..8dbaa1a4 100644 --- a/qt6/gen_qtreeview.go +++ b/qt6/gen_qtreeview.go @@ -45,14 +45,14 @@ func UnsafeNewQTreeView(h unsafe.Pointer) *QTreeView { } // NewQTreeView constructs a new QTreeView object. -func NewQTreeView() *QTreeView { - ret := C.QTreeView_new() +func NewQTreeView(parent *QWidget) *QTreeView { + ret := C.QTreeView_new(parent.cPointer()) return newQTreeView(ret) } // NewQTreeView2 constructs a new QTreeView object. -func NewQTreeView2(parent *QWidget) *QTreeView { - ret := C.QTreeView_new2(parent.cPointer()) +func NewQTreeView2() *QTreeView { + ret := C.QTreeView_new2() return newQTreeView(ret) } diff --git a/qt6/gen_qtreeview.h b/qt6/gen_qtreeview.h index 302bce0f..ec1ec736 100644 --- a/qt6/gen_qtreeview.h +++ b/qt6/gen_qtreeview.h @@ -35,8 +35,8 @@ typedef struct QTreeView QTreeView; typedef struct QWidget QWidget; #endif -QTreeView* QTreeView_new(); -QTreeView* QTreeView_new2(QWidget* parent); +QTreeView* QTreeView_new(QWidget* parent); +QTreeView* QTreeView_new2(); QMetaObject* QTreeView_MetaObject(const QTreeView* self); void* QTreeView_Metacast(QTreeView* self, const char* param1); struct miqt_string QTreeView_Tr(const char* s); diff --git a/qt6/gen_qtreewidget.cpp b/qt6/gen_qtreewidget.cpp index ac2fbf08..d9939235 100644 --- a/qt6/gen_qtreewidget.cpp +++ b/qt6/gen_qtreewidget.cpp @@ -430,12 +430,12 @@ void QTreeWidgetItem_Delete(QTreeWidgetItem* self) { delete self; } -QTreeWidget* QTreeWidget_new() { - return new QTreeWidget(); +QTreeWidget* QTreeWidget_new(QWidget* parent) { + return new QTreeWidget(parent); } -QTreeWidget* QTreeWidget_new2(QWidget* parent) { - return new QTreeWidget(parent); +QTreeWidget* QTreeWidget_new2() { + return new QTreeWidget(); } QMetaObject* QTreeWidget_MetaObject(const QTreeWidget* self) { diff --git a/qt6/gen_qtreewidget.go b/qt6/gen_qtreewidget.go index af6222c1..79fce455 100644 --- a/qt6/gen_qtreewidget.go +++ b/qt6/gen_qtreewidget.go @@ -586,14 +586,14 @@ func UnsafeNewQTreeWidget(h unsafe.Pointer) *QTreeWidget { } // NewQTreeWidget constructs a new QTreeWidget object. -func NewQTreeWidget() *QTreeWidget { - ret := C.QTreeWidget_new() +func NewQTreeWidget(parent *QWidget) *QTreeWidget { + ret := C.QTreeWidget_new(parent.cPointer()) return newQTreeWidget(ret) } // NewQTreeWidget2 constructs a new QTreeWidget object. -func NewQTreeWidget2(parent *QWidget) *QTreeWidget { - ret := C.QTreeWidget_new2(parent.cPointer()) +func NewQTreeWidget2() *QTreeWidget { + ret := C.QTreeWidget_new2() return newQTreeWidget(ret) } diff --git a/qt6/gen_qtreewidget.h b/qt6/gen_qtreewidget.h index a3716d5a..20ef4dc1 100644 --- a/qt6/gen_qtreewidget.h +++ b/qt6/gen_qtreewidget.h @@ -124,8 +124,8 @@ int QTreeWidgetItem_Type(const QTreeWidgetItem* self); void QTreeWidgetItem_SortChildren(QTreeWidgetItem* self, int column, int order); void QTreeWidgetItem_Delete(QTreeWidgetItem* self); -QTreeWidget* QTreeWidget_new(); -QTreeWidget* QTreeWidget_new2(QWidget* parent); +QTreeWidget* QTreeWidget_new(QWidget* parent); +QTreeWidget* QTreeWidget_new2(); QMetaObject* QTreeWidget_MetaObject(const QTreeWidget* self); void* QTreeWidget_Metacast(QTreeWidget* self, const char* param1); struct miqt_string QTreeWidget_Tr(const char* s); diff --git a/qt6/gen_qundoview.cpp b/qt6/gen_qundoview.cpp index 27f3e27d..ef7e4020 100644 --- a/qt6/gen_qundoview.cpp +++ b/qt6/gen_qundoview.cpp @@ -11,22 +11,22 @@ #include "gen_qundoview.h" #include "_cgo_export.h" -QUndoView* QUndoView_new() { +QUndoView* QUndoView_new(QWidget* parent) { + return new QUndoView(parent); +} + +QUndoView* QUndoView_new2() { return new QUndoView(); } -QUndoView* QUndoView_new2(QUndoStack* stack) { +QUndoView* QUndoView_new3(QUndoStack* stack) { return new QUndoView(stack); } -QUndoView* QUndoView_new3(QUndoGroup* group) { +QUndoView* QUndoView_new4(QUndoGroup* group) { return new QUndoView(group); } -QUndoView* QUndoView_new4(QWidget* parent) { - return new QUndoView(parent); -} - QUndoView* QUndoView_new5(QUndoStack* stack, QWidget* parent) { return new QUndoView(stack, parent); } diff --git a/qt6/gen_qundoview.go b/qt6/gen_qundoview.go index 073b168d..05ee5aa5 100644 --- a/qt6/gen_qundoview.go +++ b/qt6/gen_qundoview.go @@ -44,26 +44,26 @@ func UnsafeNewQUndoView(h unsafe.Pointer) *QUndoView { } // NewQUndoView constructs a new QUndoView object. -func NewQUndoView() *QUndoView { - ret := C.QUndoView_new() +func NewQUndoView(parent *QWidget) *QUndoView { + ret := C.QUndoView_new(parent.cPointer()) return newQUndoView(ret) } // NewQUndoView2 constructs a new QUndoView object. -func NewQUndoView2(stack *QUndoStack) *QUndoView { - ret := C.QUndoView_new2(stack.cPointer()) +func NewQUndoView2() *QUndoView { + ret := C.QUndoView_new2() return newQUndoView(ret) } // NewQUndoView3 constructs a new QUndoView object. -func NewQUndoView3(group *QUndoGroup) *QUndoView { - ret := C.QUndoView_new3(group.cPointer()) +func NewQUndoView3(stack *QUndoStack) *QUndoView { + ret := C.QUndoView_new3(stack.cPointer()) return newQUndoView(ret) } // NewQUndoView4 constructs a new QUndoView object. -func NewQUndoView4(parent *QWidget) *QUndoView { - ret := C.QUndoView_new4(parent.cPointer()) +func NewQUndoView4(group *QUndoGroup) *QUndoView { + ret := C.QUndoView_new4(group.cPointer()) return newQUndoView(ret) } diff --git a/qt6/gen_qundoview.h b/qt6/gen_qundoview.h index ddd57b99..4b6db132 100644 --- a/qt6/gen_qundoview.h +++ b/qt6/gen_qundoview.h @@ -29,10 +29,10 @@ typedef struct QUndoView QUndoView; typedef struct QWidget QWidget; #endif -QUndoView* QUndoView_new(); -QUndoView* QUndoView_new2(QUndoStack* stack); -QUndoView* QUndoView_new3(QUndoGroup* group); -QUndoView* QUndoView_new4(QWidget* parent); +QUndoView* QUndoView_new(QWidget* parent); +QUndoView* QUndoView_new2(); +QUndoView* QUndoView_new3(QUndoStack* stack); +QUndoView* QUndoView_new4(QUndoGroup* group); QUndoView* QUndoView_new5(QUndoStack* stack, QWidget* parent); QUndoView* QUndoView_new6(QUndoGroup* group, QWidget* parent); QMetaObject* QUndoView_MetaObject(const QUndoView* self); diff --git a/qt6/gen_qwidget.cpp b/qt6/gen_qwidget.cpp index 536c35bf..0c27de1d 100644 --- a/qt6/gen_qwidget.cpp +++ b/qt6/gen_qwidget.cpp @@ -51,12 +51,12 @@ void QWidgetData_Delete(QWidgetData* self) { delete self; } -QWidget* QWidget_new() { - return new QWidget(); +QWidget* QWidget_new(QWidget* parent) { + return new QWidget(parent); } -QWidget* QWidget_new2(QWidget* parent) { - return new QWidget(parent); +QWidget* QWidget_new2() { + return new QWidget(); } QWidget* QWidget_new3(QWidget* parent, int f) { diff --git a/qt6/gen_qwidget.go b/qt6/gen_qwidget.go index 9d436159..ae4e60e0 100644 --- a/qt6/gen_qwidget.go +++ b/qt6/gen_qwidget.go @@ -107,14 +107,14 @@ func UnsafeNewQWidget(h unsafe.Pointer) *QWidget { } // NewQWidget constructs a new QWidget object. -func NewQWidget() *QWidget { - ret := C.QWidget_new() +func NewQWidget(parent *QWidget) *QWidget { + ret := C.QWidget_new(parent.cPointer()) return newQWidget(ret) } // NewQWidget2 constructs a new QWidget object. -func NewQWidget2(parent *QWidget) *QWidget { - ret := C.QWidget_new2(parent.cPointer()) +func NewQWidget2() *QWidget { + ret := C.QWidget_new2() return newQWidget(ret) } diff --git a/qt6/gen_qwidget.h b/qt6/gen_qwidget.h index 46736a8b..52d454d7 100644 --- a/qt6/gen_qwidget.h +++ b/qt6/gen_qwidget.h @@ -87,8 +87,8 @@ QWidgetData* QWidgetData_new(QWidgetData* param1); void QWidgetData_OperatorAssign(QWidgetData* self, QWidgetData* param1); void QWidgetData_Delete(QWidgetData* self); -QWidget* QWidget_new(); -QWidget* QWidget_new2(QWidget* parent); +QWidget* QWidget_new(QWidget* parent); +QWidget* QWidget_new2(); QWidget* QWidget_new3(QWidget* parent, int f); QMetaObject* QWidget_MetaObject(const QWidget* self); void* QWidget_Metacast(QWidget* self, const char* param1); diff --git a/qt6/gen_qwizard.cpp b/qt6/gen_qwizard.cpp index 01a59ec3..50337bdb 100644 --- a/qt6/gen_qwizard.cpp +++ b/qt6/gen_qwizard.cpp @@ -14,12 +14,12 @@ #include "gen_qwizard.h" #include "_cgo_export.h" -QWizard* QWizard_new() { - return new QWizard(); +QWizard* QWizard_new(QWidget* parent) { + return new QWizard(parent); } -QWizard* QWizard_new2(QWidget* parent) { - return new QWizard(parent); +QWizard* QWizard_new2() { + return new QWizard(); } QWizard* QWizard_new3(QWidget* parent, int flags) { @@ -331,12 +331,12 @@ void QWizard_Delete(QWizard* self) { delete self; } -QWizardPage* QWizardPage_new() { - return new QWizardPage(); +QWizardPage* QWizardPage_new(QWidget* parent) { + return new QWizardPage(parent); } -QWizardPage* QWizardPage_new2(QWidget* parent) { - return new QWizardPage(parent); +QWizardPage* QWizardPage_new2() { + return new QWizardPage(); } QMetaObject* QWizardPage_MetaObject(const QWizardPage* self) { diff --git a/qt6/gen_qwizard.go b/qt6/gen_qwizard.go index 4d53104f..2587e78b 100644 --- a/qt6/gen_qwizard.go +++ b/qt6/gen_qwizard.go @@ -105,14 +105,14 @@ func UnsafeNewQWizard(h unsafe.Pointer) *QWizard { } // NewQWizard constructs a new QWizard object. -func NewQWizard() *QWizard { - ret := C.QWizard_new() +func NewQWizard(parent *QWidget) *QWizard { + ret := C.QWizard_new(parent.cPointer()) return newQWizard(ret) } // NewQWizard2 constructs a new QWizard object. -func NewQWizard2(parent *QWidget) *QWizard { - ret := C.QWizard_new2(parent.cPointer()) +func NewQWizard2() *QWizard { + ret := C.QWizard_new2() return newQWizard(ret) } @@ -525,14 +525,14 @@ func UnsafeNewQWizardPage(h unsafe.Pointer) *QWizardPage { } // NewQWizardPage constructs a new QWizardPage object. -func NewQWizardPage() *QWizardPage { - ret := C.QWizardPage_new() +func NewQWizardPage(parent *QWidget) *QWizardPage { + ret := C.QWizardPage_new(parent.cPointer()) return newQWizardPage(ret) } // NewQWizardPage2 constructs a new QWizardPage object. -func NewQWizardPage2(parent *QWidget) *QWizardPage { - ret := C.QWizardPage_new2(parent.cPointer()) +func NewQWizardPage2() *QWizardPage { + ret := C.QWizardPage_new2() return newQWizardPage(ret) } diff --git a/qt6/gen_qwizard.h b/qt6/gen_qwizard.h index 9ec9ce6c..ad57f4ac 100644 --- a/qt6/gen_qwizard.h +++ b/qt6/gen_qwizard.h @@ -33,8 +33,8 @@ typedef struct QWizard QWizard; typedef struct QWizardPage QWizardPage; #endif -QWizard* QWizard_new(); -QWizard* QWizard_new2(QWidget* parent); +QWizard* QWizard_new(QWidget* parent); +QWizard* QWizard_new2(); QWizard* QWizard_new3(QWidget* parent, int flags); QMetaObject* QWizard_MetaObject(const QWizard* self); void* QWizard_Metacast(QWizard* self, const char* param1); @@ -95,8 +95,8 @@ struct miqt_string QWizard_Tr3(const char* s, const char* c, int n); void QWizard_SetOption2(QWizard* self, int option, bool on); void QWizard_Delete(QWizard* self); -QWizardPage* QWizardPage_new(); -QWizardPage* QWizardPage_new2(QWidget* parent); +QWizardPage* QWizardPage_new(QWidget* parent); +QWizardPage* QWizardPage_new2(); QMetaObject* QWizardPage_MetaObject(const QWizardPage* self); void* QWizardPage_Metacast(QWizardPage* self, const char* param1); struct miqt_string QWizardPage_Tr(const char* s); diff --git a/qt6/qprintsupport/gen_qpagesetupdialog.cpp b/qt6/qprintsupport/gen_qpagesetupdialog.cpp index 3757f5ef..a08f9999 100644 --- a/qt6/qprintsupport/gen_qpagesetupdialog.cpp +++ b/qt6/qprintsupport/gen_qpagesetupdialog.cpp @@ -9,22 +9,22 @@ #include "gen_qpagesetupdialog.h" #include "_cgo_export.h" -QPageSetupDialog* QPageSetupDialog_new(QPrinter* printer) { +QPageSetupDialog* QPageSetupDialog_new(QWidget* parent) { + return new QPageSetupDialog(parent); +} + +QPageSetupDialog* QPageSetupDialog_new2(QPrinter* printer) { return new QPageSetupDialog(printer); } -QPageSetupDialog* QPageSetupDialog_new2() { +QPageSetupDialog* QPageSetupDialog_new3() { return new QPageSetupDialog(); } -QPageSetupDialog* QPageSetupDialog_new3(QPrinter* printer, QWidget* parent) { +QPageSetupDialog* QPageSetupDialog_new4(QPrinter* printer, QWidget* parent) { return new QPageSetupDialog(printer, parent); } -QPageSetupDialog* QPageSetupDialog_new4(QWidget* parent) { - return new QPageSetupDialog(parent); -} - QMetaObject* QPageSetupDialog_MetaObject(const QPageSetupDialog* self) { return (QMetaObject*) self->metaObject(); } diff --git a/qt6/qprintsupport/gen_qpagesetupdialog.go b/qt6/qprintsupport/gen_qpagesetupdialog.go index 746cba74..c7507c07 100644 --- a/qt6/qprintsupport/gen_qpagesetupdialog.go +++ b/qt6/qprintsupport/gen_qpagesetupdialog.go @@ -45,26 +45,26 @@ func UnsafeNewQPageSetupDialog(h unsafe.Pointer) *QPageSetupDialog { } // NewQPageSetupDialog constructs a new QPageSetupDialog object. -func NewQPageSetupDialog(printer *QPrinter) *QPageSetupDialog { - ret := C.QPageSetupDialog_new(printer.cPointer()) +func NewQPageSetupDialog(parent *qt6.QWidget) *QPageSetupDialog { + ret := C.QPageSetupDialog_new((*C.QWidget)(parent.UnsafePointer())) return newQPageSetupDialog(ret) } // NewQPageSetupDialog2 constructs a new QPageSetupDialog object. -func NewQPageSetupDialog2() *QPageSetupDialog { - ret := C.QPageSetupDialog_new2() +func NewQPageSetupDialog2(printer *QPrinter) *QPageSetupDialog { + ret := C.QPageSetupDialog_new2(printer.cPointer()) return newQPageSetupDialog(ret) } // NewQPageSetupDialog3 constructs a new QPageSetupDialog object. -func NewQPageSetupDialog3(printer *QPrinter, parent *qt6.QWidget) *QPageSetupDialog { - ret := C.QPageSetupDialog_new3(printer.cPointer(), (*C.QWidget)(parent.UnsafePointer())) +func NewQPageSetupDialog3() *QPageSetupDialog { + ret := C.QPageSetupDialog_new3() return newQPageSetupDialog(ret) } // NewQPageSetupDialog4 constructs a new QPageSetupDialog object. -func NewQPageSetupDialog4(parent *qt6.QWidget) *QPageSetupDialog { - ret := C.QPageSetupDialog_new4((*C.QWidget)(parent.UnsafePointer())) +func NewQPageSetupDialog4(printer *QPrinter, parent *qt6.QWidget) *QPageSetupDialog { + ret := C.QPageSetupDialog_new4(printer.cPointer(), (*C.QWidget)(parent.UnsafePointer())) return newQPageSetupDialog(ret) } diff --git a/qt6/qprintsupport/gen_qpagesetupdialog.h b/qt6/qprintsupport/gen_qpagesetupdialog.h index 649577c3..f2c609fa 100644 --- a/qt6/qprintsupport/gen_qpagesetupdialog.h +++ b/qt6/qprintsupport/gen_qpagesetupdialog.h @@ -25,10 +25,10 @@ typedef struct QPrinter QPrinter; typedef struct QWidget QWidget; #endif -QPageSetupDialog* QPageSetupDialog_new(QPrinter* printer); -QPageSetupDialog* QPageSetupDialog_new2(); -QPageSetupDialog* QPageSetupDialog_new3(QPrinter* printer, QWidget* parent); -QPageSetupDialog* QPageSetupDialog_new4(QWidget* parent); +QPageSetupDialog* QPageSetupDialog_new(QWidget* parent); +QPageSetupDialog* QPageSetupDialog_new2(QPrinter* printer); +QPageSetupDialog* QPageSetupDialog_new3(); +QPageSetupDialog* QPageSetupDialog_new4(QPrinter* printer, QWidget* parent); QMetaObject* QPageSetupDialog_MetaObject(const QPageSetupDialog* self); void* QPageSetupDialog_Metacast(QPageSetupDialog* self, const char* param1); struct miqt_string QPageSetupDialog_Tr(const char* s); diff --git a/qt6/qprintsupport/gen_qprintdialog.cpp b/qt6/qprintsupport/gen_qprintdialog.cpp index 556bf216..6c722dff 100644 --- a/qt6/qprintsupport/gen_qprintdialog.cpp +++ b/qt6/qprintsupport/gen_qprintdialog.cpp @@ -9,22 +9,22 @@ #include "gen_qprintdialog.h" #include "_cgo_export.h" -QPrintDialog* QPrintDialog_new(QPrinter* printer) { +QPrintDialog* QPrintDialog_new(QWidget* parent) { + return new QPrintDialog(parent); +} + +QPrintDialog* QPrintDialog_new2(QPrinter* printer) { return new QPrintDialog(printer); } -QPrintDialog* QPrintDialog_new2() { +QPrintDialog* QPrintDialog_new3() { return new QPrintDialog(); } -QPrintDialog* QPrintDialog_new3(QPrinter* printer, QWidget* parent) { +QPrintDialog* QPrintDialog_new4(QPrinter* printer, QWidget* parent) { return new QPrintDialog(printer, parent); } -QPrintDialog* QPrintDialog_new4(QWidget* parent) { - return new QPrintDialog(parent); -} - QMetaObject* QPrintDialog_MetaObject(const QPrintDialog* self) { return (QMetaObject*) self->metaObject(); } diff --git a/qt6/qprintsupport/gen_qprintdialog.go b/qt6/qprintsupport/gen_qprintdialog.go index aa953c8b..f1f8424c 100644 --- a/qt6/qprintsupport/gen_qprintdialog.go +++ b/qt6/qprintsupport/gen_qprintdialog.go @@ -46,26 +46,26 @@ func UnsafeNewQPrintDialog(h unsafe.Pointer) *QPrintDialog { } // NewQPrintDialog constructs a new QPrintDialog object. -func NewQPrintDialog(printer *QPrinter) *QPrintDialog { - ret := C.QPrintDialog_new(printer.cPointer()) +func NewQPrintDialog(parent *qt6.QWidget) *QPrintDialog { + ret := C.QPrintDialog_new((*C.QWidget)(parent.UnsafePointer())) return newQPrintDialog(ret) } // NewQPrintDialog2 constructs a new QPrintDialog object. -func NewQPrintDialog2() *QPrintDialog { - ret := C.QPrintDialog_new2() +func NewQPrintDialog2(printer *QPrinter) *QPrintDialog { + ret := C.QPrintDialog_new2(printer.cPointer()) return newQPrintDialog(ret) } // NewQPrintDialog3 constructs a new QPrintDialog object. -func NewQPrintDialog3(printer *QPrinter, parent *qt6.QWidget) *QPrintDialog { - ret := C.QPrintDialog_new3(printer.cPointer(), (*C.QWidget)(parent.UnsafePointer())) +func NewQPrintDialog3() *QPrintDialog { + ret := C.QPrintDialog_new3() return newQPrintDialog(ret) } // NewQPrintDialog4 constructs a new QPrintDialog object. -func NewQPrintDialog4(parent *qt6.QWidget) *QPrintDialog { - ret := C.QPrintDialog_new4((*C.QWidget)(parent.UnsafePointer())) +func NewQPrintDialog4(printer *QPrinter, parent *qt6.QWidget) *QPrintDialog { + ret := C.QPrintDialog_new4(printer.cPointer(), (*C.QWidget)(parent.UnsafePointer())) return newQPrintDialog(ret) } diff --git a/qt6/qprintsupport/gen_qprintdialog.h b/qt6/qprintsupport/gen_qprintdialog.h index 51400b8a..753bca74 100644 --- a/qt6/qprintsupport/gen_qprintdialog.h +++ b/qt6/qprintsupport/gen_qprintdialog.h @@ -25,10 +25,10 @@ typedef struct QPrinter QPrinter; typedef struct QWidget QWidget; #endif -QPrintDialog* QPrintDialog_new(QPrinter* printer); -QPrintDialog* QPrintDialog_new2(); -QPrintDialog* QPrintDialog_new3(QPrinter* printer, QWidget* parent); -QPrintDialog* QPrintDialog_new4(QWidget* parent); +QPrintDialog* QPrintDialog_new(QWidget* parent); +QPrintDialog* QPrintDialog_new2(QPrinter* printer); +QPrintDialog* QPrintDialog_new3(); +QPrintDialog* QPrintDialog_new4(QPrinter* printer, QWidget* parent); QMetaObject* QPrintDialog_MetaObject(const QPrintDialog* self); void* QPrintDialog_Metacast(QPrintDialog* self, const char* param1); struct miqt_string QPrintDialog_Tr(const char* s); diff --git a/qt6/qprintsupport/gen_qprintpreviewdialog.cpp b/qt6/qprintsupport/gen_qprintpreviewdialog.cpp index 26e76f2c..c6fe573b 100644 --- a/qt6/qprintsupport/gen_qprintpreviewdialog.cpp +++ b/qt6/qprintsupport/gen_qprintpreviewdialog.cpp @@ -9,16 +9,16 @@ #include "gen_qprintpreviewdialog.h" #include "_cgo_export.h" -QPrintPreviewDialog* QPrintPreviewDialog_new() { - return new QPrintPreviewDialog(); +QPrintPreviewDialog* QPrintPreviewDialog_new(QWidget* parent) { + return new QPrintPreviewDialog(parent); } -QPrintPreviewDialog* QPrintPreviewDialog_new2(QPrinter* printer) { - return new QPrintPreviewDialog(printer); +QPrintPreviewDialog* QPrintPreviewDialog_new2() { + return new QPrintPreviewDialog(); } -QPrintPreviewDialog* QPrintPreviewDialog_new3(QWidget* parent) { - return new QPrintPreviewDialog(parent); +QPrintPreviewDialog* QPrintPreviewDialog_new3(QPrinter* printer) { + return new QPrintPreviewDialog(printer); } QPrintPreviewDialog* QPrintPreviewDialog_new4(QWidget* parent, int flags) { diff --git a/qt6/qprintsupport/gen_qprintpreviewdialog.go b/qt6/qprintsupport/gen_qprintpreviewdialog.go index 19483827..bb04f49b 100644 --- a/qt6/qprintsupport/gen_qprintpreviewdialog.go +++ b/qt6/qprintsupport/gen_qprintpreviewdialog.go @@ -46,20 +46,20 @@ func UnsafeNewQPrintPreviewDialog(h unsafe.Pointer) *QPrintPreviewDialog { } // NewQPrintPreviewDialog constructs a new QPrintPreviewDialog object. -func NewQPrintPreviewDialog() *QPrintPreviewDialog { - ret := C.QPrintPreviewDialog_new() +func NewQPrintPreviewDialog(parent *qt6.QWidget) *QPrintPreviewDialog { + ret := C.QPrintPreviewDialog_new((*C.QWidget)(parent.UnsafePointer())) return newQPrintPreviewDialog(ret) } // NewQPrintPreviewDialog2 constructs a new QPrintPreviewDialog object. -func NewQPrintPreviewDialog2(printer *QPrinter) *QPrintPreviewDialog { - ret := C.QPrintPreviewDialog_new2(printer.cPointer()) +func NewQPrintPreviewDialog2() *QPrintPreviewDialog { + ret := C.QPrintPreviewDialog_new2() return newQPrintPreviewDialog(ret) } // NewQPrintPreviewDialog3 constructs a new QPrintPreviewDialog object. -func NewQPrintPreviewDialog3(parent *qt6.QWidget) *QPrintPreviewDialog { - ret := C.QPrintPreviewDialog_new3((*C.QWidget)(parent.UnsafePointer())) +func NewQPrintPreviewDialog3(printer *QPrinter) *QPrintPreviewDialog { + ret := C.QPrintPreviewDialog_new3(printer.cPointer()) return newQPrintPreviewDialog(ret) } diff --git a/qt6/qprintsupport/gen_qprintpreviewdialog.h b/qt6/qprintsupport/gen_qprintpreviewdialog.h index e69a4796..f17ae8e7 100644 --- a/qt6/qprintsupport/gen_qprintpreviewdialog.h +++ b/qt6/qprintsupport/gen_qprintpreviewdialog.h @@ -25,9 +25,9 @@ typedef struct QPrinter QPrinter; typedef struct QWidget QWidget; #endif -QPrintPreviewDialog* QPrintPreviewDialog_new(); -QPrintPreviewDialog* QPrintPreviewDialog_new2(QPrinter* printer); -QPrintPreviewDialog* QPrintPreviewDialog_new3(QWidget* parent); +QPrintPreviewDialog* QPrintPreviewDialog_new(QWidget* parent); +QPrintPreviewDialog* QPrintPreviewDialog_new2(); +QPrintPreviewDialog* QPrintPreviewDialog_new3(QPrinter* printer); QPrintPreviewDialog* QPrintPreviewDialog_new4(QWidget* parent, int flags); QPrintPreviewDialog* QPrintPreviewDialog_new5(QPrinter* printer, QWidget* parent); QPrintPreviewDialog* QPrintPreviewDialog_new6(QPrinter* printer, QWidget* parent, int flags); diff --git a/qt6/qprintsupport/gen_qprintpreviewwidget.cpp b/qt6/qprintsupport/gen_qprintpreviewwidget.cpp index eb5bc752..7e236008 100644 --- a/qt6/qprintsupport/gen_qprintpreviewwidget.cpp +++ b/qt6/qprintsupport/gen_qprintpreviewwidget.cpp @@ -9,26 +9,26 @@ #include "gen_qprintpreviewwidget.h" #include "_cgo_export.h" -QPrintPreviewWidget* QPrintPreviewWidget_new(QPrinter* printer) { +QPrintPreviewWidget* QPrintPreviewWidget_new(QWidget* parent) { + return new QPrintPreviewWidget(parent); +} + +QPrintPreviewWidget* QPrintPreviewWidget_new2(QPrinter* printer) { return new QPrintPreviewWidget(printer); } -QPrintPreviewWidget* QPrintPreviewWidget_new2() { +QPrintPreviewWidget* QPrintPreviewWidget_new3() { return new QPrintPreviewWidget(); } -QPrintPreviewWidget* QPrintPreviewWidget_new3(QPrinter* printer, QWidget* parent) { +QPrintPreviewWidget* QPrintPreviewWidget_new4(QPrinter* printer, QWidget* parent) { return new QPrintPreviewWidget(printer, parent); } -QPrintPreviewWidget* QPrintPreviewWidget_new4(QPrinter* printer, QWidget* parent, int flags) { +QPrintPreviewWidget* QPrintPreviewWidget_new5(QPrinter* printer, QWidget* parent, int flags) { return new QPrintPreviewWidget(printer, parent, static_cast(flags)); } -QPrintPreviewWidget* QPrintPreviewWidget_new5(QWidget* parent) { - return new QPrintPreviewWidget(parent); -} - QPrintPreviewWidget* QPrintPreviewWidget_new6(QWidget* parent, int flags) { return new QPrintPreviewWidget(parent, static_cast(flags)); } diff --git a/qt6/qprintsupport/gen_qprintpreviewwidget.go b/qt6/qprintsupport/gen_qprintpreviewwidget.go index e47c17cf..f8e659be 100644 --- a/qt6/qprintsupport/gen_qprintpreviewwidget.go +++ b/qt6/qprintsupport/gen_qprintpreviewwidget.go @@ -62,32 +62,32 @@ func UnsafeNewQPrintPreviewWidget(h unsafe.Pointer) *QPrintPreviewWidget { } // NewQPrintPreviewWidget constructs a new QPrintPreviewWidget object. -func NewQPrintPreviewWidget(printer *QPrinter) *QPrintPreviewWidget { - ret := C.QPrintPreviewWidget_new(printer.cPointer()) +func NewQPrintPreviewWidget(parent *qt6.QWidget) *QPrintPreviewWidget { + ret := C.QPrintPreviewWidget_new((*C.QWidget)(parent.UnsafePointer())) return newQPrintPreviewWidget(ret) } // NewQPrintPreviewWidget2 constructs a new QPrintPreviewWidget object. -func NewQPrintPreviewWidget2() *QPrintPreviewWidget { - ret := C.QPrintPreviewWidget_new2() +func NewQPrintPreviewWidget2(printer *QPrinter) *QPrintPreviewWidget { + ret := C.QPrintPreviewWidget_new2(printer.cPointer()) return newQPrintPreviewWidget(ret) } // NewQPrintPreviewWidget3 constructs a new QPrintPreviewWidget object. -func NewQPrintPreviewWidget3(printer *QPrinter, parent *qt6.QWidget) *QPrintPreviewWidget { - ret := C.QPrintPreviewWidget_new3(printer.cPointer(), (*C.QWidget)(parent.UnsafePointer())) +func NewQPrintPreviewWidget3() *QPrintPreviewWidget { + ret := C.QPrintPreviewWidget_new3() return newQPrintPreviewWidget(ret) } // NewQPrintPreviewWidget4 constructs a new QPrintPreviewWidget object. -func NewQPrintPreviewWidget4(printer *QPrinter, parent *qt6.QWidget, flags qt6.WindowType) *QPrintPreviewWidget { - ret := C.QPrintPreviewWidget_new4(printer.cPointer(), (*C.QWidget)(parent.UnsafePointer()), (C.int)(flags)) +func NewQPrintPreviewWidget4(printer *QPrinter, parent *qt6.QWidget) *QPrintPreviewWidget { + ret := C.QPrintPreviewWidget_new4(printer.cPointer(), (*C.QWidget)(parent.UnsafePointer())) return newQPrintPreviewWidget(ret) } // NewQPrintPreviewWidget5 constructs a new QPrintPreviewWidget object. -func NewQPrintPreviewWidget5(parent *qt6.QWidget) *QPrintPreviewWidget { - ret := C.QPrintPreviewWidget_new5((*C.QWidget)(parent.UnsafePointer())) +func NewQPrintPreviewWidget5(printer *QPrinter, parent *qt6.QWidget, flags qt6.WindowType) *QPrintPreviewWidget { + ret := C.QPrintPreviewWidget_new5(printer.cPointer(), (*C.QWidget)(parent.UnsafePointer()), (C.int)(flags)) return newQPrintPreviewWidget(ret) } diff --git a/qt6/qprintsupport/gen_qprintpreviewwidget.h b/qt6/qprintsupport/gen_qprintpreviewwidget.h index c4e72a98..93161ff8 100644 --- a/qt6/qprintsupport/gen_qprintpreviewwidget.h +++ b/qt6/qprintsupport/gen_qprintpreviewwidget.h @@ -25,11 +25,11 @@ typedef struct QPrinter QPrinter; typedef struct QWidget QWidget; #endif -QPrintPreviewWidget* QPrintPreviewWidget_new(QPrinter* printer); -QPrintPreviewWidget* QPrintPreviewWidget_new2(); -QPrintPreviewWidget* QPrintPreviewWidget_new3(QPrinter* printer, QWidget* parent); -QPrintPreviewWidget* QPrintPreviewWidget_new4(QPrinter* printer, QWidget* parent, int flags); -QPrintPreviewWidget* QPrintPreviewWidget_new5(QWidget* parent); +QPrintPreviewWidget* QPrintPreviewWidget_new(QWidget* parent); +QPrintPreviewWidget* QPrintPreviewWidget_new2(QPrinter* printer); +QPrintPreviewWidget* QPrintPreviewWidget_new3(); +QPrintPreviewWidget* QPrintPreviewWidget_new4(QPrinter* printer, QWidget* parent); +QPrintPreviewWidget* QPrintPreviewWidget_new5(QPrinter* printer, QWidget* parent, int flags); QPrintPreviewWidget* QPrintPreviewWidget_new6(QWidget* parent, int flags); QMetaObject* QPrintPreviewWidget_MetaObject(const QPrintPreviewWidget* self); void* QPrintPreviewWidget_Metacast(QPrintPreviewWidget* self, const char* param1);