From f6d1ef8ade89455d3bdebff3e3051e3638b01fce Mon Sep 17 00:00:00 2001 From: mappu Date: Wed, 18 Sep 2024 13:33:50 +1200 Subject: [PATCH] genbindings/go: fix missing type cast calling go->cabi --- cmd/genbindings/emitgo.go | 2 +- qt/gen_qabstracteventdispatcher.go | 2 +- qt/gen_qabstractitemmodel.go | 4 +- qt/gen_qabstractitemview.go | 2 +- qt/gen_qabstractscrollarea.go | 4 +- qt/gen_qabstractspinbox.go | 2 +- qt/gen_qarraydata.go | 4 +- qt/gen_qbitmap.go | 2 +- qt/gen_qboxlayout.go | 4 +- qt/gen_qbuffer.go | 2 +- qt/gen_qbytearray.go | 6 +-- qt/gen_qcborvalue.go | 12 ++--- qt/gen_qcolordialog.go | 4 +- qt/gen_qcombobox.go | 4 +- qt/gen_qcommandlineoption.go | 2 +- qt/gen_qcompleter.go | 2 +- qt/gen_qcoreapplication.go | 4 +- qt/gen_qdatastream.go | 2 +- qt/gen_qdialog.go | 2 +- qt/gen_qdialogbuttonbox.go | 10 ++-- qt/gen_qdir.go | 26 ++++----- qt/gen_qdiriterator.go | 12 ++--- qt/gen_qdirmodel.go | 8 +-- qt/gen_qdockwidget.go | 12 ++--- qt/gen_qdrag.go | 6 +-- qt/gen_qevent.go | 86 +++++++++++++++--------------- qt/gen_qeventloop.go | 6 +-- qt/gen_qfile.go | 10 ++-- qt/gen_qfiledevice.go | 2 +- qt/gen_qfiledialog.go | 12 ++--- qt/gen_qfileiconprovider.go | 2 +- qt/gen_qfileinfo.go | 2 +- qt/gen_qfilesystemmodel.go | 4 +- qt/gen_qfontcombobox.go | 2 +- qt/gen_qfontdialog.go | 4 +- qt/gen_qformlayout.go | 4 +- qt/gen_qframe.go | 2 +- qt/gen_qgesture.go | 4 +- qt/gen_qglyphrun.go | 2 +- qt/gen_qgraphicsanchorlayout.go | 2 +- qt/gen_qgraphicseffect.go | 4 +- qt/gen_qgraphicsgridlayout.go | 10 ++-- qt/gen_qgraphicsitem.go | 10 ++-- qt/gen_qgraphicslinearlayout.go | 2 +- qt/gen_qgraphicsproxywidget.go | 2 +- qt/gen_qgraphicsscene.go | 6 +-- qt/gen_qgraphicssceneevent.go | 20 +++---- qt/gen_qgraphicsview.go | 10 ++-- qt/gen_qgraphicswidget.go | 4 +- qt/gen_qgridlayout.go | 10 ++-- qt/gen_qheaderview.go | 2 +- qt/gen_qicon.go | 12 ++--- qt/gen_qidentityproxymodel.go | 2 +- qt/gen_qimage.go | 8 +-- qt/gen_qimagewriter.go | 2 +- qt/gen_qinputdialog.go | 22 ++++---- qt/gen_qinputmethod.go | 2 +- qt/gen_qiodevice.go | 2 +- qt/gen_qitemselectionmodel.go | 4 +- qt/gen_qkeyeventtransition.go | 2 +- qt/gen_qlabel.go | 8 +-- qt/gen_qlayout.go | 6 +-- qt/gen_qlayoutitem.go | 2 +- qt/gen_qlibrary.go | 2 +- qt/gen_qlineedit.go | 2 +- qt/gen_qlistview.go | 2 +- qt/gen_qlistwidget.go | 8 +-- qt/gen_qlocale.go | 6 +-- qt/gen_qmainwindow.go | 6 +-- qt/gen_qmdiarea.go | 2 +- qt/gen_qmdisubwindow.go | 4 +- qt/gen_qmessagebox.go | 28 +++++----- qt/gen_qmouseeventtransition.go | 2 +- qt/gen_qpaintengine.go | 10 ++-- qt/gen_qpainter.go | 16 +++--- qt/gen_qpixmap.go | 14 ++--- qt/gen_qplaintextedit.go | 8 +-- qt/gen_qpluginloader.go | 2 +- qt/gen_qprocess.go | 12 ++--- qt/gen_qprogressbar.go | 2 +- qt/gen_qprogressdialog.go | 4 +- qt/gen_qrawfont.go | 4 +- qt/gen_qregularexpression.go | 8 +-- qt/gen_qsavefile.go | 2 +- qt/gen_qscreen.go | 2 +- qt/gen_qscrollarea.go | 2 +- qt/gen_qsortfilterproxymodel.go | 2 +- qt/gen_qsplashscreen.go | 6 +-- qt/gen_qstandarditemmodel.go | 8 +-- qt/gen_qstandardpaths.go | 4 +- qt/gen_qstyle.go | 10 ++-- qt/gen_qsurfaceformat.go | 8 +-- qt/gen_qtablewidget.go | 8 +-- qt/gen_qtextcodec.go | 10 ++-- qt/gen_qtextdocument.go | 16 +++--- qt/gen_qtextedit.go | 14 ++--- qt/gen_qtextformat.go | 8 +-- qt/gen_qtextoption.go | 6 +-- qt/gen_qtextstream.go | 6 +-- qt/gen_qtoolbar.go | 4 +- qt/gen_qtoolbox.go | 2 +- qt/gen_qtouchdevice.go | 2 +- qt/gen_qtreewidget.go | 8 +-- qt/gen_qtreewidgetitemiterator.go | 4 +- qt/gen_qurl.go | 22 ++++---- qt/gen_qurlquery.go | 8 +-- qt/gen_qwidget.go | 22 ++++---- qt/gen_qwindow.go | 6 +-- qt/gen_qwizard.go | 4 +- 109 files changed, 386 insertions(+), 386 deletions(-) diff --git a/cmd/genbindings/emitgo.go b/cmd/genbindings/emitgo.go index ee42a6c3..86a9b9e6 100644 --- a/cmd/genbindings/emitgo.go +++ b/cmd/genbindings/emitgo.go @@ -265,7 +265,7 @@ func (gfs *goFileState) emitParameterGo2CABIForwarding(p CppParameter) (preamble // We want our functions to accept the Go wrapper type, and forward as cPointer() rvalue = p.ParameterName + ".cPointer()" - } else if p.IntType() || p.ParameterType == "bool" { + } else if p.IntType() || p.IsFlagType() || p.IsKnownEnum() || p.ParameterType == "bool" { if p.Pointer || p.ByRef { gfs.imports["unsafe"] = struct{}{} rvalue = "(" + p.parameterTypeCgo() + ")(unsafe.Pointer(" + p.ParameterName + "))" // n.b. This may not work if the integer type conversion was wrong diff --git a/qt/gen_qabstracteventdispatcher.go b/qt/gen_qabstracteventdispatcher.go index dad69cfa..0ba25dfc 100644 --- a/qt/gen_qabstracteventdispatcher.go +++ b/qt/gen_qabstracteventdispatcher.go @@ -64,7 +64,7 @@ func QAbstractEventDispatcher_Instance() *QAbstractEventDispatcher { } func (this *QAbstractEventDispatcher) ProcessEvents(flags int) bool { - return (bool)(C.QAbstractEventDispatcher_ProcessEvents(this.h, flags)) + return (bool)(C.QAbstractEventDispatcher_ProcessEvents(this.h, (C.int)(flags))) } func (this *QAbstractEventDispatcher) HasPendingEvents() bool { diff --git a/qt/gen_qabstractitemmodel.go b/qt/gen_qabstractitemmodel.go index 39a54018..07d38579 100644 --- a/qt/gen_qabstractitemmodel.go +++ b/qt/gen_qabstractitemmodel.go @@ -778,7 +778,7 @@ func (this *QAbstractItemModel) Match4(start *QModelIndex, role int, value *QVar } func (this *QAbstractItemModel) Match5(start *QModelIndex, role int, value *QVariant, hits int, flags int) []QModelIndex { - var _ma *C.struct_miqt_array = C.QAbstractItemModel_Match5(this.h, start.cPointer(), (C.int)(role), value.cPointer(), (C.int)(hits), flags) + var _ma *C.struct_miqt_array = C.QAbstractItemModel_Match5(this.h, start.cPointer(), (C.int)(role), value.cPointer(), (C.int)(hits), (C.int)(flags)) _ret := make([]QModelIndex, int(_ma.len)) _outCast := (*[0xffff]*C.QModelIndex)(unsafe.Pointer(_ma.data)) // hey ya for i := 0; i < int(_ma.len); i++ { @@ -792,7 +792,7 @@ func (this *QAbstractItemModel) Match5(start *QModelIndex, role int, value *QVar } func (this *QAbstractItemModel) CheckIndex2(index *QModelIndex, options int) bool { - return (bool)(C.QAbstractItemModel_CheckIndex2(this.h, index.cPointer(), options)) + return (bool)(C.QAbstractItemModel_CheckIndex2(this.h, index.cPointer(), (C.int)(options))) } func (this *QAbstractItemModel) DataChanged3(topLeft *QModelIndex, bottomRight *QModelIndex, roles []int) { diff --git a/qt/gen_qabstractitemview.go b/qt/gen_qabstractitemview.go index 4895788f..146c22ff 100644 --- a/qt/gen_qabstractitemview.go +++ b/qt/gen_qabstractitemview.go @@ -170,7 +170,7 @@ func (this *QAbstractItemView) RootIndex() *QModelIndex { } func (this *QAbstractItemView) SetEditTriggers(triggers int) { - C.QAbstractItemView_SetEditTriggers(this.h, triggers) + C.QAbstractItemView_SetEditTriggers(this.h, (C.int)(triggers)) } func (this *QAbstractItemView) EditTriggers() int { diff --git a/qt/gen_qabstractscrollarea.go b/qt/gen_qabstractscrollarea.go index 27c7aafa..eaaf506b 100644 --- a/qt/gen_qabstractscrollarea.go +++ b/qt/gen_qabstractscrollarea.go @@ -119,11 +119,11 @@ func (this *QAbstractScrollArea) SetCornerWidget(widget *QWidget) { } func (this *QAbstractScrollArea) AddScrollBarWidget(widget *QWidget, alignment int) { - C.QAbstractScrollArea_AddScrollBarWidget(this.h, widget.cPointer(), alignment) + C.QAbstractScrollArea_AddScrollBarWidget(this.h, widget.cPointer(), (C.int)(alignment)) } func (this *QAbstractScrollArea) ScrollBarWidgets(alignment int) []*QWidget { - var _ma *C.struct_miqt_array = C.QAbstractScrollArea_ScrollBarWidgets(this.h, alignment) + var _ma *C.struct_miqt_array = C.QAbstractScrollArea_ScrollBarWidgets(this.h, (C.int)(alignment)) _ret := make([]*QWidget, int(_ma.len)) _outCast := (*[0xffff]*C.QWidget)(unsafe.Pointer(_ma.data)) // hey ya for i := 0; i < int(_ma.len); i++ { diff --git a/qt/gen_qabstractspinbox.go b/qt/gen_qabstractspinbox.go index dd421a1b..f6f1a48f 100644 --- a/qt/gen_qabstractspinbox.go +++ b/qt/gen_qabstractspinbox.go @@ -166,7 +166,7 @@ func (this *QAbstractSpinBox) KeyboardTracking() bool { } func (this *QAbstractSpinBox) SetAlignment(flag int) { - C.QAbstractSpinBox_SetAlignment(this.h, flag) + C.QAbstractSpinBox_SetAlignment(this.h, (C.int)(flag)) } func (this *QAbstractSpinBox) Alignment() int { diff --git a/qt/gen_qarraydata.go b/qt/gen_qarraydata.go index 6ec0c14f..73b402bc 100644 --- a/qt/gen_qarraydata.go +++ b/qt/gen_qarraydata.go @@ -87,11 +87,11 @@ func QArrayData_SharedNull() *QArrayData { } func QArrayData_Allocate4(objectSize uint64, alignment uint64, capacity uint64, options int) *QArrayData { - return newQArrayData_U(unsafe.Pointer(C.QArrayData_Allocate4((C.size_t)(objectSize), (C.size_t)(alignment), (C.size_t)(capacity), options))) + return newQArrayData_U(unsafe.Pointer(C.QArrayData_Allocate4((C.size_t)(objectSize), (C.size_t)(alignment), (C.size_t)(capacity), (C.int)(options)))) } func QArrayData_ReallocateUnaligned4(data *QArrayData, objectSize uint64, newCapacity uint64, newOptions int) *QArrayData { - return newQArrayData_U(unsafe.Pointer(C.QArrayData_ReallocateUnaligned4(data.cPointer(), (C.size_t)(objectSize), (C.size_t)(newCapacity), newOptions))) + return newQArrayData_U(unsafe.Pointer(C.QArrayData_ReallocateUnaligned4(data.cPointer(), (C.size_t)(objectSize), (C.size_t)(newCapacity), (C.int)(newOptions)))) } // Delete this object from C++ memory. diff --git a/qt/gen_qbitmap.go b/qt/gen_qbitmap.go index 91ec774b..9f114153 100644 --- a/qt/gen_qbitmap.go +++ b/qt/gen_qbitmap.go @@ -129,7 +129,7 @@ func (this *QBitmap) TransformedWithMatrix(matrix *QTransform) *QBitmap { } func QBitmap_FromImage2(image *QImage, flags int) *QBitmap { - _ret := C.QBitmap_FromImage2(image.cPointer(), flags) + _ret := C.QBitmap_FromImage2(image.cPointer(), (C.int)(flags)) _goptr := newQBitmap(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr diff --git a/qt/gen_qboxlayout.go b/qt/gen_qboxlayout.go index bbc49520..3016a7b7 100644 --- a/qt/gen_qboxlayout.go +++ b/qt/gen_qboxlayout.go @@ -275,7 +275,7 @@ func (this *QBoxLayout) AddWidget2(param1 *QWidget, stretch int) { } func (this *QBoxLayout) AddWidget3(param1 *QWidget, stretch int, alignment int) { - C.QBoxLayout_AddWidget3(this.h, param1.cPointer(), (C.int)(stretch), alignment) + C.QBoxLayout_AddWidget3(this.h, param1.cPointer(), (C.int)(stretch), (C.int)(alignment)) } func (this *QBoxLayout) AddLayout2(layout *QLayout, stretch int) { @@ -291,7 +291,7 @@ func (this *QBoxLayout) InsertWidget3(index int, widget *QWidget, stretch int) { } func (this *QBoxLayout) InsertWidget4(index int, widget *QWidget, stretch int, alignment int) { - C.QBoxLayout_InsertWidget4(this.h, (C.int)(index), widget.cPointer(), (C.int)(stretch), alignment) + C.QBoxLayout_InsertWidget4(this.h, (C.int)(index), widget.cPointer(), (C.int)(stretch), (C.int)(alignment)) } func (this *QBoxLayout) InsertLayout3(index int, layout *QLayout, stretch int) { diff --git a/qt/gen_qbuffer.go b/qt/gen_qbuffer.go index ec8ec162..c79615a2 100644 --- a/qt/gen_qbuffer.go +++ b/qt/gen_qbuffer.go @@ -109,7 +109,7 @@ func (this *QBuffer) Data() *QByteArray { } func (this *QBuffer) Open(openMode int) bool { - return (bool)(C.QBuffer_Open(this.h, openMode)) + return (bool)(C.QBuffer_Open(this.h, (C.int)(openMode))) } func (this *QBuffer) Close() { diff --git a/qt/gen_qbytearray.go b/qt/gen_qbytearray.go index c8d7ed0b..aa79bff5 100644 --- a/qt/gen_qbytearray.go +++ b/qt/gen_qbytearray.go @@ -764,7 +764,7 @@ func (this *QByteArray) ToDouble() float64 { } func (this *QByteArray) ToBase64(options int) *QByteArray { - _ret := C.QByteArray_ToBase64(this.h, options) + _ret := C.QByteArray_ToBase64(this.h, (C.int)(options)) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr @@ -888,7 +888,7 @@ func QByteArray_FromBase64Encoding(base64 *QByteArray) *QByteArray__FromBase64Re } func QByteArray_FromBase64(base64 *QByteArray, options int) *QByteArray { - _ret := C.QByteArray_FromBase64(base64.cPointer(), options) + _ret := C.QByteArray_FromBase64(base64.cPointer(), (C.int)(options)) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr @@ -1264,7 +1264,7 @@ func QByteArray_Number3(param1 float64, f byte, prec int) *QByteArray { } func QByteArray_FromBase64Encoding2(base64 *QByteArray, options int) *QByteArray__FromBase64Result { - _ret := C.QByteArray_FromBase64Encoding2(base64.cPointer(), options) + _ret := C.QByteArray_FromBase64Encoding2(base64.cPointer(), (C.int)(options)) _goptr := newQByteArray__FromBase64Result(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr diff --git a/qt/gen_qcborvalue.go b/qt/gen_qcborvalue.go index e7af73c1..5e5314e0 100644 --- a/qt/gen_qcborvalue.go +++ b/qt/gen_qcborvalue.go @@ -662,18 +662,18 @@ func QCborValue_FromCbor33(data *byte, lenVal uint64, error *QCborParserError) * } func (this *QCborValue) ToCbor1(opt int) *QByteArray { - _ret := C.QCborValue_ToCbor1(this.h, opt) + _ret := C.QCborValue_ToCbor1(this.h, (C.int)(opt)) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QCborValue) ToCbor2(writer *QCborStreamWriter, opt int) { - C.QCborValue_ToCbor2(this.h, writer.cPointer(), opt) + C.QCborValue_ToCbor2(this.h, writer.cPointer(), (C.int)(opt)) } func (this *QCborValue) ToDiagnosticNotation1(opts int) string { - var _ms *C.struct_miqt_string = C.QCborValue_ToDiagnosticNotation1(this.h, opts) + var _ms *C.struct_miqt_string = C.QCborValue_ToDiagnosticNotation1(this.h, (C.int)(opts)) _ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms)) return _ret @@ -1054,18 +1054,18 @@ func (this *QCborValueRef) ToUuid1(defaultValue *QUuid) *QUuid { } func (this *QCborValueRef) ToCbor1(opt int) *QByteArray { - _ret := C.QCborValueRef_ToCbor1(this.h, opt) + _ret := C.QCborValueRef_ToCbor1(this.h, (C.int)(opt)) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QCborValueRef) ToCbor2(writer *QCborStreamWriter, opt int) { - C.QCborValueRef_ToCbor2(this.h, writer.cPointer(), opt) + C.QCborValueRef_ToCbor2(this.h, writer.cPointer(), (C.int)(opt)) } func (this *QCborValueRef) ToDiagnosticNotation1(opt int) string { - var _ms *C.struct_miqt_string = C.QCborValueRef_ToDiagnosticNotation1(this.h, opt) + var _ms *C.struct_miqt_string = C.QCborValueRef_ToDiagnosticNotation1(this.h, (C.int)(opt)) _ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms)) return _ret diff --git a/qt/gen_qcolordialog.go b/qt/gen_qcolordialog.go index 1960205e..f61bb0b4 100644 --- a/qt/gen_qcolordialog.go +++ b/qt/gen_qcolordialog.go @@ -118,7 +118,7 @@ func (this *QColorDialog) TestOption(option QColorDialog__ColorDialogOption) boo } func (this *QColorDialog) SetOptions(options int) { - C.QColorDialog_SetOptions(this.h, options) + C.QColorDialog_SetOptions(this.h, (C.int)(options)) } func (this *QColorDialog) Options() int { @@ -280,7 +280,7 @@ func QColorDialog_GetColor3(initial *QColor, parent *QWidget, title string) *QCo func QColorDialog_GetColor4(initial *QColor, parent *QWidget, title string, options int) *QColor { title_ms := miqt_strdupg(title) defer C.free(title_ms) - _ret := C.QColorDialog_GetColor4(initial.cPointer(), parent.cPointer(), (*C.struct_miqt_string)(title_ms), options) + _ret := C.QColorDialog_GetColor4(initial.cPointer(), parent.cPointer(), (*C.struct_miqt_string)(title_ms), (C.int)(options)) _goptr := newQColor(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr diff --git a/qt/gen_qcombobox.go b/qt/gen_qcombobox.go index c3e1bc98..2ea7ecd4 100644 --- a/qt/gen_qcombobox.go +++ b/qt/gen_qcombobox.go @@ -736,7 +736,7 @@ func QComboBox_TrUtf83(s string, c string, n int) string { func (this *QComboBox) FindText2(text string, flags int) int { text_ms := miqt_strdupg(text) defer C.free(text_ms) - return (int)(C.QComboBox_FindText2(this.h, (*C.struct_miqt_string)(text_ms), flags)) + return (int)(C.QComboBox_FindText2(this.h, (*C.struct_miqt_string)(text_ms), (C.int)(flags))) } func (this *QComboBox) FindData2(data *QVariant, role int) int { @@ -744,7 +744,7 @@ func (this *QComboBox) FindData2(data *QVariant, role int) int { } func (this *QComboBox) FindData3(data *QVariant, role int, flags int) int { - return (int)(C.QComboBox_FindData3(this.h, data.cPointer(), (C.int)(role), flags)) + return (int)(C.QComboBox_FindData3(this.h, data.cPointer(), (C.int)(role), (C.int)(flags))) } func (this *QComboBox) CurrentData1(role int) *QVariant { diff --git a/qt/gen_qcommandlineoption.go b/qt/gen_qcommandlineoption.go index 77ec8a6c..29657955 100644 --- a/qt/gen_qcommandlineoption.go +++ b/qt/gen_qcommandlineoption.go @@ -255,7 +255,7 @@ func (this *QCommandLineOption) Flags() int { } func (this *QCommandLineOption) SetFlags(aflags int) { - C.QCommandLineOption_SetFlags(this.h, aflags) + C.QCommandLineOption_SetFlags(this.h, (C.int)(aflags)) } func (this *QCommandLineOption) SetHidden(hidden bool) { diff --git a/qt/gen_qcompleter.go b/qt/gen_qcompleter.go index 1930c8cd..87fedb83 100644 --- a/qt/gen_qcompleter.go +++ b/qt/gen_qcompleter.go @@ -156,7 +156,7 @@ func (this *QCompleter) CompletionMode() QCompleter__CompletionMode { } func (this *QCompleter) SetFilterMode(filterMode int) { - C.QCompleter_SetFilterMode(this.h, filterMode) + C.QCompleter_SetFilterMode(this.h, (C.int)(filterMode)) } func (this *QCompleter) FilterMode() int { diff --git a/qt/gen_qcoreapplication.go b/qt/gen_qcoreapplication.go index c608d0b2..3525b4a3 100644 --- a/qt/gen_qcoreapplication.go +++ b/qt/gen_qcoreapplication.go @@ -186,7 +186,7 @@ func QCoreApplication_ProcessEvents() { } func QCoreApplication_ProcessEvents2(flags int, maxtime int) { - C.QCoreApplication_ProcessEvents2(flags, (C.int)(maxtime)) + C.QCoreApplication_ProcessEvents2((C.int)(flags), (C.int)(maxtime)) } func QCoreApplication_Exit() { @@ -451,7 +451,7 @@ func QCoreApplication_SetAttribute2(attribute ApplicationAttribute, on bool) { } func QCoreApplication_ProcessEvents1(flags int) { - C.QCoreApplication_ProcessEvents1(flags) + C.QCoreApplication_ProcessEvents1((C.int)(flags)) } func QCoreApplication_Exit1(retcode int) { diff --git a/qt/gen_qdatastream.go b/qt/gen_qdatastream.go index 27636421..9711e91f 100644 --- a/qt/gen_qdatastream.go +++ b/qt/gen_qdatastream.go @@ -110,7 +110,7 @@ func NewQDataStream2(param1 *QIODevice) *QDataStream { // NewQDataStream3 constructs a new QDataStream object. func NewQDataStream3(param1 *QByteArray, flags int) *QDataStream { - ret := C.QDataStream_new3(param1.cPointer(), flags) + ret := C.QDataStream_new3(param1.cPointer(), (C.int)(flags)) return newQDataStream(ret) } diff --git a/qt/gen_qdialog.go b/qt/gen_qdialog.go index 8807c564..8ab10f64 100644 --- a/qt/gen_qdialog.go +++ b/qt/gen_qdialog.go @@ -58,7 +58,7 @@ func NewQDialog2(parent *QWidget) *QDialog { // NewQDialog3 constructs a new QDialog object. func NewQDialog3(parent *QWidget, f int) *QDialog { - ret := C.QDialog_new3(parent.cPointer(), f) + ret := C.QDialog_new3(parent.cPointer(), (C.int)(f)) return newQDialog(ret) } diff --git a/qt/gen_qdialogbuttonbox.go b/qt/gen_qdialogbuttonbox.go index 2adf4d7f..4203c804 100644 --- a/qt/gen_qdialogbuttonbox.go +++ b/qt/gen_qdialogbuttonbox.go @@ -103,13 +103,13 @@ func NewQDialogButtonBox2(orientation Orientation) *QDialogButtonBox { // NewQDialogButtonBox3 constructs a new QDialogButtonBox object. func NewQDialogButtonBox3(buttons int) *QDialogButtonBox { - ret := C.QDialogButtonBox_new3(buttons) + ret := C.QDialogButtonBox_new3((C.int)(buttons)) return newQDialogButtonBox(ret) } // NewQDialogButtonBox4 constructs a new QDialogButtonBox object. func NewQDialogButtonBox4(buttons int, orientation Orientation) *QDialogButtonBox { - ret := C.QDialogButtonBox_new4(buttons, (C.int)(orientation)) + ret := C.QDialogButtonBox_new4((C.int)(buttons), (C.int)(orientation)) return newQDialogButtonBox(ret) } @@ -127,13 +127,13 @@ func NewQDialogButtonBox6(orientation Orientation, parent *QWidget) *QDialogButt // NewQDialogButtonBox7 constructs a new QDialogButtonBox object. func NewQDialogButtonBox7(buttons int, parent *QWidget) *QDialogButtonBox { - ret := C.QDialogButtonBox_new7(buttons, parent.cPointer()) + ret := C.QDialogButtonBox_new7((C.int)(buttons), parent.cPointer()) return newQDialogButtonBox(ret) } // NewQDialogButtonBox8 constructs a new QDialogButtonBox object. func NewQDialogButtonBox8(buttons int, orientation Orientation, parent *QWidget) *QDialogButtonBox { - ret := C.QDialogButtonBox_new8(buttons, (C.int)(orientation), parent.cPointer()) + ret := C.QDialogButtonBox_new8((C.int)(buttons), (C.int)(orientation), parent.cPointer()) return newQDialogButtonBox(ret) } @@ -205,7 +205,7 @@ func (this *QDialogButtonBox) ButtonRole(button *QAbstractButton) QDialogButtonB } func (this *QDialogButtonBox) SetStandardButtons(buttons int) { - C.QDialogButtonBox_SetStandardButtons(this.h, buttons) + C.QDialogButtonBox_SetStandardButtons(this.h, (C.int)(buttons)) } func (this *QDialogButtonBox) StandardButtons() int { diff --git a/qt/gen_qdir.go b/qt/gen_qdir.go index 4015abb4..f191d637 100644 --- a/qt/gen_qdir.go +++ b/qt/gen_qdir.go @@ -113,7 +113,7 @@ func NewQDir5(path string, nameFilter string, sort int) *QDir { defer C.free(path_ms) nameFilter_ms := miqt_strdupg(nameFilter) defer C.free(nameFilter_ms) - ret := C.QDir_new5((*C.struct_miqt_string)(path_ms), (*C.struct_miqt_string)(nameFilter_ms), sort) + ret := C.QDir_new5((*C.struct_miqt_string)(path_ms), (*C.struct_miqt_string)(nameFilter_ms), (C.int)(sort)) return newQDir(ret) } @@ -123,7 +123,7 @@ func NewQDir6(path string, nameFilter string, sort int, filter int) *QDir { defer C.free(path_ms) nameFilter_ms := miqt_strdupg(nameFilter) defer C.free(nameFilter_ms) - ret := C.QDir_new6((*C.struct_miqt_string)(path_ms), (*C.struct_miqt_string)(nameFilter_ms), sort, filter) + ret := C.QDir_new6((*C.struct_miqt_string)(path_ms), (*C.struct_miqt_string)(nameFilter_ms), (C.int)(sort), (C.int)(filter)) return newQDir(ret) } @@ -309,7 +309,7 @@ func (this *QDir) Filter() int { } func (this *QDir) SetFilter(filter int) { - C.QDir_SetFilter(this.h, filter) + C.QDir_SetFilter(this.h, (C.int)(filter)) } func (this *QDir) Sorting() int { @@ -317,7 +317,7 @@ func (this *QDir) Sorting() int { } func (this *QDir) SetSorting(sort int) { - C.QDir_SetSorting(this.h, sort) + C.QDir_SetSorting(this.h, (C.int)(sort)) } func (this *QDir) Count() uint { @@ -647,11 +647,11 @@ func (this *QDir) Refresh() { } func (this *QDir) IsEmpty1(filters int) bool { - return (bool)(C.QDir_IsEmpty1(this.h, filters)) + return (bool)(C.QDir_IsEmpty1(this.h, (C.int)(filters))) } func (this *QDir) EntryList1(filters int) []string { - var _ma *C.struct_miqt_array = C.QDir_EntryList1(this.h, filters) + var _ma *C.struct_miqt_array = C.QDir_EntryList1(this.h, (C.int)(filters)) _ret := make([]string, int(_ma.len)) _outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya for i := 0; i < int(_ma.len); i++ { @@ -665,7 +665,7 @@ func (this *QDir) EntryList1(filters int) []string { } func (this *QDir) EntryList2(filters int, sort int) []string { - var _ma *C.struct_miqt_array = C.QDir_EntryList2(this.h, filters, sort) + var _ma *C.struct_miqt_array = C.QDir_EntryList2(this.h, (C.int)(filters), (C.int)(sort)) _ret := make([]string, int(_ma.len)) _outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya for i := 0; i < int(_ma.len); i++ { @@ -689,7 +689,7 @@ func (this *QDir) EntryList22(nameFilters []string, filters int) []string { } nameFilters_ma := &C.struct_miqt_array{len: C.size_t(len(nameFilters)), data: unsafe.Pointer(nameFilters_CArray)} defer runtime.KeepAlive(unsafe.Pointer(nameFilters_ma)) - var _ma *C.struct_miqt_array = C.QDir_EntryList22(this.h, nameFilters_ma, filters) + var _ma *C.struct_miqt_array = C.QDir_EntryList22(this.h, nameFilters_ma, (C.int)(filters)) _ret := make([]string, int(_ma.len)) _outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya for i := 0; i < int(_ma.len); i++ { @@ -713,7 +713,7 @@ func (this *QDir) EntryList3(nameFilters []string, filters int, sort int) []stri } nameFilters_ma := &C.struct_miqt_array{len: C.size_t(len(nameFilters)), data: unsafe.Pointer(nameFilters_CArray)} defer runtime.KeepAlive(unsafe.Pointer(nameFilters_ma)) - var _ma *C.struct_miqt_array = C.QDir_EntryList3(this.h, nameFilters_ma, filters, sort) + var _ma *C.struct_miqt_array = C.QDir_EntryList3(this.h, nameFilters_ma, (C.int)(filters), (C.int)(sort)) _ret := make([]string, int(_ma.len)) _outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya for i := 0; i < int(_ma.len); i++ { @@ -727,7 +727,7 @@ func (this *QDir) EntryList3(nameFilters []string, filters int, sort int) []stri } func (this *QDir) EntryInfoList1(filters int) []QFileInfo { - var _ma *C.struct_miqt_array = C.QDir_EntryInfoList1(this.h, filters) + var _ma *C.struct_miqt_array = C.QDir_EntryInfoList1(this.h, (C.int)(filters)) _ret := make([]QFileInfo, int(_ma.len)) _outCast := (*[0xffff]*C.QFileInfo)(unsafe.Pointer(_ma.data)) // hey ya for i := 0; i < int(_ma.len); i++ { @@ -741,7 +741,7 @@ func (this *QDir) EntryInfoList1(filters int) []QFileInfo { } func (this *QDir) EntryInfoList2(filters int, sort int) []QFileInfo { - var _ma *C.struct_miqt_array = C.QDir_EntryInfoList2(this.h, filters, sort) + var _ma *C.struct_miqt_array = C.QDir_EntryInfoList2(this.h, (C.int)(filters), (C.int)(sort)) _ret := make([]QFileInfo, int(_ma.len)) _outCast := (*[0xffff]*C.QFileInfo)(unsafe.Pointer(_ma.data)) // hey ya for i := 0; i < int(_ma.len); i++ { @@ -765,7 +765,7 @@ func (this *QDir) EntryInfoList22(nameFilters []string, filters int) []QFileInfo } nameFilters_ma := &C.struct_miqt_array{len: C.size_t(len(nameFilters)), data: unsafe.Pointer(nameFilters_CArray)} defer runtime.KeepAlive(unsafe.Pointer(nameFilters_ma)) - var _ma *C.struct_miqt_array = C.QDir_EntryInfoList22(this.h, nameFilters_ma, filters) + var _ma *C.struct_miqt_array = C.QDir_EntryInfoList22(this.h, nameFilters_ma, (C.int)(filters)) _ret := make([]QFileInfo, int(_ma.len)) _outCast := (*[0xffff]*C.QFileInfo)(unsafe.Pointer(_ma.data)) // hey ya for i := 0; i < int(_ma.len); i++ { @@ -789,7 +789,7 @@ func (this *QDir) EntryInfoList3(nameFilters []string, filters int, sort int) [] } nameFilters_ma := &C.struct_miqt_array{len: C.size_t(len(nameFilters)), data: unsafe.Pointer(nameFilters_CArray)} defer runtime.KeepAlive(unsafe.Pointer(nameFilters_ma)) - var _ma *C.struct_miqt_array = C.QDir_EntryInfoList3(this.h, nameFilters_ma, filters, sort) + var _ma *C.struct_miqt_array = C.QDir_EntryInfoList3(this.h, nameFilters_ma, (C.int)(filters), (C.int)(sort)) _ret := make([]QFileInfo, int(_ma.len)) _outCast := (*[0xffff]*C.QFileInfo)(unsafe.Pointer(_ma.data)) // hey ya for i := 0; i < int(_ma.len); i++ { diff --git a/qt/gen_qdiriterator.go b/qt/gen_qdiriterator.go index 06228b6d..679f5fe3 100644 --- a/qt/gen_qdiriterator.go +++ b/qt/gen_qdiriterator.go @@ -61,7 +61,7 @@ func NewQDirIterator2(path string) *QDirIterator { func NewQDirIterator3(path string, filter int) *QDirIterator { path_ms := miqt_strdupg(path) defer C.free(path_ms) - ret := C.QDirIterator_new3((*C.struct_miqt_string)(path_ms), filter) + ret := C.QDirIterator_new3((*C.struct_miqt_string)(path_ms), (C.int)(filter)) return newQDirIterator(ret) } @@ -85,7 +85,7 @@ func NewQDirIterator4(path string, nameFilters []string) *QDirIterator { // NewQDirIterator5 constructs a new QDirIterator object. func NewQDirIterator5(dir *QDir, flags int) *QDirIterator { - ret := C.QDirIterator_new5(dir.cPointer(), flags) + ret := C.QDirIterator_new5(dir.cPointer(), (C.int)(flags)) return newQDirIterator(ret) } @@ -93,7 +93,7 @@ func NewQDirIterator5(dir *QDir, flags int) *QDirIterator { func NewQDirIterator6(path string, flags int) *QDirIterator { path_ms := miqt_strdupg(path) defer C.free(path_ms) - ret := C.QDirIterator_new6((*C.struct_miqt_string)(path_ms), flags) + ret := C.QDirIterator_new6((*C.struct_miqt_string)(path_ms), (C.int)(flags)) return newQDirIterator(ret) } @@ -101,7 +101,7 @@ func NewQDirIterator6(path string, flags int) *QDirIterator { func NewQDirIterator7(path string, filter int, flags int) *QDirIterator { path_ms := miqt_strdupg(path) defer C.free(path_ms) - ret := C.QDirIterator_new7((*C.struct_miqt_string)(path_ms), filter, flags) + ret := C.QDirIterator_new7((*C.struct_miqt_string)(path_ms), (C.int)(filter), (C.int)(flags)) return newQDirIterator(ret) } @@ -119,7 +119,7 @@ func NewQDirIterator8(path string, nameFilters []string, filters int) *QDirItera } nameFilters_ma := &C.struct_miqt_array{len: C.size_t(len(nameFilters)), data: unsafe.Pointer(nameFilters_CArray)} defer runtime.KeepAlive(unsafe.Pointer(nameFilters_ma)) - ret := C.QDirIterator_new8((*C.struct_miqt_string)(path_ms), nameFilters_ma, filters) + ret := C.QDirIterator_new8((*C.struct_miqt_string)(path_ms), nameFilters_ma, (C.int)(filters)) return newQDirIterator(ret) } @@ -137,7 +137,7 @@ func NewQDirIterator9(path string, nameFilters []string, filters int, flags int) } nameFilters_ma := &C.struct_miqt_array{len: C.size_t(len(nameFilters)), data: unsafe.Pointer(nameFilters_CArray)} defer runtime.KeepAlive(unsafe.Pointer(nameFilters_ma)) - ret := C.QDirIterator_new9((*C.struct_miqt_string)(path_ms), nameFilters_ma, filters, flags) + ret := C.QDirIterator_new9((*C.struct_miqt_string)(path_ms), nameFilters_ma, (C.int)(filters), (C.int)(flags)) return newQDirIterator(ret) } diff --git a/qt/gen_qdirmodel.go b/qt/gen_qdirmodel.go index ca4d2a44..ad9ba0e6 100644 --- a/qt/gen_qdirmodel.go +++ b/qt/gen_qdirmodel.go @@ -56,7 +56,7 @@ func NewQDirModel(nameFilters []string, filters int, sort int) *QDirModel { } nameFilters_ma := &C.struct_miqt_array{len: C.size_t(len(nameFilters)), data: unsafe.Pointer(nameFilters_CArray)} defer runtime.KeepAlive(unsafe.Pointer(nameFilters_ma)) - ret := C.QDirModel_new(nameFilters_ma, filters, sort) + ret := C.QDirModel_new(nameFilters_ma, (C.int)(filters), (C.int)(sort)) return newQDirModel(ret) } @@ -78,7 +78,7 @@ func NewQDirModel3(nameFilters []string, filters int, sort int, parent *QObject) } nameFilters_ma := &C.struct_miqt_array{len: C.size_t(len(nameFilters)), data: unsafe.Pointer(nameFilters_CArray)} defer runtime.KeepAlive(unsafe.Pointer(nameFilters_ma)) - ret := C.QDirModel_new3(nameFilters_ma, filters, sort, parent.cPointer()) + ret := C.QDirModel_new3(nameFilters_ma, (C.int)(filters), (C.int)(sort), parent.cPointer()) return newQDirModel(ret) } @@ -233,7 +233,7 @@ func (this *QDirModel) NameFilters() []string { } func (this *QDirModel) SetFilter(filters int) { - C.QDirModel_SetFilter(this.h, filters) + C.QDirModel_SetFilter(this.h, (C.int)(filters)) } func (this *QDirModel) Filter() int { @@ -241,7 +241,7 @@ func (this *QDirModel) Filter() int { } func (this *QDirModel) SetSorting(sort int) { - C.QDirModel_SetSorting(this.h, sort) + C.QDirModel_SetSorting(this.h, (C.int)(sort)) } func (this *QDirModel) Sorting() int { diff --git a/qt/gen_qdockwidget.go b/qt/gen_qdockwidget.go index a11f2d7e..1b9bf655 100644 --- a/qt/gen_qdockwidget.go +++ b/qt/gen_qdockwidget.go @@ -76,7 +76,7 @@ func NewQDockWidget3(title string, parent *QWidget) *QDockWidget { func NewQDockWidget4(title string, parent *QWidget, flags int) *QDockWidget { title_ms := miqt_strdupg(title) defer C.free(title_ms) - ret := C.QDockWidget_new4((*C.struct_miqt_string)(title_ms), parent.cPointer(), flags) + ret := C.QDockWidget_new4((*C.struct_miqt_string)(title_ms), parent.cPointer(), (C.int)(flags)) return newQDockWidget(ret) } @@ -88,7 +88,7 @@ func NewQDockWidget5(parent *QWidget) *QDockWidget { // NewQDockWidget6 constructs a new QDockWidget object. func NewQDockWidget6(parent *QWidget, flags int) *QDockWidget { - ret := C.QDockWidget_new6(parent.cPointer(), flags) + ret := C.QDockWidget_new6(parent.cPointer(), (C.int)(flags)) return newQDockWidget(ret) } @@ -123,7 +123,7 @@ func (this *QDockWidget) SetWidget(widget *QWidget) { } func (this *QDockWidget) SetFeatures(features int) { - C.QDockWidget_SetFeatures(this.h, features) + C.QDockWidget_SetFeatures(this.h, (C.int)(features)) } func (this *QDockWidget) Features() int { @@ -139,7 +139,7 @@ func (this *QDockWidget) IsFloating() bool { } func (this *QDockWidget) SetAllowedAreas(areas int) { - C.QDockWidget_SetAllowedAreas(this.h, areas) + C.QDockWidget_SetAllowedAreas(this.h, (C.int)(areas)) } func (this *QDockWidget) AllowedAreas() int { @@ -163,7 +163,7 @@ func (this *QDockWidget) ToggleViewAction() *QAction { } func (this *QDockWidget) FeaturesChanged(features int) { - C.QDockWidget_FeaturesChanged(this.h, features) + C.QDockWidget_FeaturesChanged(this.h, (C.int)(features)) } func (this *QDockWidget) OnFeaturesChanged(slot func(features int)) { C.QDockWidget_connect_FeaturesChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) @@ -203,7 +203,7 @@ func miqt_exec_callback_QDockWidget_TopLevelChanged(cb *C.void, topLevel C.bool) } func (this *QDockWidget) AllowedAreasChanged(allowedAreas int) { - C.QDockWidget_AllowedAreasChanged(this.h, allowedAreas) + C.QDockWidget_AllowedAreasChanged(this.h, (C.int)(allowedAreas)) } func (this *QDockWidget) OnAllowedAreasChanged(slot func(allowedAreas int)) { C.QDockWidget_connect_AllowedAreasChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) diff --git a/qt/gen_qdrag.go b/qt/gen_qdrag.go index 9fc3a416..b292d895 100644 --- a/qt/gen_qdrag.go +++ b/qt/gen_qdrag.go @@ -112,7 +112,7 @@ func (this *QDrag) Exec() DropAction { } func (this *QDrag) Exec2(supportedActions int, defaultAction DropAction) DropAction { - return (DropAction)(C.QDrag_Exec2(this.h, supportedActions, (C.int)(defaultAction))) + return (DropAction)(C.QDrag_Exec2(this.h, (C.int)(supportedActions), (C.int)(defaultAction))) } func (this *QDrag) SetDragCursor(cursor *QPixmap, action DropAction) { @@ -223,11 +223,11 @@ func QDrag_TrUtf83(s string, c string, n int) string { } func (this *QDrag) Start1(supportedActions int) DropAction { - return (DropAction)(C.QDrag_Start1(this.h, supportedActions)) + return (DropAction)(C.QDrag_Start1(this.h, (C.int)(supportedActions))) } func (this *QDrag) Exec1(supportedActions int) DropAction { - return (DropAction)(C.QDrag_Exec1(this.h, supportedActions)) + return (DropAction)(C.QDrag_Exec1(this.h, (C.int)(supportedActions))) } // Delete this object from C++ memory. diff --git a/qt/gen_qevent.go b/qt/gen_qevent.go index 6d19fc45..5777f3e9 100644 --- a/qt/gen_qevent.go +++ b/qt/gen_qevent.go @@ -110,7 +110,7 @@ func NewQInputEvent2(param1 *QInputEvent) *QInputEvent { // NewQInputEvent3 constructs a new QInputEvent object. func NewQInputEvent3(typeVal QEvent__Type, modifiers int) *QInputEvent { - ret := C.QInputEvent_new3((C.int)(typeVal), modifiers) + ret := C.QInputEvent_new3((C.int)(typeVal), (C.int)(modifiers)) return newQInputEvent(ret) } @@ -119,7 +119,7 @@ func (this *QInputEvent) Modifiers() int { } func (this *QInputEvent) SetModifiers(amodifiers int) { - C.QInputEvent_SetModifiers(this.h, amodifiers) + C.QInputEvent_SetModifiers(this.h, (C.int)(amodifiers)) } func (this *QInputEvent) Timestamp() uint64 { @@ -260,25 +260,25 @@ func newQMouseEvent_U(h unsafe.Pointer) *QMouseEvent { // NewQMouseEvent constructs a new QMouseEvent object. func NewQMouseEvent(typeVal QEvent__Type, localPos *QPointF, button MouseButton, buttons int, modifiers int) *QMouseEvent { - ret := C.QMouseEvent_new((C.int)(typeVal), localPos.cPointer(), (C.int)(button), buttons, modifiers) + ret := C.QMouseEvent_new((C.int)(typeVal), localPos.cPointer(), (C.int)(button), (C.int)(buttons), (C.int)(modifiers)) return newQMouseEvent(ret) } // NewQMouseEvent2 constructs a new QMouseEvent object. func NewQMouseEvent2(typeVal QEvent__Type, localPos *QPointF, screenPos *QPointF, button MouseButton, buttons int, modifiers int) *QMouseEvent { - ret := C.QMouseEvent_new2((C.int)(typeVal), localPos.cPointer(), screenPos.cPointer(), (C.int)(button), buttons, modifiers) + ret := C.QMouseEvent_new2((C.int)(typeVal), localPos.cPointer(), screenPos.cPointer(), (C.int)(button), (C.int)(buttons), (C.int)(modifiers)) return newQMouseEvent(ret) } // NewQMouseEvent3 constructs a new QMouseEvent object. func NewQMouseEvent3(typeVal QEvent__Type, localPos *QPointF, windowPos *QPointF, screenPos *QPointF, button MouseButton, buttons int, modifiers int) *QMouseEvent { - ret := C.QMouseEvent_new3((C.int)(typeVal), localPos.cPointer(), windowPos.cPointer(), screenPos.cPointer(), (C.int)(button), buttons, modifiers) + ret := C.QMouseEvent_new3((C.int)(typeVal), localPos.cPointer(), windowPos.cPointer(), screenPos.cPointer(), (C.int)(button), (C.int)(buttons), (C.int)(modifiers)) return newQMouseEvent(ret) } // NewQMouseEvent4 constructs a new QMouseEvent object. func NewQMouseEvent4(typeVal QEvent__Type, localPos *QPointF, windowPos *QPointF, screenPos *QPointF, button MouseButton, buttons int, modifiers int, source MouseEventSource) *QMouseEvent { - ret := C.QMouseEvent_new4((C.int)(typeVal), localPos.cPointer(), windowPos.cPointer(), screenPos.cPointer(), (C.int)(button), buttons, modifiers, (C.int)(source)) + ret := C.QMouseEvent_new4((C.int)(typeVal), localPos.cPointer(), windowPos.cPointer(), screenPos.cPointer(), (C.int)(button), (C.int)(buttons), (C.int)(modifiers), (C.int)(source)) return newQMouseEvent(ret) } @@ -401,7 +401,7 @@ func NewQHoverEvent2(param1 *QHoverEvent) *QHoverEvent { // NewQHoverEvent3 constructs a new QHoverEvent object. func NewQHoverEvent3(typeVal QEvent__Type, pos *QPointF, oldPos *QPointF, modifiers int) *QHoverEvent { - ret := C.QHoverEvent_new3((C.int)(typeVal), pos.cPointer(), oldPos.cPointer(), modifiers) + ret := C.QHoverEvent_new3((C.int)(typeVal), pos.cPointer(), oldPos.cPointer(), (C.int)(modifiers)) return newQHoverEvent(ret) } @@ -466,43 +466,43 @@ func newQWheelEvent_U(h unsafe.Pointer) *QWheelEvent { // NewQWheelEvent constructs a new QWheelEvent object. func NewQWheelEvent(pos *QPointF, delta int, buttons int, modifiers int) *QWheelEvent { - ret := C.QWheelEvent_new(pos.cPointer(), (C.int)(delta), buttons, modifiers) + ret := C.QWheelEvent_new(pos.cPointer(), (C.int)(delta), (C.int)(buttons), (C.int)(modifiers)) return newQWheelEvent(ret) } // NewQWheelEvent2 constructs a new QWheelEvent object. func NewQWheelEvent2(pos *QPointF, globalPos *QPointF, delta int, buttons int, modifiers int) *QWheelEvent { - ret := C.QWheelEvent_new2(pos.cPointer(), globalPos.cPointer(), (C.int)(delta), buttons, modifiers) + ret := C.QWheelEvent_new2(pos.cPointer(), globalPos.cPointer(), (C.int)(delta), (C.int)(buttons), (C.int)(modifiers)) return newQWheelEvent(ret) } // NewQWheelEvent3 constructs a new QWheelEvent object. func NewQWheelEvent3(pos *QPointF, globalPos *QPointF, pixelDelta QPoint, angleDelta QPoint, qt4Delta int, qt4Orientation Orientation, buttons int, modifiers int) *QWheelEvent { - ret := C.QWheelEvent_new3(pos.cPointer(), globalPos.cPointer(), pixelDelta.cPointer(), angleDelta.cPointer(), (C.int)(qt4Delta), (C.int)(qt4Orientation), buttons, modifiers) + ret := C.QWheelEvent_new3(pos.cPointer(), globalPos.cPointer(), pixelDelta.cPointer(), angleDelta.cPointer(), (C.int)(qt4Delta), (C.int)(qt4Orientation), (C.int)(buttons), (C.int)(modifiers)) return newQWheelEvent(ret) } // NewQWheelEvent4 constructs a new QWheelEvent object. func NewQWheelEvent4(pos *QPointF, globalPos *QPointF, pixelDelta QPoint, angleDelta QPoint, qt4Delta int, qt4Orientation Orientation, buttons int, modifiers int, phase ScrollPhase) *QWheelEvent { - ret := C.QWheelEvent_new4(pos.cPointer(), globalPos.cPointer(), pixelDelta.cPointer(), angleDelta.cPointer(), (C.int)(qt4Delta), (C.int)(qt4Orientation), buttons, modifiers, (C.int)(phase)) + ret := C.QWheelEvent_new4(pos.cPointer(), globalPos.cPointer(), pixelDelta.cPointer(), angleDelta.cPointer(), (C.int)(qt4Delta), (C.int)(qt4Orientation), (C.int)(buttons), (C.int)(modifiers), (C.int)(phase)) return newQWheelEvent(ret) } // NewQWheelEvent5 constructs a new QWheelEvent object. func NewQWheelEvent5(pos *QPointF, globalPos *QPointF, pixelDelta QPoint, angleDelta QPoint, qt4Delta int, qt4Orientation Orientation, buttons int, modifiers int, phase ScrollPhase, source MouseEventSource) *QWheelEvent { - ret := C.QWheelEvent_new5(pos.cPointer(), globalPos.cPointer(), pixelDelta.cPointer(), angleDelta.cPointer(), (C.int)(qt4Delta), (C.int)(qt4Orientation), buttons, modifiers, (C.int)(phase), (C.int)(source)) + ret := C.QWheelEvent_new5(pos.cPointer(), globalPos.cPointer(), pixelDelta.cPointer(), angleDelta.cPointer(), (C.int)(qt4Delta), (C.int)(qt4Orientation), (C.int)(buttons), (C.int)(modifiers), (C.int)(phase), (C.int)(source)) return newQWheelEvent(ret) } // NewQWheelEvent6 constructs a new QWheelEvent object. func NewQWheelEvent6(pos *QPointF, globalPos *QPointF, pixelDelta QPoint, angleDelta QPoint, qt4Delta int, qt4Orientation Orientation, buttons int, modifiers int, phase ScrollPhase, source MouseEventSource, inverted bool) *QWheelEvent { - ret := C.QWheelEvent_new6(pos.cPointer(), globalPos.cPointer(), pixelDelta.cPointer(), angleDelta.cPointer(), (C.int)(qt4Delta), (C.int)(qt4Orientation), buttons, modifiers, (C.int)(phase), (C.int)(source), (C.bool)(inverted)) + ret := C.QWheelEvent_new6(pos.cPointer(), globalPos.cPointer(), pixelDelta.cPointer(), angleDelta.cPointer(), (C.int)(qt4Delta), (C.int)(qt4Orientation), (C.int)(buttons), (C.int)(modifiers), (C.int)(phase), (C.int)(source), (C.bool)(inverted)) return newQWheelEvent(ret) } // NewQWheelEvent7 constructs a new QWheelEvent object. func NewQWheelEvent7(pos QPointF, globalPos QPointF, pixelDelta QPoint, angleDelta QPoint, buttons int, modifiers int, phase ScrollPhase, inverted bool) *QWheelEvent { - ret := C.QWheelEvent_new7(pos.cPointer(), globalPos.cPointer(), pixelDelta.cPointer(), angleDelta.cPointer(), buttons, modifiers, (C.int)(phase), (C.bool)(inverted)) + ret := C.QWheelEvent_new7(pos.cPointer(), globalPos.cPointer(), pixelDelta.cPointer(), angleDelta.cPointer(), (C.int)(buttons), (C.int)(modifiers), (C.int)(phase), (C.bool)(inverted)) return newQWheelEvent(ret) } @@ -514,19 +514,19 @@ func NewQWheelEvent8(param1 *QWheelEvent) *QWheelEvent { // NewQWheelEvent9 constructs a new QWheelEvent object. func NewQWheelEvent9(pos *QPointF, delta int, buttons int, modifiers int, orient Orientation) *QWheelEvent { - ret := C.QWheelEvent_new9(pos.cPointer(), (C.int)(delta), buttons, modifiers, (C.int)(orient)) + ret := C.QWheelEvent_new9(pos.cPointer(), (C.int)(delta), (C.int)(buttons), (C.int)(modifiers), (C.int)(orient)) return newQWheelEvent(ret) } // NewQWheelEvent10 constructs a new QWheelEvent object. func NewQWheelEvent10(pos *QPointF, globalPos *QPointF, delta int, buttons int, modifiers int, orient Orientation) *QWheelEvent { - ret := C.QWheelEvent_new10(pos.cPointer(), globalPos.cPointer(), (C.int)(delta), buttons, modifiers, (C.int)(orient)) + ret := C.QWheelEvent_new10(pos.cPointer(), globalPos.cPointer(), (C.int)(delta), (C.int)(buttons), (C.int)(modifiers), (C.int)(orient)) return newQWheelEvent(ret) } // NewQWheelEvent11 constructs a new QWheelEvent object. func NewQWheelEvent11(pos QPointF, globalPos QPointF, pixelDelta QPoint, angleDelta QPoint, buttons int, modifiers int, phase ScrollPhase, inverted bool, source MouseEventSource) *QWheelEvent { - ret := C.QWheelEvent_new11(pos.cPointer(), globalPos.cPointer(), pixelDelta.cPointer(), angleDelta.cPointer(), buttons, modifiers, (C.int)(phase), (C.bool)(inverted), (C.int)(source)) + ret := C.QWheelEvent_new11(pos.cPointer(), globalPos.cPointer(), pixelDelta.cPointer(), angleDelta.cPointer(), (C.int)(buttons), (C.int)(modifiers), (C.int)(phase), (C.bool)(inverted), (C.int)(source)) return newQWheelEvent(ret) } @@ -659,13 +659,13 @@ func newQTabletEvent_U(h unsafe.Pointer) *QTabletEvent { // NewQTabletEvent constructs a new QTabletEvent object. func NewQTabletEvent(t QEvent__Type, pos *QPointF, globalPos *QPointF, device int, pointerType int, pressure float64, xTilt int, yTilt int, tangentialPressure float64, rotation float64, z int, keyState int, uniqueID int64) *QTabletEvent { - ret := C.QTabletEvent_new((C.int)(t), pos.cPointer(), globalPos.cPointer(), (C.int)(device), (C.int)(pointerType), (C.double)(pressure), (C.int)(xTilt), (C.int)(yTilt), (C.double)(tangentialPressure), (C.double)(rotation), (C.int)(z), keyState, (C.longlong)(uniqueID)) + ret := C.QTabletEvent_new((C.int)(t), pos.cPointer(), globalPos.cPointer(), (C.int)(device), (C.int)(pointerType), (C.double)(pressure), (C.int)(xTilt), (C.int)(yTilt), (C.double)(tangentialPressure), (C.double)(rotation), (C.int)(z), (C.int)(keyState), (C.longlong)(uniqueID)) return newQTabletEvent(ret) } // NewQTabletEvent2 constructs a new QTabletEvent object. func NewQTabletEvent2(t QEvent__Type, pos *QPointF, globalPos *QPointF, device int, pointerType int, pressure float64, xTilt int, yTilt int, tangentialPressure float64, rotation float64, z int, keyState int, uniqueID int64, button MouseButton, buttons int) *QTabletEvent { - ret := C.QTabletEvent_new2((C.int)(t), pos.cPointer(), globalPos.cPointer(), (C.int)(device), (C.int)(pointerType), (C.double)(pressure), (C.int)(xTilt), (C.int)(yTilt), (C.double)(tangentialPressure), (C.double)(rotation), (C.int)(z), keyState, (C.longlong)(uniqueID), (C.int)(button), buttons) + ret := C.QTabletEvent_new2((C.int)(t), pos.cPointer(), globalPos.cPointer(), (C.int)(device), (C.int)(pointerType), (C.double)(pressure), (C.int)(xTilt), (C.int)(yTilt), (C.double)(tangentialPressure), (C.double)(rotation), (C.int)(z), (C.int)(keyState), (C.longlong)(uniqueID), (C.int)(button), (C.int)(buttons)) return newQTabletEvent(ret) } @@ -901,13 +901,13 @@ func newQKeyEvent_U(h unsafe.Pointer) *QKeyEvent { // NewQKeyEvent constructs a new QKeyEvent object. func NewQKeyEvent(typeVal QEvent__Type, key int, modifiers int) *QKeyEvent { - ret := C.QKeyEvent_new((C.int)(typeVal), (C.int)(key), modifiers) + ret := C.QKeyEvent_new((C.int)(typeVal), (C.int)(key), (C.int)(modifiers)) return newQKeyEvent(ret) } // NewQKeyEvent2 constructs a new QKeyEvent object. func NewQKeyEvent2(typeVal QEvent__Type, key int, modifiers int, nativeScanCode uint, nativeVirtualKey uint, nativeModifiers uint) *QKeyEvent { - ret := C.QKeyEvent_new2((C.int)(typeVal), (C.int)(key), modifiers, (C.uint)(nativeScanCode), (C.uint)(nativeVirtualKey), (C.uint)(nativeModifiers)) + ret := C.QKeyEvent_new2((C.int)(typeVal), (C.int)(key), (C.int)(modifiers), (C.uint)(nativeScanCode), (C.uint)(nativeVirtualKey), (C.uint)(nativeModifiers)) return newQKeyEvent(ret) } @@ -921,7 +921,7 @@ func NewQKeyEvent3(param1 *QKeyEvent) *QKeyEvent { func NewQKeyEvent4(typeVal QEvent__Type, key int, modifiers int, text string) *QKeyEvent { text_ms := miqt_strdupg(text) defer C.free(text_ms) - ret := C.QKeyEvent_new4((C.int)(typeVal), (C.int)(key), modifiers, (*C.struct_miqt_string)(text_ms)) + ret := C.QKeyEvent_new4((C.int)(typeVal), (C.int)(key), (C.int)(modifiers), (*C.struct_miqt_string)(text_ms)) return newQKeyEvent(ret) } @@ -929,7 +929,7 @@ func NewQKeyEvent4(typeVal QEvent__Type, key int, modifiers int, text string) *Q func NewQKeyEvent5(typeVal QEvent__Type, key int, modifiers int, text string, autorep bool) *QKeyEvent { text_ms := miqt_strdupg(text) defer C.free(text_ms) - ret := C.QKeyEvent_new5((C.int)(typeVal), (C.int)(key), modifiers, (*C.struct_miqt_string)(text_ms), (C.bool)(autorep)) + ret := C.QKeyEvent_new5((C.int)(typeVal), (C.int)(key), (C.int)(modifiers), (*C.struct_miqt_string)(text_ms), (C.bool)(autorep)) return newQKeyEvent(ret) } @@ -937,7 +937,7 @@ func NewQKeyEvent5(typeVal QEvent__Type, key int, modifiers int, text string, au func NewQKeyEvent6(typeVal QEvent__Type, key int, modifiers int, text string, autorep bool, count uint16) *QKeyEvent { text_ms := miqt_strdupg(text) defer C.free(text_ms) - ret := C.QKeyEvent_new6((C.int)(typeVal), (C.int)(key), modifiers, (*C.struct_miqt_string)(text_ms), (C.bool)(autorep), (C.uint16_t)(count)) + ret := C.QKeyEvent_new6((C.int)(typeVal), (C.int)(key), (C.int)(modifiers), (*C.struct_miqt_string)(text_ms), (C.bool)(autorep), (C.uint16_t)(count)) return newQKeyEvent(ret) } @@ -945,7 +945,7 @@ func NewQKeyEvent6(typeVal QEvent__Type, key int, modifiers int, text string, au func NewQKeyEvent7(typeVal QEvent__Type, key int, modifiers int, nativeScanCode uint, nativeVirtualKey uint, nativeModifiers uint, text string) *QKeyEvent { text_ms := miqt_strdupg(text) defer C.free(text_ms) - ret := C.QKeyEvent_new7((C.int)(typeVal), (C.int)(key), modifiers, (C.uint)(nativeScanCode), (C.uint)(nativeVirtualKey), (C.uint)(nativeModifiers), (*C.struct_miqt_string)(text_ms)) + ret := C.QKeyEvent_new7((C.int)(typeVal), (C.int)(key), (C.int)(modifiers), (C.uint)(nativeScanCode), (C.uint)(nativeVirtualKey), (C.uint)(nativeModifiers), (*C.struct_miqt_string)(text_ms)) return newQKeyEvent(ret) } @@ -953,7 +953,7 @@ func NewQKeyEvent7(typeVal QEvent__Type, key int, modifiers int, nativeScanCode func NewQKeyEvent8(typeVal QEvent__Type, key int, modifiers int, nativeScanCode uint, nativeVirtualKey uint, nativeModifiers uint, text string, autorep bool) *QKeyEvent { text_ms := miqt_strdupg(text) defer C.free(text_ms) - ret := C.QKeyEvent_new8((C.int)(typeVal), (C.int)(key), modifiers, (C.uint)(nativeScanCode), (C.uint)(nativeVirtualKey), (C.uint)(nativeModifiers), (*C.struct_miqt_string)(text_ms), (C.bool)(autorep)) + ret := C.QKeyEvent_new8((C.int)(typeVal), (C.int)(key), (C.int)(modifiers), (C.uint)(nativeScanCode), (C.uint)(nativeVirtualKey), (C.uint)(nativeModifiers), (*C.struct_miqt_string)(text_ms), (C.bool)(autorep)) return newQKeyEvent(ret) } @@ -961,7 +961,7 @@ func NewQKeyEvent8(typeVal QEvent__Type, key int, modifiers int, nativeScanCode func NewQKeyEvent9(typeVal QEvent__Type, key int, modifiers int, nativeScanCode uint, nativeVirtualKey uint, nativeModifiers uint, text string, autorep bool, count uint16) *QKeyEvent { text_ms := miqt_strdupg(text) defer C.free(text_ms) - ret := C.QKeyEvent_new9((C.int)(typeVal), (C.int)(key), modifiers, (C.uint)(nativeScanCode), (C.uint)(nativeVirtualKey), (C.uint)(nativeModifiers), (*C.struct_miqt_string)(text_ms), (C.bool)(autorep), (C.uint16_t)(count)) + ret := C.QKeyEvent_new9((C.int)(typeVal), (C.int)(key), (C.int)(modifiers), (C.uint)(nativeScanCode), (C.uint)(nativeVirtualKey), (C.uint)(nativeModifiers), (*C.struct_miqt_string)(text_ms), (C.bool)(autorep), (C.uint16_t)(count)) return newQKeyEvent(ret) } @@ -1605,7 +1605,7 @@ func newQContextMenuEvent_U(h unsafe.Pointer) *QContextMenuEvent { // NewQContextMenuEvent constructs a new QContextMenuEvent object. func NewQContextMenuEvent(reason QContextMenuEvent__Reason, pos *QPoint, globalPos *QPoint, modifiers int) *QContextMenuEvent { - ret := C.QContextMenuEvent_new((C.int)(reason), pos.cPointer(), globalPos.cPointer(), modifiers) + ret := C.QContextMenuEvent_new((C.int)(reason), pos.cPointer(), globalPos.cPointer(), (C.int)(modifiers)) return newQContextMenuEvent(ret) } @@ -1813,7 +1813,7 @@ func newQInputMethodQueryEvent_U(h unsafe.Pointer) *QInputMethodQueryEvent { // NewQInputMethodQueryEvent constructs a new QInputMethodQueryEvent object. func NewQInputMethodQueryEvent(queries int) *QInputMethodQueryEvent { - ret := C.QInputMethodQueryEvent_new(queries) + ret := C.QInputMethodQueryEvent_new((C.int)(queries)) return newQInputMethodQueryEvent(ret) } @@ -1877,7 +1877,7 @@ func newQDropEvent_U(h unsafe.Pointer) *QDropEvent { // NewQDropEvent constructs a new QDropEvent object. func NewQDropEvent(pos *QPointF, actions int, data *QMimeData, buttons int, modifiers int) *QDropEvent { - ret := C.QDropEvent_new(pos.cPointer(), actions, data.cPointer(), buttons, modifiers) + ret := C.QDropEvent_new(pos.cPointer(), (C.int)(actions), data.cPointer(), (C.int)(buttons), (C.int)(modifiers)) return newQDropEvent(ret) } @@ -1889,7 +1889,7 @@ func NewQDropEvent2(param1 *QDropEvent) *QDropEvent { // NewQDropEvent3 constructs a new QDropEvent object. func NewQDropEvent3(pos *QPointF, actions int, data *QMimeData, buttons int, modifiers int, typeVal QEvent__Type) *QDropEvent { - ret := C.QDropEvent_new3(pos.cPointer(), actions, data.cPointer(), buttons, modifiers, (C.int)(typeVal)) + ret := C.QDropEvent_new3(pos.cPointer(), (C.int)(actions), data.cPointer(), (C.int)(buttons), (C.int)(modifiers), (C.int)(typeVal)) return newQDropEvent(ret) } @@ -1979,7 +1979,7 @@ func newQDragMoveEvent_U(h unsafe.Pointer) *QDragMoveEvent { // NewQDragMoveEvent constructs a new QDragMoveEvent object. func NewQDragMoveEvent(pos *QPoint, actions int, data *QMimeData, buttons int, modifiers int) *QDragMoveEvent { - ret := C.QDragMoveEvent_new(pos.cPointer(), actions, data.cPointer(), buttons, modifiers) + ret := C.QDragMoveEvent_new(pos.cPointer(), (C.int)(actions), data.cPointer(), (C.int)(buttons), (C.int)(modifiers)) return newQDragMoveEvent(ret) } @@ -1991,7 +1991,7 @@ func NewQDragMoveEvent2(param1 *QDragMoveEvent) *QDragMoveEvent { // NewQDragMoveEvent3 constructs a new QDragMoveEvent object. func NewQDragMoveEvent3(pos *QPoint, actions int, data *QMimeData, buttons int, modifiers int, typeVal QEvent__Type) *QDragMoveEvent { - ret := C.QDragMoveEvent_new3(pos.cPointer(), actions, data.cPointer(), buttons, modifiers, (C.int)(typeVal)) + ret := C.QDragMoveEvent_new3(pos.cPointer(), (C.int)(actions), data.cPointer(), (C.int)(buttons), (C.int)(modifiers), (C.int)(typeVal)) return newQDragMoveEvent(ret) } @@ -2057,7 +2057,7 @@ func newQDragEnterEvent_U(h unsafe.Pointer) *QDragEnterEvent { // NewQDragEnterEvent constructs a new QDragEnterEvent object. func NewQDragEnterEvent(pos *QPoint, actions int, data *QMimeData, buttons int, modifiers int) *QDragEnterEvent { - ret := C.QDragEnterEvent_new(pos.cPointer(), actions, data.cPointer(), buttons, modifiers) + ret := C.QDragEnterEvent_new(pos.cPointer(), (C.int)(actions), data.cPointer(), (C.int)(buttons), (C.int)(modifiers)) return newQDragEnterEvent(ret) } @@ -2452,7 +2452,7 @@ func (this *QFileOpenEvent) Url() *QUrl { } func (this *QFileOpenEvent) OpenFile(file *QFile, flags int) bool { - return (bool)(C.QFileOpenEvent_OpenFile(this.h, file.cPointer(), flags)) + return (bool)(C.QFileOpenEvent_OpenFile(this.h, file.cPointer(), (C.int)(flags))) } // Delete this object from C++ memory. @@ -2614,7 +2614,7 @@ func newQWindowStateChangeEvent_U(h unsafe.Pointer) *QWindowStateChangeEvent { // NewQWindowStateChangeEvent constructs a new QWindowStateChangeEvent object. func NewQWindowStateChangeEvent(aOldState int) *QWindowStateChangeEvent { - ret := C.QWindowStateChangeEvent_new(aOldState) + ret := C.QWindowStateChangeEvent_new((C.int)(aOldState)) return newQWindowStateChangeEvent(ret) } @@ -2626,7 +2626,7 @@ func NewQWindowStateChangeEvent2(param1 *QWindowStateChangeEvent) *QWindowStateC // NewQWindowStateChangeEvent3 constructs a new QWindowStateChangeEvent object. func NewQWindowStateChangeEvent3(aOldState int, isOverride bool) *QWindowStateChangeEvent { - ret := C.QWindowStateChangeEvent_new3(aOldState, (C.bool)(isOverride)) + ret := C.QWindowStateChangeEvent_new3((C.int)(aOldState), (C.bool)(isOverride)) return newQWindowStateChangeEvent(ret) } @@ -2758,13 +2758,13 @@ func NewQTouchEvent3(eventType QEvent__Type, device *QTouchDevice) *QTouchEvent // NewQTouchEvent4 constructs a new QTouchEvent object. func NewQTouchEvent4(eventType QEvent__Type, device *QTouchDevice, modifiers int) *QTouchEvent { - ret := C.QTouchEvent_new4((C.int)(eventType), device.cPointer(), modifiers) + ret := C.QTouchEvent_new4((C.int)(eventType), device.cPointer(), (C.int)(modifiers)) return newQTouchEvent(ret) } // NewQTouchEvent5 constructs a new QTouchEvent object. func NewQTouchEvent5(eventType QEvent__Type, device *QTouchDevice, modifiers int, touchPointStates int) *QTouchEvent { - ret := C.QTouchEvent_new5((C.int)(eventType), device.cPointer(), modifiers, touchPointStates) + ret := C.QTouchEvent_new5((C.int)(eventType), device.cPointer(), (C.int)(modifiers), (C.int)(touchPointStates)) return newQTouchEvent(ret) } @@ -2778,7 +2778,7 @@ func NewQTouchEvent6(eventType QEvent__Type, device *QTouchDevice, modifiers int } touchPoints_ma := &C.struct_miqt_array{len: C.size_t(len(touchPoints)), data: unsafe.Pointer(touchPoints_CArray)} defer runtime.KeepAlive(unsafe.Pointer(touchPoints_ma)) - ret := C.QTouchEvent_new6((C.int)(eventType), device.cPointer(), modifiers, touchPointStates, touchPoints_ma) + ret := C.QTouchEvent_new6((C.int)(eventType), device.cPointer(), (C.int)(modifiers), (C.int)(touchPointStates), touchPoints_ma) return newQTouchEvent(ret) } @@ -2821,7 +2821,7 @@ func (this *QTouchEvent) SetTarget(atarget *QObject) { } func (this *QTouchEvent) SetTouchPointStates(aTouchPointStates int) { - C.QTouchEvent_SetTouchPointStates(this.h, aTouchPointStates) + C.QTouchEvent_SetTouchPointStates(this.h, (C.int)(aTouchPointStates)) } func (this *QTouchEvent) SetTouchPoints(atouchPoints []QTouchEvent__TouchPoint) { @@ -3407,7 +3407,7 @@ func (this *QTouchEvent__TouchPoint) SetUniqueId(uid int64) { } func (this *QTouchEvent__TouchPoint) SetState(state int) { - C.QTouchEvent__TouchPoint_SetState(this.h, state) + C.QTouchEvent__TouchPoint_SetState(this.h, (C.int)(state)) } func (this *QTouchEvent__TouchPoint) SetPos(pos *QPointF) { @@ -3475,7 +3475,7 @@ func (this *QTouchEvent__TouchPoint) SetVelocity(v *QVector2D) { } func (this *QTouchEvent__TouchPoint) SetFlags(flags int) { - C.QTouchEvent__TouchPoint_SetFlags(this.h, flags) + C.QTouchEvent__TouchPoint_SetFlags(this.h, (C.int)(flags)) } func (this *QTouchEvent__TouchPoint) SetRawScreenPositions(positions []QPointF) { diff --git a/qt/gen_qeventloop.go b/qt/gen_qeventloop.go index f59ff926..cbafc764 100644 --- a/qt/gen_qeventloop.go +++ b/qt/gen_qeventloop.go @@ -87,7 +87,7 @@ func (this *QEventLoop) ProcessEvents() bool { } func (this *QEventLoop) ProcessEvents2(flags int, maximumTime int) { - C.QEventLoop_ProcessEvents2(this.h, flags, (C.int)(maximumTime)) + C.QEventLoop_ProcessEvents2(this.h, (C.int)(flags), (C.int)(maximumTime)) } func (this *QEventLoop) Exec() int { @@ -159,11 +159,11 @@ func QEventLoop_TrUtf83(s string, c string, n int) string { } func (this *QEventLoop) ProcessEvents1(flags int) bool { - return (bool)(C.QEventLoop_ProcessEvents1(this.h, flags)) + return (bool)(C.QEventLoop_ProcessEvents1(this.h, (C.int)(flags))) } func (this *QEventLoop) Exec1(flags int) int { - return (int)(C.QEventLoop_Exec1(this.h, flags)) + return (int)(C.QEventLoop_Exec1(this.h, (C.int)(flags))) } func (this *QEventLoop) Exit1(returnCode int) { diff --git a/qt/gen_qfile.go b/qt/gen_qfile.go index c44d6221..15039132 100644 --- a/qt/gen_qfile.go +++ b/qt/gen_qfile.go @@ -229,11 +229,11 @@ func QFile_Copy2(fileName string, newName string) bool { } func (this *QFile) Open(flags int) bool { - return (bool)(C.QFile_Open(this.h, flags)) + return (bool)(C.QFile_Open(this.h, (C.int)(flags))) } func (this *QFile) Open3(fd int, ioFlags int) bool { - return (bool)(C.QFile_Open3(this.h, (C.int)(fd), ioFlags)) + return (bool)(C.QFile_Open3(this.h, (C.int)(fd), (C.int)(ioFlags))) } func (this *QFile) Size() int64 { @@ -261,13 +261,13 @@ func QFile_PermissionsWithFilename(filename string) int { } func (this *QFile) SetPermissions(permissionSpec int) bool { - return (bool)(C.QFile_SetPermissions(this.h, permissionSpec)) + return (bool)(C.QFile_SetPermissions(this.h, (C.int)(permissionSpec))) } func QFile_SetPermissions2(filename string, permissionSpec int) bool { filename_ms := miqt_strdupg(filename) defer C.free(filename_ms) - return (bool)(C.QFile_SetPermissions2((*C.struct_miqt_string)(filename_ms), permissionSpec)) + return (bool)(C.QFile_SetPermissions2((*C.struct_miqt_string)(filename_ms), (C.int)(permissionSpec))) } func QFile_Tr2(s string, c string) string { @@ -315,7 +315,7 @@ func QFile_TrUtf83(s string, c string, n int) string { } func (this *QFile) Open33(fd int, ioFlags int, handleFlags int) bool { - return (bool)(C.QFile_Open33(this.h, (C.int)(fd), ioFlags, handleFlags)) + return (bool)(C.QFile_Open33(this.h, (C.int)(fd), (C.int)(ioFlags), (C.int)(handleFlags))) } // Delete this object from C++ memory. diff --git a/qt/gen_qfiledevice.go b/qt/gen_qfiledevice.go index fb03bbf8..e7b6fa40 100644 --- a/qt/gen_qfiledevice.go +++ b/qt/gen_qfiledevice.go @@ -174,7 +174,7 @@ func (this *QFileDevice) Permissions() int { } func (this *QFileDevice) SetPermissions(permissionSpec int) bool { - return (bool)(C.QFileDevice_SetPermissions(this.h, permissionSpec)) + return (bool)(C.QFileDevice_SetPermissions(this.h, (C.int)(permissionSpec))) } func (this *QFileDevice) Map(offset int64, size int64) *byte { diff --git a/qt/gen_qfiledialog.go b/qt/gen_qfiledialog.go index 3df37daf..6f7cb8f7 100644 --- a/qt/gen_qfiledialog.go +++ b/qt/gen_qfiledialog.go @@ -86,7 +86,7 @@ func newQFileDialog_U(h unsafe.Pointer) *QFileDialog { // NewQFileDialog constructs a new QFileDialog object. func NewQFileDialog(parent *QWidget, f int) *QFileDialog { - ret := C.QFileDialog_new(parent.cPointer(), f) + ret := C.QFileDialog_new(parent.cPointer(), (C.int)(f)) return newQFileDialog(ret) } @@ -321,7 +321,7 @@ func (this *QFileDialog) Filter() int { } func (this *QFileDialog) SetFilter(filters int) { - C.QFileDialog_SetFilter(this.h, filters) + C.QFileDialog_SetFilter(this.h, (C.int)(filters)) } func (this *QFileDialog) SetViewMode(mode QFileDialog__ViewMode) { @@ -524,7 +524,7 @@ func (this *QFileDialog) TestOption(option QFileDialog__Option) bool { } func (this *QFileDialog) SetOptions(options int) { - C.QFileDialog_SetOptions(this.h, options) + C.QFileDialog_SetOptions(this.h, (C.int)(options)) } func (this *QFileDialog) Options() int { @@ -1079,7 +1079,7 @@ func QFileDialog_GetExistingDirectory4(parent *QWidget, caption string, dir stri defer C.free(caption_ms) dir_ms := miqt_strdupg(dir) defer C.free(dir_ms) - var _ms *C.struct_miqt_string = C.QFileDialog_GetExistingDirectory4(parent.cPointer(), (*C.struct_miqt_string)(caption_ms), (*C.struct_miqt_string)(dir_ms), options) + var _ms *C.struct_miqt_string = C.QFileDialog_GetExistingDirectory4(parent.cPointer(), (*C.struct_miqt_string)(caption_ms), (*C.struct_miqt_string)(dir_ms), (C.int)(options)) _ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms)) return _ret @@ -1113,7 +1113,7 @@ func QFileDialog_GetExistingDirectoryUrl3(parent *QWidget, caption string, dir * func QFileDialog_GetExistingDirectoryUrl4(parent *QWidget, caption string, dir *QUrl, options int) *QUrl { caption_ms := miqt_strdupg(caption) defer C.free(caption_ms) - _ret := C.QFileDialog_GetExistingDirectoryUrl4(parent.cPointer(), (*C.struct_miqt_string)(caption_ms), dir.cPointer(), options) + _ret := C.QFileDialog_GetExistingDirectoryUrl4(parent.cPointer(), (*C.struct_miqt_string)(caption_ms), dir.cPointer(), (C.int)(options)) _goptr := newQUrl(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr @@ -1132,7 +1132,7 @@ func QFileDialog_GetExistingDirectoryUrl5(parent *QWidget, caption string, dir * } supportedSchemes_ma := &C.struct_miqt_array{len: C.size_t(len(supportedSchemes)), data: unsafe.Pointer(supportedSchemes_CArray)} defer runtime.KeepAlive(unsafe.Pointer(supportedSchemes_ma)) - _ret := C.QFileDialog_GetExistingDirectoryUrl5(parent.cPointer(), (*C.struct_miqt_string)(caption_ms), dir.cPointer(), options, supportedSchemes_ma) + _ret := C.QFileDialog_GetExistingDirectoryUrl5(parent.cPointer(), (*C.struct_miqt_string)(caption_ms), dir.cPointer(), (C.int)(options), supportedSchemes_ma) _goptr := newQUrl(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr diff --git a/qt/gen_qfileiconprovider.go b/qt/gen_qfileiconprovider.go index 5a47db5f..c524468b 100644 --- a/qt/gen_qfileiconprovider.go +++ b/qt/gen_qfileiconprovider.go @@ -81,7 +81,7 @@ func (this *QFileIconProvider) Type(info *QFileInfo) string { } func (this *QFileIconProvider) SetOptions(options int) { - C.QFileIconProvider_SetOptions(this.h, options) + C.QFileIconProvider_SetOptions(this.h, (C.int)(options)) } func (this *QFileIconProvider) Options() int { diff --git a/qt/gen_qfileinfo.go b/qt/gen_qfileinfo.go index 77b77ce9..e2c4fdca 100644 --- a/qt/gen_qfileinfo.go +++ b/qt/gen_qfileinfo.go @@ -314,7 +314,7 @@ func (this *QFileInfo) GroupId() uint { } func (this *QFileInfo) Permission(permissions int) bool { - return (bool)(C.QFileInfo_Permission(this.h, permissions)) + return (bool)(C.QFileInfo_Permission(this.h, (C.int)(permissions))) } func (this *QFileInfo) Permissions() int { diff --git a/qt/gen_qfilesystemmodel.go b/qt/gen_qfilesystemmodel.go index 6b54aee2..dd97b423 100644 --- a/qt/gen_qfilesystemmodel.go +++ b/qt/gen_qfilesystemmodel.go @@ -324,7 +324,7 @@ func (this *QFileSystemModel) IconProvider() *QFileIconProvider { } func (this *QFileSystemModel) SetFilter(filters int) { - C.QFileSystemModel_SetFilter(this.h, filters) + C.QFileSystemModel_SetFilter(this.h, (C.int)(filters)) } func (this *QFileSystemModel) Filter() int { @@ -392,7 +392,7 @@ func (this *QFileSystemModel) TestOption(option QFileSystemModel__Option) bool { } func (this *QFileSystemModel) SetOptions(options int) { - C.QFileSystemModel_SetOptions(this.h, options) + C.QFileSystemModel_SetOptions(this.h, (C.int)(options)) } func (this *QFileSystemModel) Options() int { diff --git a/qt/gen_qfontcombobox.go b/qt/gen_qfontcombobox.go index ec57c632..7bd58b5d 100644 --- a/qt/gen_qfontcombobox.go +++ b/qt/gen_qfontcombobox.go @@ -90,7 +90,7 @@ func (this *QFontComboBox) WritingSystem() QFontDatabase__WritingSystem { } func (this *QFontComboBox) SetFontFilters(filters int) { - C.QFontComboBox_SetFontFilters(this.h, filters) + C.QFontComboBox_SetFontFilters(this.h, (C.int)(filters)) } func (this *QFontComboBox) FontFilters() int { diff --git a/qt/gen_qfontdialog.go b/qt/gen_qfontdialog.go index 0731cf15..431a3f55 100644 --- a/qt/gen_qfontdialog.go +++ b/qt/gen_qfontdialog.go @@ -121,7 +121,7 @@ func (this *QFontDialog) TestOption(option QFontDialog__FontDialogOption) bool { } func (this *QFontDialog) SetOptions(options int) { - C.QFontDialog_SetOptions(this.h, options) + C.QFontDialog_SetOptions(this.h, (C.int)(options)) } func (this *QFontDialog) Options() int { @@ -260,7 +260,7 @@ func QFontDialog_GetFont4(ok *bool, initial *QFont, parent *QWidget, title strin func QFontDialog_GetFont5(ok *bool, initial *QFont, parent *QWidget, title string, options int) *QFont { title_ms := miqt_strdupg(title) defer C.free(title_ms) - _ret := C.QFontDialog_GetFont5((*C.bool)(unsafe.Pointer(ok)), initial.cPointer(), parent.cPointer(), (*C.struct_miqt_string)(title_ms), options) + _ret := C.QFontDialog_GetFont5((*C.bool)(unsafe.Pointer(ok)), initial.cPointer(), parent.cPointer(), (*C.struct_miqt_string)(title_ms), (C.int)(options)) _goptr := newQFont(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr diff --git a/qt/gen_qformlayout.go b/qt/gen_qformlayout.go index 7756c4ae..eced40d6 100644 --- a/qt/gen_qformlayout.go +++ b/qt/gen_qformlayout.go @@ -111,7 +111,7 @@ func (this *QFormLayout) RowWrapPolicy() int { } func (this *QFormLayout) SetLabelAlignment(alignment int) { - C.QFormLayout_SetLabelAlignment(this.h, alignment) + C.QFormLayout_SetLabelAlignment(this.h, (C.int)(alignment)) } func (this *QFormLayout) LabelAlignment() int { @@ -119,7 +119,7 @@ func (this *QFormLayout) LabelAlignment() int { } func (this *QFormLayout) SetFormAlignment(alignment int) { - C.QFormLayout_SetFormAlignment(this.h, alignment) + C.QFormLayout_SetFormAlignment(this.h, (C.int)(alignment)) } func (this *QFormLayout) FormAlignment() int { diff --git a/qt/gen_qframe.go b/qt/gen_qframe.go index 4845c573..5ad06641 100644 --- a/qt/gen_qframe.go +++ b/qt/gen_qframe.go @@ -77,7 +77,7 @@ func NewQFrame2(parent *QWidget) *QFrame { // NewQFrame3 constructs a new QFrame object. func NewQFrame3(parent *QWidget, f int) *QFrame { - ret := C.QFrame_new3(parent.cPointer(), f) + ret := C.QFrame_new3(parent.cPointer(), (C.int)(f)) return newQFrame(ret) } diff --git a/qt/gen_qgesture.go b/qt/gen_qgesture.go index 2e628de1..3264275f 100644 --- a/qt/gen_qgesture.go +++ b/qt/gen_qgesture.go @@ -402,7 +402,7 @@ func (this *QPinchGesture) TotalChangeFlags() int { } func (this *QPinchGesture) SetTotalChangeFlags(value int) { - C.QPinchGesture_SetTotalChangeFlags(this.h, value) + C.QPinchGesture_SetTotalChangeFlags(this.h, (C.int)(value)) } func (this *QPinchGesture) ChangeFlags() int { @@ -410,7 +410,7 @@ func (this *QPinchGesture) ChangeFlags() int { } func (this *QPinchGesture) SetChangeFlags(value int) { - C.QPinchGesture_SetChangeFlags(this.h, value) + C.QPinchGesture_SetChangeFlags(this.h, (C.int)(value)) } func (this *QPinchGesture) StartCenterPoint() *QPointF { diff --git a/qt/gen_qglyphrun.go b/qt/gen_qglyphrun.go index fb88cc05..167eb107 100644 --- a/qt/gen_qglyphrun.go +++ b/qt/gen_qglyphrun.go @@ -178,7 +178,7 @@ func (this *QGlyphRun) SetFlag(flag QGlyphRun__GlyphRunFlag) { } func (this *QGlyphRun) SetFlags(flags int) { - C.QGlyphRun_SetFlags(this.h, flags) + C.QGlyphRun_SetFlags(this.h, (C.int)(flags)) } func (this *QGlyphRun) Flags() int { diff --git a/qt/gen_qgraphicsanchorlayout.go b/qt/gen_qgraphicsanchorlayout.go index 4f262957..dcffc3fd 100644 --- a/qt/gen_qgraphicsanchorlayout.go +++ b/qt/gen_qgraphicsanchorlayout.go @@ -228,7 +228,7 @@ func (this *QGraphicsAnchorLayout) Invalidate() { } func (this *QGraphicsAnchorLayout) AddAnchors3(firstItem *QGraphicsLayoutItem, secondItem *QGraphicsLayoutItem, orientations int) { - C.QGraphicsAnchorLayout_AddAnchors3(this.h, firstItem.cPointer(), secondItem.cPointer(), orientations) + C.QGraphicsAnchorLayout_AddAnchors3(this.h, firstItem.cPointer(), secondItem.cPointer(), (C.int)(orientations)) } // Delete this object from C++ memory. diff --git a/qt/gen_qgraphicseffect.go b/qt/gen_qgraphicseffect.go index fc441c1d..24887f91 100644 --- a/qt/gen_qgraphicseffect.go +++ b/qt/gen_qgraphicseffect.go @@ -439,7 +439,7 @@ func (this *QGraphicsBlurEffect) SetBlurRadius(blurRadius float64) { } func (this *QGraphicsBlurEffect) SetBlurHints(hints int) { - C.QGraphicsBlurEffect_SetBlurHints(this.h, hints) + C.QGraphicsBlurEffect_SetBlurHints(this.h, (C.int)(hints)) } func (this *QGraphicsBlurEffect) BlurRadiusChanged(blurRadius float64) { @@ -463,7 +463,7 @@ func miqt_exec_callback_QGraphicsBlurEffect_BlurRadiusChanged(cb *C.void, blurRa } func (this *QGraphicsBlurEffect) BlurHintsChanged(hints int) { - C.QGraphicsBlurEffect_BlurHintsChanged(this.h, hints) + C.QGraphicsBlurEffect_BlurHintsChanged(this.h, (C.int)(hints)) } func (this *QGraphicsBlurEffect) OnBlurHintsChanged(slot func(hints int)) { C.QGraphicsBlurEffect_connect_BlurHintsChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) diff --git a/qt/gen_qgraphicsgridlayout.go b/qt/gen_qgraphicsgridlayout.go index 0b0b313a..e11148b1 100644 --- a/qt/gen_qgraphicsgridlayout.go +++ b/qt/gen_qgraphicsgridlayout.go @@ -165,7 +165,7 @@ func (this *QGraphicsGridLayout) SetColumnFixedWidth(column int, width float64) } func (this *QGraphicsGridLayout) SetRowAlignment(row int, alignment int) { - C.QGraphicsGridLayout_SetRowAlignment(this.h, (C.int)(row), alignment) + C.QGraphicsGridLayout_SetRowAlignment(this.h, (C.int)(row), (C.int)(alignment)) } func (this *QGraphicsGridLayout) RowAlignment(row int) int { @@ -173,7 +173,7 @@ func (this *QGraphicsGridLayout) RowAlignment(row int) int { } func (this *QGraphicsGridLayout) SetColumnAlignment(column int, alignment int) { - C.QGraphicsGridLayout_SetColumnAlignment(this.h, (C.int)(column), alignment) + C.QGraphicsGridLayout_SetColumnAlignment(this.h, (C.int)(column), (C.int)(alignment)) } func (this *QGraphicsGridLayout) ColumnAlignment(column int) int { @@ -181,7 +181,7 @@ func (this *QGraphicsGridLayout) ColumnAlignment(column int) int { } func (this *QGraphicsGridLayout) SetAlignment(item *QGraphicsLayoutItem, alignment int) { - C.QGraphicsGridLayout_SetAlignment(this.h, item.cPointer(), alignment) + C.QGraphicsGridLayout_SetAlignment(this.h, item.cPointer(), (C.int)(alignment)) } func (this *QGraphicsGridLayout) Alignment(item *QGraphicsLayoutItem) int { @@ -232,11 +232,11 @@ func (this *QGraphicsGridLayout) SizeHint(which SizeHint) *QSizeF { } func (this *QGraphicsGridLayout) AddItem6(item *QGraphicsLayoutItem, row int, column int, rowSpan int, columnSpan int, alignment int) { - C.QGraphicsGridLayout_AddItem6(this.h, item.cPointer(), (C.int)(row), (C.int)(column), (C.int)(rowSpan), (C.int)(columnSpan), alignment) + C.QGraphicsGridLayout_AddItem6(this.h, item.cPointer(), (C.int)(row), (C.int)(column), (C.int)(rowSpan), (C.int)(columnSpan), (C.int)(alignment)) } func (this *QGraphicsGridLayout) AddItem4(item *QGraphicsLayoutItem, row int, column int, alignment int) { - C.QGraphicsGridLayout_AddItem4(this.h, item.cPointer(), (C.int)(row), (C.int)(column), alignment) + C.QGraphicsGridLayout_AddItem4(this.h, item.cPointer(), (C.int)(row), (C.int)(column), (C.int)(alignment)) } func (this *QGraphicsGridLayout) SizeHint2(which SizeHint, constraint *QSizeF) *QSizeF { diff --git a/qt/gen_qgraphicsitem.go b/qt/gen_qgraphicsitem.go index 18005a75..040de549 100644 --- a/qt/gen_qgraphicsitem.go +++ b/qt/gen_qgraphicsitem.go @@ -269,7 +269,7 @@ func (this *QGraphicsItem) SetFlag(flag QGraphicsItem__GraphicsItemFlag) { } func (this *QGraphicsItem) SetFlags(flags int) { - C.QGraphicsItem_SetFlags(this.h, flags) + C.QGraphicsItem_SetFlags(this.h, (C.int)(flags)) } func (this *QGraphicsItem) CacheMode() QGraphicsItem__CacheMode { @@ -393,7 +393,7 @@ func (this *QGraphicsItem) AcceptedMouseButtons() int { } func (this *QGraphicsItem) SetAcceptedMouseButtons(buttons int) { - C.QGraphicsItem_SetAcceptedMouseButtons(this.h, buttons) + C.QGraphicsItem_SetAcceptedMouseButtons(this.h, (C.int)(buttons)) } func (this *QGraphicsItem) AcceptHoverEvents() bool { @@ -1008,7 +1008,7 @@ func (this *QGraphicsItem) InputMethodHints() int { } func (this *QGraphicsItem) SetInputMethodHints(hints int) { - C.QGraphicsItem_SetInputMethodHints(this.h, hints) + C.QGraphicsItem_SetInputMethodHints(this.h, (C.int)(hints)) } func (this *QGraphicsItem) Type() int { @@ -1422,7 +1422,7 @@ func QGraphicsObject_TrUtf83(s string, c string, n int) string { } func (this *QGraphicsObject) GrabGesture2(typeVal GestureType, flags int) { - C.QGraphicsObject_GrabGesture2(this.h, (C.int)(typeVal), flags) + C.QGraphicsObject_GrabGesture2(this.h, (C.int)(typeVal), (C.int)(flags)) } // Delete this object from C++ memory. @@ -2453,7 +2453,7 @@ func (this *QGraphicsTextItem) Document() *QTextDocument { } func (this *QGraphicsTextItem) SetTextInteractionFlags(flags int) { - C.QGraphicsTextItem_SetTextInteractionFlags(this.h, flags) + C.QGraphicsTextItem_SetTextInteractionFlags(this.h, (C.int)(flags)) } func (this *QGraphicsTextItem) TextInteractionFlags() int { diff --git a/qt/gen_qgraphicslinearlayout.go b/qt/gen_qgraphicslinearlayout.go index 8b72d519..1a22f88c 100644 --- a/qt/gen_qgraphicslinearlayout.go +++ b/qt/gen_qgraphicslinearlayout.go @@ -117,7 +117,7 @@ func (this *QGraphicsLinearLayout) StretchFactor(item *QGraphicsLayoutItem) int } func (this *QGraphicsLinearLayout) SetAlignment(item *QGraphicsLayoutItem, alignment int) { - C.QGraphicsLinearLayout_SetAlignment(this.h, item.cPointer(), alignment) + C.QGraphicsLinearLayout_SetAlignment(this.h, item.cPointer(), (C.int)(alignment)) } func (this *QGraphicsLinearLayout) Alignment(item *QGraphicsLayoutItem) int { diff --git a/qt/gen_qgraphicsproxywidget.go b/qt/gen_qgraphicsproxywidget.go index 9cc8f262..c5e13c5a 100644 --- a/qt/gen_qgraphicsproxywidget.go +++ b/qt/gen_qgraphicsproxywidget.go @@ -56,7 +56,7 @@ func NewQGraphicsProxyWidget2(parent *QGraphicsItem) *QGraphicsProxyWidget { // NewQGraphicsProxyWidget3 constructs a new QGraphicsProxyWidget object. func NewQGraphicsProxyWidget3(parent *QGraphicsItem, wFlags int) *QGraphicsProxyWidget { - ret := C.QGraphicsProxyWidget_new3(parent.cPointer(), wFlags) + ret := C.QGraphicsProxyWidget_new3(parent.cPointer(), (C.int)(wFlags)) return newQGraphicsProxyWidget(ret) } diff --git a/qt/gen_qgraphicsscene.go b/qt/gen_qgraphicsscene.go index 8190d0a3..72b0a039 100644 --- a/qt/gen_qgraphicsscene.go +++ b/qt/gen_qgraphicsscene.go @@ -857,7 +857,7 @@ func (this *QGraphicsScene) AddSimpleText2(text string, font *QFont) *QGraphicsS } func (this *QGraphicsScene) AddWidget2(widget *QWidget, wFlags int) *QGraphicsProxyWidget { - return newQGraphicsProxyWidget_U(unsafe.Pointer(C.QGraphicsScene_AddWidget2(this.h, widget.cPointer(), wFlags))) + return newQGraphicsProxyWidget_U(unsafe.Pointer(C.QGraphicsScene_AddWidget2(this.h, widget.cPointer(), (C.int)(wFlags)))) } func (this *QGraphicsScene) AddEllipse5(x float64, y float64, w float64, h float64, pen *QPen) *QGraphicsEllipseItem { @@ -889,7 +889,7 @@ func (this *QGraphicsScene) SetFocus1(focusReason FocusReason) { } func (this *QGraphicsScene) Invalidate5(x float64, y float64, w float64, h float64, layers int) { - C.QGraphicsScene_Invalidate5(this.h, (C.double)(x), (C.double)(y), (C.double)(w), (C.double)(h), layers) + C.QGraphicsScene_Invalidate5(this.h, (C.double)(x), (C.double)(y), (C.double)(w), (C.double)(h), (C.int)(layers)) } func (this *QGraphicsScene) Update1(rect *QRectF) { @@ -901,7 +901,7 @@ func (this *QGraphicsScene) Invalidate1(rect *QRectF) { } func (this *QGraphicsScene) Invalidate22(rect *QRectF, layers int) { - C.QGraphicsScene_Invalidate22(this.h, rect.cPointer(), layers) + C.QGraphicsScene_Invalidate22(this.h, rect.cPointer(), (C.int)(layers)) } // Delete this object from C++ memory. diff --git a/qt/gen_qgraphicssceneevent.go b/qt/gen_qgraphicssceneevent.go index 34ef06ae..ebff73bf 100644 --- a/qt/gen_qgraphicssceneevent.go +++ b/qt/gen_qgraphicssceneevent.go @@ -211,7 +211,7 @@ func (this *QGraphicsSceneMouseEvent) Buttons() int { } func (this *QGraphicsSceneMouseEvent) SetButtons(buttons int) { - C.QGraphicsSceneMouseEvent_SetButtons(this.h, buttons) + C.QGraphicsSceneMouseEvent_SetButtons(this.h, (C.int)(buttons)) } func (this *QGraphicsSceneMouseEvent) Button() MouseButton { @@ -227,7 +227,7 @@ func (this *QGraphicsSceneMouseEvent) Modifiers() int { } func (this *QGraphicsSceneMouseEvent) SetModifiers(modifiers int) { - C.QGraphicsSceneMouseEvent_SetModifiers(this.h, modifiers) + C.QGraphicsSceneMouseEvent_SetModifiers(this.h, (C.int)(modifiers)) } func (this *QGraphicsSceneMouseEvent) Source() MouseEventSource { @@ -243,7 +243,7 @@ func (this *QGraphicsSceneMouseEvent) Flags() int { } func (this *QGraphicsSceneMouseEvent) SetFlags(flags int) { - C.QGraphicsSceneMouseEvent_SetFlags(this.h, flags) + C.QGraphicsSceneMouseEvent_SetFlags(this.h, (C.int)(flags)) } // Delete this object from C++ memory. @@ -333,7 +333,7 @@ func (this *QGraphicsSceneWheelEvent) Buttons() int { } func (this *QGraphicsSceneWheelEvent) SetButtons(buttons int) { - C.QGraphicsSceneWheelEvent_SetButtons(this.h, buttons) + C.QGraphicsSceneWheelEvent_SetButtons(this.h, (C.int)(buttons)) } func (this *QGraphicsSceneWheelEvent) Modifiers() int { @@ -341,7 +341,7 @@ func (this *QGraphicsSceneWheelEvent) Modifiers() int { } func (this *QGraphicsSceneWheelEvent) SetModifiers(modifiers int) { - C.QGraphicsSceneWheelEvent_SetModifiers(this.h, modifiers) + C.QGraphicsSceneWheelEvent_SetModifiers(this.h, (C.int)(modifiers)) } func (this *QGraphicsSceneWheelEvent) Delta() int { @@ -447,7 +447,7 @@ func (this *QGraphicsSceneContextMenuEvent) Modifiers() int { } func (this *QGraphicsSceneContextMenuEvent) SetModifiers(modifiers int) { - C.QGraphicsSceneContextMenuEvent_SetModifiers(this.h, modifiers) + C.QGraphicsSceneContextMenuEvent_SetModifiers(this.h, (C.int)(modifiers)) } func (this *QGraphicsSceneContextMenuEvent) Reason() QGraphicsSceneContextMenuEvent__Reason { @@ -578,7 +578,7 @@ func (this *QGraphicsSceneHoverEvent) Modifiers() int { } func (this *QGraphicsSceneHoverEvent) SetModifiers(modifiers int) { - C.QGraphicsSceneHoverEvent_SetModifiers(this.h, modifiers) + C.QGraphicsSceneHoverEvent_SetModifiers(this.h, (C.int)(modifiers)) } // Delete this object from C++ memory. @@ -739,7 +739,7 @@ func (this *QGraphicsSceneDragDropEvent) Buttons() int { } func (this *QGraphicsSceneDragDropEvent) SetButtons(buttons int) { - C.QGraphicsSceneDragDropEvent_SetButtons(this.h, buttons) + C.QGraphicsSceneDragDropEvent_SetButtons(this.h, (C.int)(buttons)) } func (this *QGraphicsSceneDragDropEvent) Modifiers() int { @@ -747,7 +747,7 @@ func (this *QGraphicsSceneDragDropEvent) Modifiers() int { } func (this *QGraphicsSceneDragDropEvent) SetModifiers(modifiers int) { - C.QGraphicsSceneDragDropEvent_SetModifiers(this.h, modifiers) + C.QGraphicsSceneDragDropEvent_SetModifiers(this.h, (C.int)(modifiers)) } func (this *QGraphicsSceneDragDropEvent) PossibleActions() int { @@ -755,7 +755,7 @@ func (this *QGraphicsSceneDragDropEvent) PossibleActions() int { } func (this *QGraphicsSceneDragDropEvent) SetPossibleActions(actions int) { - C.QGraphicsSceneDragDropEvent_SetPossibleActions(this.h, actions) + C.QGraphicsSceneDragDropEvent_SetPossibleActions(this.h, (C.int)(actions)) } func (this *QGraphicsSceneDragDropEvent) ProposedAction() DropAction { diff --git a/qt/gen_qgraphicsview.go b/qt/gen_qgraphicsview.go index 62576d85..de5c8539 100644 --- a/qt/gen_qgraphicsview.go +++ b/qt/gen_qgraphicsview.go @@ -141,7 +141,7 @@ func (this *QGraphicsView) SetRenderHint(hint QPainter__RenderHint) { } func (this *QGraphicsView) SetRenderHints(hints int) { - C.QGraphicsView_SetRenderHints(this.h, hints) + C.QGraphicsView_SetRenderHints(this.h, (C.int)(hints)) } func (this *QGraphicsView) Alignment() int { @@ -149,7 +149,7 @@ func (this *QGraphicsView) Alignment() int { } func (this *QGraphicsView) SetAlignment(alignment int) { - C.QGraphicsView_SetAlignment(this.h, alignment) + C.QGraphicsView_SetAlignment(this.h, (C.int)(alignment)) } func (this *QGraphicsView) TransformationAnchor() QGraphicsView__ViewportAnchor { @@ -185,7 +185,7 @@ func (this *QGraphicsView) SetOptimizationFlag(flag QGraphicsView__OptimizationF } func (this *QGraphicsView) SetOptimizationFlags(flags int) { - C.QGraphicsView_SetOptimizationFlags(this.h, flags) + C.QGraphicsView_SetOptimizationFlags(this.h, (C.int)(flags)) } func (this *QGraphicsView) DragMode() QGraphicsView__DragMode { @@ -216,7 +216,7 @@ func (this *QGraphicsView) CacheMode() int { } func (this *QGraphicsView) SetCacheMode(mode int) { - C.QGraphicsView_SetCacheMode(this.h, mode) + C.QGraphicsView_SetCacheMode(this.h, (C.int)(mode)) } func (this *QGraphicsView) ResetCachedContent() { @@ -695,7 +695,7 @@ func (this *QGraphicsView) InvalidateScene1(rect *QRectF) { } func (this *QGraphicsView) InvalidateScene2(rect *QRectF, layers int) { - C.QGraphicsView_InvalidateScene2(this.h, rect.cPointer(), layers) + C.QGraphicsView_InvalidateScene2(this.h, rect.cPointer(), (C.int)(layers)) } // Delete this object from C++ memory. diff --git a/qt/gen_qgraphicswidget.go b/qt/gen_qgraphicswidget.go index 4bac7057..6c17c31f 100644 --- a/qt/gen_qgraphicswidget.go +++ b/qt/gen_qgraphicswidget.go @@ -58,7 +58,7 @@ func NewQGraphicsWidget2(parent *QGraphicsItem) *QGraphicsWidget { // NewQGraphicsWidget3 constructs a new QGraphicsWidget object. func NewQGraphicsWidget3(parent *QGraphicsItem, wFlags int) *QGraphicsWidget { - ret := C.QGraphicsWidget_new3(parent.cPointer(), wFlags) + ret := C.QGraphicsWidget_new3(parent.cPointer(), (C.int)(wFlags)) return newQGraphicsWidget(ret) } @@ -227,7 +227,7 @@ func (this *QGraphicsWidget) WindowType() WindowType { } func (this *QGraphicsWidget) SetWindowFlags(wFlags int) { - C.QGraphicsWidget_SetWindowFlags(this.h, wFlags) + C.QGraphicsWidget_SetWindowFlags(this.h, (C.int)(wFlags)) } func (this *QGraphicsWidget) IsActiveWindow() bool { diff --git a/qt/gen_qgridlayout.go b/qt/gen_qgridlayout.go index 7f002d69..c726c30b 100644 --- a/qt/gen_qgridlayout.go +++ b/qt/gen_qgridlayout.go @@ -287,19 +287,19 @@ func QGridLayout_TrUtf83(s string, c string, n int) string { } func (this *QGridLayout) AddWidget4(param1 *QWidget, row int, column int, param4 int) { - C.QGridLayout_AddWidget4(this.h, param1.cPointer(), (C.int)(row), (C.int)(column), param4) + C.QGridLayout_AddWidget4(this.h, param1.cPointer(), (C.int)(row), (C.int)(column), (C.int)(param4)) } func (this *QGridLayout) AddWidget6(param1 *QWidget, row int, column int, rowSpan int, columnSpan int, param6 int) { - C.QGridLayout_AddWidget6(this.h, param1.cPointer(), (C.int)(row), (C.int)(column), (C.int)(rowSpan), (C.int)(columnSpan), param6) + C.QGridLayout_AddWidget6(this.h, param1.cPointer(), (C.int)(row), (C.int)(column), (C.int)(rowSpan), (C.int)(columnSpan), (C.int)(param6)) } func (this *QGridLayout) AddLayout4(param1 *QLayout, row int, column int, param4 int) { - C.QGridLayout_AddLayout4(this.h, param1.cPointer(), (C.int)(row), (C.int)(column), param4) + C.QGridLayout_AddLayout4(this.h, param1.cPointer(), (C.int)(row), (C.int)(column), (C.int)(param4)) } func (this *QGridLayout) AddLayout6(param1 *QLayout, row int, column int, rowSpan int, columnSpan int, param6 int) { - C.QGridLayout_AddLayout6(this.h, param1.cPointer(), (C.int)(row), (C.int)(column), (C.int)(rowSpan), (C.int)(columnSpan), param6) + C.QGridLayout_AddLayout6(this.h, param1.cPointer(), (C.int)(row), (C.int)(column), (C.int)(rowSpan), (C.int)(columnSpan), (C.int)(param6)) } func (this *QGridLayout) AddItem4(item *QLayoutItem, row int, column int, rowSpan int) { @@ -311,7 +311,7 @@ func (this *QGridLayout) AddItem5(item *QLayoutItem, row int, column int, rowSpa } func (this *QGridLayout) AddItem6(item *QLayoutItem, row int, column int, rowSpan int, columnSpan int, param6 int) { - C.QGridLayout_AddItem6(this.h, item.cPointer(), (C.int)(row), (C.int)(column), (C.int)(rowSpan), (C.int)(columnSpan), param6) + C.QGridLayout_AddItem6(this.h, item.cPointer(), (C.int)(row), (C.int)(column), (C.int)(rowSpan), (C.int)(columnSpan), (C.int)(param6)) } // Delete this object from C++ memory. diff --git a/qt/gen_qheaderview.go b/qt/gen_qheaderview.go index 9a9e59d8..03c08182 100644 --- a/qt/gen_qheaderview.go +++ b/qt/gen_qheaderview.go @@ -313,7 +313,7 @@ func (this *QHeaderView) DefaultAlignment() int { } func (this *QHeaderView) SetDefaultAlignment(alignment int) { - C.QHeaderView_SetDefaultAlignment(this.h, alignment) + C.QHeaderView_SetDefaultAlignment(this.h, (C.int)(alignment)) } func (this *QHeaderView) DoItemsLayout() { diff --git a/qt/gen_qicon.go b/qt/gen_qicon.go index 048587cb..bdf81bc7 100644 --- a/qt/gen_qicon.go +++ b/qt/gen_qicon.go @@ -387,27 +387,27 @@ func (this *QIcon) ActualSize4(window *QWindow, size *QSize, mode QIcon__Mode, s } func (this *QIcon) Paint3(painter *QPainter, rect *QRect, alignment int) { - C.QIcon_Paint3(this.h, painter.cPointer(), rect.cPointer(), alignment) + C.QIcon_Paint3(this.h, painter.cPointer(), rect.cPointer(), (C.int)(alignment)) } func (this *QIcon) Paint4(painter *QPainter, rect *QRect, alignment int, mode QIcon__Mode) { - C.QIcon_Paint4(this.h, painter.cPointer(), rect.cPointer(), alignment, (C.int)(mode)) + C.QIcon_Paint4(this.h, painter.cPointer(), rect.cPointer(), (C.int)(alignment), (C.int)(mode)) } func (this *QIcon) Paint5(painter *QPainter, rect *QRect, alignment int, mode QIcon__Mode, state QIcon__State) { - C.QIcon_Paint5(this.h, painter.cPointer(), rect.cPointer(), alignment, (C.int)(mode), (C.int)(state)) + C.QIcon_Paint5(this.h, painter.cPointer(), rect.cPointer(), (C.int)(alignment), (C.int)(mode), (C.int)(state)) } func (this *QIcon) Paint6(painter *QPainter, x int, y int, w int, h int, alignment int) { - C.QIcon_Paint6(this.h, painter.cPointer(), (C.int)(x), (C.int)(y), (C.int)(w), (C.int)(h), alignment) + C.QIcon_Paint6(this.h, painter.cPointer(), (C.int)(x), (C.int)(y), (C.int)(w), (C.int)(h), (C.int)(alignment)) } func (this *QIcon) Paint7(painter *QPainter, x int, y int, w int, h int, alignment int, mode QIcon__Mode) { - C.QIcon_Paint7(this.h, painter.cPointer(), (C.int)(x), (C.int)(y), (C.int)(w), (C.int)(h), alignment, (C.int)(mode)) + C.QIcon_Paint7(this.h, painter.cPointer(), (C.int)(x), (C.int)(y), (C.int)(w), (C.int)(h), (C.int)(alignment), (C.int)(mode)) } func (this *QIcon) Paint8(painter *QPainter, x int, y int, w int, h int, alignment int, mode QIcon__Mode, state QIcon__State) { - C.QIcon_Paint8(this.h, painter.cPointer(), (C.int)(x), (C.int)(y), (C.int)(w), (C.int)(h), alignment, (C.int)(mode), (C.int)(state)) + C.QIcon_Paint8(this.h, painter.cPointer(), (C.int)(x), (C.int)(y), (C.int)(w), (C.int)(h), (C.int)(alignment), (C.int)(mode), (C.int)(state)) } func (this *QIcon) AddPixmap2(pixmap *QPixmap, mode QIcon__Mode) { diff --git a/qt/gen_qidentityproxymodel.go b/qt/gen_qidentityproxymodel.go index ccc4f148..942881e2 100644 --- a/qt/gen_qidentityproxymodel.go +++ b/qt/gen_qidentityproxymodel.go @@ -247,7 +247,7 @@ func (this *QIdentityProxyModel) Match4(start *QModelIndex, role int, value *QVa } func (this *QIdentityProxyModel) Match5(start *QModelIndex, role int, value *QVariant, hits int, flags int) []QModelIndex { - var _ma *C.struct_miqt_array = C.QIdentityProxyModel_Match5(this.h, start.cPointer(), (C.int)(role), value.cPointer(), (C.int)(hits), flags) + var _ma *C.struct_miqt_array = C.QIdentityProxyModel_Match5(this.h, start.cPointer(), (C.int)(role), value.cPointer(), (C.int)(hits), (C.int)(flags)) _ret := make([]QModelIndex, int(_ma.len)) _outCast := (*[0xffff]*C.QModelIndex)(unsafe.Pointer(_ma.data)) // hey ya for i := 0; i < int(_ma.len); i++ { diff --git a/qt/gen_qimage.go b/qt/gen_qimage.go index 0d85a2f4..3fc532c7 100644 --- a/qt/gen_qimage.go +++ b/qt/gen_qimage.go @@ -682,7 +682,7 @@ func (this *QImage) Copy1(rect *QRect) *QImage { } func (this *QImage) ConvertToFormat22(f QImage__Format, flags int) *QImage { - _ret := C.QImage_ConvertToFormat22(this.h, (C.int)(f), flags) + _ret := C.QImage_ConvertToFormat22(this.h, (C.int)(f), (C.int)(flags)) _goptr := newQImage(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr @@ -697,18 +697,18 @@ func (this *QImage) ConvertToFormat3(f QImage__Format, colorTable []uint, flags } colorTable_ma := &C.struct_miqt_array{len: C.size_t(len(colorTable)), data: unsafe.Pointer(colorTable_CArray)} defer runtime.KeepAlive(unsafe.Pointer(colorTable_ma)) - _ret := C.QImage_ConvertToFormat3(this.h, (C.int)(f), colorTable_ma, flags) + _ret := C.QImage_ConvertToFormat3(this.h, (C.int)(f), colorTable_ma, (C.int)(flags)) _goptr := newQImage(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QImage) ConvertTo2(f QImage__Format, flags int) { - C.QImage_ConvertTo2(this.h, (C.int)(f), flags) + C.QImage_ConvertTo2(this.h, (C.int)(f), (C.int)(flags)) } func (this *QImage) CreateAlphaMask1(flags int) *QImage { - _ret := C.QImage_CreateAlphaMask1(this.h, flags) + _ret := C.QImage_CreateAlphaMask1(this.h, (C.int)(flags)) _goptr := newQImage(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr diff --git a/qt/gen_qimagewriter.go b/qt/gen_qimagewriter.go index edc84b25..aaca402f 100644 --- a/qt/gen_qimagewriter.go +++ b/qt/gen_qimagewriter.go @@ -192,7 +192,7 @@ func (this *QImageWriter) Transformation() int { } func (this *QImageWriter) SetTransformation(orientation int) { - C.QImageWriter_SetTransformation(this.h, orientation) + C.QImageWriter_SetTransformation(this.h, (C.int)(orientation)) } func (this *QImageWriter) SetDescription(description string) { diff --git a/qt/gen_qinputdialog.go b/qt/gen_qinputdialog.go index b8aff9e3..b4535cf7 100644 --- a/qt/gen_qinputdialog.go +++ b/qt/gen_qinputdialog.go @@ -67,7 +67,7 @@ func NewQInputDialog2(parent *QWidget) *QInputDialog { // NewQInputDialog3 constructs a new QInputDialog object. func NewQInputDialog3(parent *QWidget, flags int) *QInputDialog { - ret := C.QInputDialog_new3(parent.cPointer(), flags) + ret := C.QInputDialog_new3(parent.cPointer(), (C.int)(flags)) return newQInputDialog(ret) } @@ -123,7 +123,7 @@ func (this *QInputDialog) TestOption(option QInputDialog__InputDialogOption) boo } func (this *QInputDialog) SetOptions(options int) { - C.QInputDialog_SetOptions(this.h, options) + C.QInputDialog_SetOptions(this.h, (C.int)(options)) } func (this *QInputDialog) Options() int { @@ -367,7 +367,7 @@ func QInputDialog_GetDouble2(parent *QWidget, title string, label string, value defer C.free(title_ms) label_ms := miqt_strdupg(label) defer C.free(label_ms) - return (float64)(C.QInputDialog_GetDouble2(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(label_ms), (C.double)(value), (C.double)(minValue), (C.double)(maxValue), (C.int)(decimals), (*C.bool)(unsafe.Pointer(ok)), flags, (C.double)(step))) + return (float64)(C.QInputDialog_GetDouble2(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(label_ms), (C.double)(value), (C.double)(minValue), (C.double)(maxValue), (C.int)(decimals), (*C.bool)(unsafe.Pointer(ok)), (C.int)(flags), (C.double)(step))) } func (this *QInputDialog) SetDoubleStep(step float64) { @@ -604,7 +604,7 @@ func QInputDialog_GetText7(parent *QWidget, title string, label string, echo QLi defer C.free(label_ms) text_ms := miqt_strdupg(text) defer C.free(text_ms) - var _ms *C.struct_miqt_string = C.QInputDialog_GetText7(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(label_ms), (C.int)(echo), (*C.struct_miqt_string)(text_ms), (*C.bool)(unsafe.Pointer(ok)), flags) + var _ms *C.struct_miqt_string = C.QInputDialog_GetText7(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(label_ms), (C.int)(echo), (*C.struct_miqt_string)(text_ms), (*C.bool)(unsafe.Pointer(ok)), (C.int)(flags)) _ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms)) return _ret @@ -617,7 +617,7 @@ func QInputDialog_GetText8(parent *QWidget, title string, label string, echo QLi defer C.free(label_ms) text_ms := miqt_strdupg(text) defer C.free(text_ms) - var _ms *C.struct_miqt_string = C.QInputDialog_GetText8(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(label_ms), (C.int)(echo), (*C.struct_miqt_string)(text_ms), (*C.bool)(unsafe.Pointer(ok)), flags, inputMethodHints) + var _ms *C.struct_miqt_string = C.QInputDialog_GetText8(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(label_ms), (C.int)(echo), (*C.struct_miqt_string)(text_ms), (*C.bool)(unsafe.Pointer(ok)), (C.int)(flags), (C.int)(inputMethodHints)) _ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms)) return _ret @@ -656,7 +656,7 @@ func QInputDialog_GetMultiLineText6(parent *QWidget, title string, label string, defer C.free(label_ms) text_ms := miqt_strdupg(text) defer C.free(text_ms) - var _ms *C.struct_miqt_string = C.QInputDialog_GetMultiLineText6(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(label_ms), (*C.struct_miqt_string)(text_ms), (*C.bool)(unsafe.Pointer(ok)), flags) + var _ms *C.struct_miqt_string = C.QInputDialog_GetMultiLineText6(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(label_ms), (*C.struct_miqt_string)(text_ms), (*C.bool)(unsafe.Pointer(ok)), (C.int)(flags)) _ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms)) return _ret @@ -669,7 +669,7 @@ func QInputDialog_GetMultiLineText7(parent *QWidget, title string, label string, defer C.free(label_ms) text_ms := miqt_strdupg(text) defer C.free(text_ms) - var _ms *C.struct_miqt_string = C.QInputDialog_GetMultiLineText7(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(label_ms), (*C.struct_miqt_string)(text_ms), (*C.bool)(unsafe.Pointer(ok)), flags, inputMethodHints) + var _ms *C.struct_miqt_string = C.QInputDialog_GetMultiLineText7(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(label_ms), (*C.struct_miqt_string)(text_ms), (*C.bool)(unsafe.Pointer(ok)), (C.int)(flags), (C.int)(inputMethodHints)) _ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms)) return _ret @@ -753,7 +753,7 @@ func QInputDialog_GetItem8(parent *QWidget, title string, label string, items [] } items_ma := &C.struct_miqt_array{len: C.size_t(len(items)), data: unsafe.Pointer(items_CArray)} defer runtime.KeepAlive(unsafe.Pointer(items_ma)) - var _ms *C.struct_miqt_string = C.QInputDialog_GetItem8(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(label_ms), items_ma, (C.int)(current), (C.bool)(editable), (*C.bool)(unsafe.Pointer(ok)), flags) + var _ms *C.struct_miqt_string = C.QInputDialog_GetItem8(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(label_ms), items_ma, (C.int)(current), (C.bool)(editable), (*C.bool)(unsafe.Pointer(ok)), (C.int)(flags)) _ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms)) return _ret @@ -774,7 +774,7 @@ func QInputDialog_GetItem9(parent *QWidget, title string, label string, items [] } items_ma := &C.struct_miqt_array{len: C.size_t(len(items)), data: unsafe.Pointer(items_CArray)} defer runtime.KeepAlive(unsafe.Pointer(items_ma)) - var _ms *C.struct_miqt_string = C.QInputDialog_GetItem9(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(label_ms), items_ma, (C.int)(current), (C.bool)(editable), (*C.bool)(unsafe.Pointer(ok)), flags, inputMethodHints) + var _ms *C.struct_miqt_string = C.QInputDialog_GetItem9(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(label_ms), items_ma, (C.int)(current), (C.bool)(editable), (*C.bool)(unsafe.Pointer(ok)), (C.int)(flags), (C.int)(inputMethodHints)) _ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms)) return _ret @@ -825,7 +825,7 @@ func QInputDialog_GetInt9(parent *QWidget, title string, label string, value int defer C.free(title_ms) label_ms := miqt_strdupg(label) defer C.free(label_ms) - return (int)(C.QInputDialog_GetInt9(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(label_ms), (C.int)(value), (C.int)(minValue), (C.int)(maxValue), (C.int)(step), (*C.bool)(unsafe.Pointer(ok)), flags)) + return (int)(C.QInputDialog_GetInt9(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(label_ms), (C.int)(value), (C.int)(minValue), (C.int)(maxValue), (C.int)(step), (*C.bool)(unsafe.Pointer(ok)), (C.int)(flags))) } func QInputDialog_GetDouble4(parent *QWidget, title string, label string, value float64) float64 { @@ -873,7 +873,7 @@ func QInputDialog_GetDouble9(parent *QWidget, title string, label string, value defer C.free(title_ms) label_ms := miqt_strdupg(label) defer C.free(label_ms) - return (float64)(C.QInputDialog_GetDouble9(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(label_ms), (C.double)(value), (C.double)(minValue), (C.double)(maxValue), (C.int)(decimals), (*C.bool)(unsafe.Pointer(ok)), flags)) + return (float64)(C.QInputDialog_GetDouble9(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(label_ms), (C.double)(value), (C.double)(minValue), (C.double)(maxValue), (C.int)(decimals), (*C.bool)(unsafe.Pointer(ok)), (C.int)(flags))) } // Delete this object from C++ memory. diff --git a/qt/gen_qinputmethod.go b/qt/gen_qinputmethod.go index e3b2c98b..b36df76f 100644 --- a/qt/gen_qinputmethod.go +++ b/qt/gen_qinputmethod.go @@ -154,7 +154,7 @@ func (this *QInputMethod) Hide() { } func (this *QInputMethod) Update(queries int) { - C.QInputMethod_Update(this.h, queries) + C.QInputMethod_Update(this.h, (C.int)(queries)) } func (this *QInputMethod) Reset() { diff --git a/qt/gen_qiodevice.go b/qt/gen_qiodevice.go index 26a9a459..7373af16 100644 --- a/qt/gen_qiodevice.go +++ b/qt/gen_qiodevice.go @@ -127,7 +127,7 @@ func (this *QIODevice) SetCurrentWriteChannel(channel int) { } func (this *QIODevice) Open(mode int) bool { - return (bool)(C.QIODevice_Open(this.h, mode)) + return (bool)(C.QIODevice_Open(this.h, (C.int)(mode))) } func (this *QIODevice) Close() { diff --git a/qt/gen_qitemselectionmodel.go b/qt/gen_qitemselectionmodel.go index baf35abc..ae594b82 100644 --- a/qt/gen_qitemselectionmodel.go +++ b/qt/gen_qitemselectionmodel.go @@ -343,11 +343,11 @@ func (this *QItemSelectionModel) SetModel(model *QAbstractItemModel) { } func (this *QItemSelectionModel) SetCurrentIndex(index *QModelIndex, command int) { - C.QItemSelectionModel_SetCurrentIndex(this.h, index.cPointer(), command) + C.QItemSelectionModel_SetCurrentIndex(this.h, index.cPointer(), (C.int)(command)) } func (this *QItemSelectionModel) Select(index *QModelIndex, command int) { - C.QItemSelectionModel_Select(this.h, index.cPointer(), command) + C.QItemSelectionModel_Select(this.h, index.cPointer(), (C.int)(command)) } func (this *QItemSelectionModel) Clear() { diff --git a/qt/gen_qkeyeventtransition.go b/qt/gen_qkeyeventtransition.go index 3b4d6934..fd1112e3 100644 --- a/qt/gen_qkeyeventtransition.go +++ b/qt/gen_qkeyeventtransition.go @@ -95,7 +95,7 @@ func (this *QKeyEventTransition) ModifierMask() int { } func (this *QKeyEventTransition) SetModifierMask(modifiers int) { - C.QKeyEventTransition_SetModifierMask(this.h, modifiers) + C.QKeyEventTransition_SetModifierMask(this.h, (C.int)(modifiers)) } func QKeyEventTransition_Tr2(s string, c string) string { diff --git a/qt/gen_qlabel.go b/qt/gen_qlabel.go index ee6ade70..50da77dc 100644 --- a/qt/gen_qlabel.go +++ b/qt/gen_qlabel.go @@ -59,7 +59,7 @@ func NewQLabel3(parent *QWidget) *QLabel { // NewQLabel4 constructs a new QLabel object. func NewQLabel4(parent *QWidget, f int) *QLabel { - ret := C.QLabel_new4(parent.cPointer(), f) + ret := C.QLabel_new4(parent.cPointer(), (C.int)(f)) return newQLabel(ret) } @@ -75,7 +75,7 @@ func NewQLabel5(text string, parent *QWidget) *QLabel { func NewQLabel6(text string, parent *QWidget, f int) *QLabel { text_ms := miqt_strdupg(text) defer C.free(text_ms) - ret := C.QLabel_new6((*C.struct_miqt_string)(text_ms), parent.cPointer(), f) + ret := C.QLabel_new6((*C.struct_miqt_string)(text_ms), parent.cPointer(), (C.int)(f)) return newQLabel(ret) } @@ -147,7 +147,7 @@ func (this *QLabel) Alignment() int { } func (this *QLabel) SetAlignment(alignment int) { - C.QLabel_SetAlignment(this.h, alignment) + C.QLabel_SetAlignment(this.h, (C.int)(alignment)) } func (this *QLabel) SetWordWrap(on bool) { @@ -217,7 +217,7 @@ func (this *QLabel) SetOpenExternalLinks(open bool) { } func (this *QLabel) SetTextInteractionFlags(flags int) { - C.QLabel_SetTextInteractionFlags(this.h, flags) + C.QLabel_SetTextInteractionFlags(this.h, (C.int)(flags)) } func (this *QLabel) TextInteractionFlags() int { diff --git a/qt/gen_qlayout.go b/qt/gen_qlayout.go index 0beee88e..f0ebe6a2 100644 --- a/qt/gen_qlayout.go +++ b/qt/gen_qlayout.go @@ -113,11 +113,11 @@ func (this *QLayout) ContentsRect() *QRect { } func (this *QLayout) SetAlignment(w *QWidget, alignment int) bool { - return (bool)(C.QLayout_SetAlignment(this.h, w.cPointer(), alignment)) + return (bool)(C.QLayout_SetAlignment(this.h, w.cPointer(), (C.int)(alignment))) } func (this *QLayout) SetAlignment2(l *QLayout, alignment int) bool { - return (bool)(C.QLayout_SetAlignment2(this.h, l.cPointer(), alignment)) + return (bool)(C.QLayout_SetAlignment2(this.h, l.cPointer(), (C.int)(alignment))) } func (this *QLayout) SetSizeConstraint(sizeConstraint QLayout__SizeConstraint) { @@ -318,7 +318,7 @@ func QLayout_TrUtf83(s string, c string, n int) string { } func (this *QLayout) ReplaceWidget3(from *QWidget, to *QWidget, options int) *QLayoutItem { - return newQLayoutItem_U(unsafe.Pointer(C.QLayout_ReplaceWidget3(this.h, from.cPointer(), to.cPointer(), options))) + return newQLayoutItem_U(unsafe.Pointer(C.QLayout_ReplaceWidget3(this.h, from.cPointer(), to.cPointer(), (C.int)(options)))) } // Delete this object from C++ memory. diff --git a/qt/gen_qlayoutitem.go b/qt/gen_qlayoutitem.go index 1c1c3cd4..572f860a 100644 --- a/qt/gen_qlayoutitem.go +++ b/qt/gen_qlayoutitem.go @@ -108,7 +108,7 @@ func (this *QLayoutItem) Alignment() int { } func (this *QLayoutItem) SetAlignment(a int) { - C.QLayoutItem_SetAlignment(this.h, a) + C.QLayoutItem_SetAlignment(this.h, (C.int)(a)) } func (this *QLayoutItem) ControlTypes() int { diff --git a/qt/gen_qlibrary.go b/qt/gen_qlibrary.go index 46089fcf..abc79c9c 100644 --- a/qt/gen_qlibrary.go +++ b/qt/gen_qlibrary.go @@ -185,7 +185,7 @@ func (this *QLibrary) ErrorString() string { } func (this *QLibrary) SetLoadHints(hints int) { - C.QLibrary_SetLoadHints(this.h, hints) + C.QLibrary_SetLoadHints(this.h, (C.int)(hints)) } func (this *QLibrary) LoadHints() int { diff --git a/qt/gen_qlineedit.go b/qt/gen_qlineedit.go index cdd78825..bef350b2 100644 --- a/qt/gen_qlineedit.go +++ b/qt/gen_qlineedit.go @@ -213,7 +213,7 @@ func (this *QLineEdit) CursorPositionAt(pos *QPoint) int { } func (this *QLineEdit) SetAlignment(flag int) { - C.QLineEdit_SetAlignment(this.h, flag) + C.QLineEdit_SetAlignment(this.h, (C.int)(flag)) } func (this *QLineEdit) Alignment() int { diff --git a/qt/gen_qlistview.go b/qt/gen_qlistview.go index e1dbd797..77e15e88 100644 --- a/qt/gen_qlistview.go +++ b/qt/gen_qlistview.go @@ -227,7 +227,7 @@ func (this *QListView) IsSelectionRectVisible() bool { } func (this *QListView) SetItemAlignment(alignment int) { - C.QListView_SetItemAlignment(this.h, alignment) + C.QListView_SetItemAlignment(this.h, (C.int)(alignment)) } func (this *QListView) ItemAlignment() int { diff --git a/qt/gen_qlistwidget.go b/qt/gen_qlistwidget.go index 58c080b1..61e868b3 100644 --- a/qt/gen_qlistwidget.go +++ b/qt/gen_qlistwidget.go @@ -144,7 +144,7 @@ func (this *QListWidgetItem) Flags() int { } func (this *QListWidgetItem) SetFlags(flags int) { - C.QListWidgetItem_SetFlags(this.h, flags) + C.QListWidgetItem_SetFlags(this.h, (C.int)(flags)) } func (this *QListWidgetItem) Text() string { @@ -471,7 +471,7 @@ func (this *QListWidget) SetCurrentItem(item *QListWidgetItem) { } func (this *QListWidget) SetCurrentItem2(item *QListWidgetItem, command int) { - C.QListWidget_SetCurrentItem2(this.h, item.cPointer(), command) + C.QListWidget_SetCurrentItem2(this.h, item.cPointer(), (C.int)(command)) } func (this *QListWidget) CurrentRow() int { @@ -483,7 +483,7 @@ func (this *QListWidget) SetCurrentRow(row int) { } func (this *QListWidget) SetCurrentRow2(row int, command int) { - C.QListWidget_SetCurrentRow2(this.h, (C.int)(row), command) + C.QListWidget_SetCurrentRow2(this.h, (C.int)(row), (C.int)(command)) } func (this *QListWidget) ItemAt(p *QPoint) *QListWidgetItem { @@ -563,7 +563,7 @@ func (this *QListWidget) SelectedItems() []*QListWidgetItem { func (this *QListWidget) FindItems(text string, flags int) []*QListWidgetItem { text_ms := miqt_strdupg(text) defer C.free(text_ms) - var _ma *C.struct_miqt_array = C.QListWidget_FindItems(this.h, (*C.struct_miqt_string)(text_ms), flags) + var _ma *C.struct_miqt_array = C.QListWidget_FindItems(this.h, (*C.struct_miqt_string)(text_ms), (C.int)(flags)) _ret := make([]*QListWidgetItem, int(_ma.len)) _outCast := (*[0xffff]*C.QListWidgetItem)(unsafe.Pointer(_ma.data)) // hey ya for i := 0; i < int(_ma.len); i++ { diff --git a/qt/gen_qlocale.go b/qt/gen_qlocale.go index 4c74f67b..ae64f5e4 100644 --- a/qt/gen_qlocale.go +++ b/qt/gen_qlocale.go @@ -1653,7 +1653,7 @@ func QLocale_CountriesForLanguage(lang QLocale__Language) []QLocale__Country { } func (this *QLocale) SetNumberOptions(options int) { - C.QLocale_SetNumberOptions(this.h, options) + C.QLocale_SetNumberOptions(this.h, (C.int)(options)) } func (this *QLocale) NumberOptions() int { @@ -1958,7 +1958,7 @@ func (this *QLocale) FormattedDataSize2(bytes int64, precision int) string { } func (this *QLocale) FormattedDataSize3(bytes int64, precision int, format int) string { - var _ms *C.struct_miqt_string = C.QLocale_FormattedDataSize3(this.h, (C.longlong)(bytes), (C.int)(precision), format) + var _ms *C.struct_miqt_string = C.QLocale_FormattedDataSize3(this.h, (C.longlong)(bytes), (C.int)(precision), (C.int)(format)) _ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms)) return _ret @@ -1972,7 +1972,7 @@ func (this *QLocale) FormattedDataSize22(bytes int64, precision int) string { } func (this *QLocale) FormattedDataSize32(bytes int64, precision int, format int) string { - var _ms *C.struct_miqt_string = C.QLocale_FormattedDataSize32(this.h, (C.longlong)(bytes), (C.int)(precision), format) + var _ms *C.struct_miqt_string = C.QLocale_FormattedDataSize32(this.h, (C.longlong)(bytes), (C.int)(precision), (C.int)(format)) _ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms)) return _ret diff --git a/qt/gen_qmainwindow.go b/qt/gen_qmainwindow.go index 5f0942be..9430eb96 100644 --- a/qt/gen_qmainwindow.go +++ b/qt/gen_qmainwindow.go @@ -62,7 +62,7 @@ func NewQMainWindow2(parent *QWidget) *QMainWindow { // NewQMainWindow3 constructs a new QMainWindow object. func NewQMainWindow3(parent *QWidget, flags int) *QMainWindow { - ret := C.QMainWindow_new3(parent.cPointer(), flags) + ret := C.QMainWindow_new3(parent.cPointer(), (C.int)(flags)) return newQMainWindow(ret) } @@ -136,11 +136,11 @@ func (this *QMainWindow) TabPosition(area DockWidgetArea) QTabWidget__TabPositio } func (this *QMainWindow) SetTabPosition(areas int, tabPosition QTabWidget__TabPosition) { - C.QMainWindow_SetTabPosition(this.h, areas, (C.int)(tabPosition)) + C.QMainWindow_SetTabPosition(this.h, (C.int)(areas), (C.int)(tabPosition)) } func (this *QMainWindow) SetDockOptions(options int) { - C.QMainWindow_SetDockOptions(this.h, options) + C.QMainWindow_SetDockOptions(this.h, (C.int)(options)) } func (this *QMainWindow) DockOptions() int { diff --git a/qt/gen_qmdiarea.go b/qt/gen_qmdiarea.go index 42b86def..73aac271 100644 --- a/qt/gen_qmdiarea.go +++ b/qt/gen_qmdiarea.go @@ -312,7 +312,7 @@ func (this *QMdiArea) SubWindowList1(order QMdiArea__WindowOrder) []*QMdiSubWind } func (this *QMdiArea) AddSubWindow2(widget *QWidget, flags int) *QMdiSubWindow { - return newQMdiSubWindow_U(unsafe.Pointer(C.QMdiArea_AddSubWindow2(this.h, widget.cPointer(), flags))) + return newQMdiSubWindow_U(unsafe.Pointer(C.QMdiArea_AddSubWindow2(this.h, widget.cPointer(), (C.int)(flags)))) } func (this *QMdiArea) SetOption2(option QMdiArea__AreaOption, on bool) { diff --git a/qt/gen_qmdisubwindow.go b/qt/gen_qmdisubwindow.go index 63adbf96..533500e7 100644 --- a/qt/gen_qmdisubwindow.go +++ b/qt/gen_qmdisubwindow.go @@ -60,7 +60,7 @@ func NewQMdiSubWindow2(parent *QWidget) *QMdiSubWindow { // NewQMdiSubWindow3 constructs a new QMdiSubWindow object. func NewQMdiSubWindow3(parent *QWidget, flags int) *QMdiSubWindow { - ret := C.QMdiSubWindow_new3(parent.cPointer(), flags) + ret := C.QMdiSubWindow_new3(parent.cPointer(), (C.int)(flags)) return newQMdiSubWindow(ret) } @@ -157,7 +157,7 @@ func (this *QMdiSubWindow) MdiArea() *QMdiArea { } func (this *QMdiSubWindow) WindowStateChanged(oldState int, newState int) { - C.QMdiSubWindow_WindowStateChanged(this.h, oldState, newState) + C.QMdiSubWindow_WindowStateChanged(this.h, (C.int)(oldState), (C.int)(newState)) } func (this *QMdiSubWindow) OnWindowStateChanged(slot func(oldState int, newState int)) { C.QMdiSubWindow_connect_WindowStateChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) diff --git a/qt/gen_qmessagebox.go b/qt/gen_qmessagebox.go index b4e634a8..fbf87f1b 100644 --- a/qt/gen_qmessagebox.go +++ b/qt/gen_qmessagebox.go @@ -133,7 +133,7 @@ func NewQMessageBox5(icon QMessageBox__Icon, title string, text string, buttons defer C.free(title_ms) text_ms := miqt_strdupg(text) defer C.free(text_ms) - ret := C.QMessageBox_new5((C.int)(icon), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), buttons) + ret := C.QMessageBox_new5((C.int)(icon), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), (C.int)(buttons)) return newQMessageBox(ret) } @@ -143,7 +143,7 @@ func NewQMessageBox6(icon QMessageBox__Icon, title string, text string, buttons defer C.free(title_ms) text_ms := miqt_strdupg(text) defer C.free(text_ms) - ret := C.QMessageBox_new6((C.int)(icon), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), buttons, parent.cPointer()) + ret := C.QMessageBox_new6((C.int)(icon), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), (C.int)(buttons), parent.cPointer()) return newQMessageBox(ret) } @@ -153,7 +153,7 @@ func NewQMessageBox7(icon QMessageBox__Icon, title string, text string, buttons defer C.free(title_ms) text_ms := miqt_strdupg(text) defer C.free(text_ms) - ret := C.QMessageBox_new7((C.int)(icon), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), buttons, parent.cPointer(), flags) + ret := C.QMessageBox_new7((C.int)(icon), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), (C.int)(buttons), parent.cPointer(), (C.int)(flags)) return newQMessageBox(ret) } @@ -173,7 +173,7 @@ func NewQMessageBox9(title string, text string, icon QMessageBox__Icon, button0 defer C.free(title_ms) text_ms := miqt_strdupg(text) defer C.free(text_ms) - ret := C.QMessageBox_new9((*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), (C.int)(icon), (C.int)(button0), (C.int)(button1), (C.int)(button2), parent.cPointer(), f) + ret := C.QMessageBox_new9((*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), (C.int)(icon), (C.int)(button0), (C.int)(button1), (C.int)(button2), parent.cPointer(), (C.int)(f)) return newQMessageBox(ret) } @@ -233,7 +233,7 @@ func (this *QMessageBox) ButtonRole(button *QAbstractButton) QMessageBox__Button } func (this *QMessageBox) SetStandardButtons(buttons int) { - C.QMessageBox_SetStandardButtons(this.h, buttons) + C.QMessageBox_SetStandardButtons(this.h, (C.int)(buttons)) } func (this *QMessageBox) StandardButtons() int { @@ -317,7 +317,7 @@ func (this *QMessageBox) SetTextFormat(format TextFormat) { } func (this *QMessageBox) SetTextInteractionFlags(flags int) { - C.QMessageBox_SetTextInteractionFlags(this.h, flags) + C.QMessageBox_SetTextInteractionFlags(this.h, (C.int)(flags)) } func (this *QMessageBox) TextInteractionFlags() int { @@ -605,7 +605,7 @@ func QMessageBox_Information42(parent *QWidget, title string, text string, butto defer C.free(title_ms) text_ms := miqt_strdupg(text) defer C.free(text_ms) - return (QMessageBox__StandardButton)(C.QMessageBox_Information42(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), buttons)) + return (QMessageBox__StandardButton)(C.QMessageBox_Information42(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), (C.int)(buttons))) } func QMessageBox_Information5(parent *QWidget, title string, text string, buttons int, defaultButton QMessageBox__StandardButton) QMessageBox__StandardButton { @@ -613,7 +613,7 @@ func QMessageBox_Information5(parent *QWidget, title string, text string, button defer C.free(title_ms) text_ms := miqt_strdupg(text) defer C.free(text_ms) - return (QMessageBox__StandardButton)(C.QMessageBox_Information5(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), buttons, (C.int)(defaultButton))) + return (QMessageBox__StandardButton)(C.QMessageBox_Information5(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), (C.int)(buttons), (C.int)(defaultButton))) } func QMessageBox_Question42(parent *QWidget, title string, text string, buttons int) QMessageBox__StandardButton { @@ -621,7 +621,7 @@ func QMessageBox_Question42(parent *QWidget, title string, text string, buttons defer C.free(title_ms) text_ms := miqt_strdupg(text) defer C.free(text_ms) - return (QMessageBox__StandardButton)(C.QMessageBox_Question42(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), buttons)) + return (QMessageBox__StandardButton)(C.QMessageBox_Question42(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), (C.int)(buttons))) } func QMessageBox_Question5(parent *QWidget, title string, text string, buttons int, defaultButton QMessageBox__StandardButton) QMessageBox__StandardButton { @@ -629,7 +629,7 @@ func QMessageBox_Question5(parent *QWidget, title string, text string, buttons i defer C.free(title_ms) text_ms := miqt_strdupg(text) defer C.free(text_ms) - return (QMessageBox__StandardButton)(C.QMessageBox_Question5(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), buttons, (C.int)(defaultButton))) + return (QMessageBox__StandardButton)(C.QMessageBox_Question5(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), (C.int)(buttons), (C.int)(defaultButton))) } func QMessageBox_Warning42(parent *QWidget, title string, text string, buttons int) QMessageBox__StandardButton { @@ -637,7 +637,7 @@ func QMessageBox_Warning42(parent *QWidget, title string, text string, buttons i defer C.free(title_ms) text_ms := miqt_strdupg(text) defer C.free(text_ms) - return (QMessageBox__StandardButton)(C.QMessageBox_Warning42(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), buttons)) + return (QMessageBox__StandardButton)(C.QMessageBox_Warning42(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), (C.int)(buttons))) } func QMessageBox_Warning5(parent *QWidget, title string, text string, buttons int, defaultButton QMessageBox__StandardButton) QMessageBox__StandardButton { @@ -645,7 +645,7 @@ func QMessageBox_Warning5(parent *QWidget, title string, text string, buttons in defer C.free(title_ms) text_ms := miqt_strdupg(text) defer C.free(text_ms) - return (QMessageBox__StandardButton)(C.QMessageBox_Warning5(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), buttons, (C.int)(defaultButton))) + return (QMessageBox__StandardButton)(C.QMessageBox_Warning5(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), (C.int)(buttons), (C.int)(defaultButton))) } func QMessageBox_Critical42(parent *QWidget, title string, text string, buttons int) QMessageBox__StandardButton { @@ -653,7 +653,7 @@ func QMessageBox_Critical42(parent *QWidget, title string, text string, buttons defer C.free(title_ms) text_ms := miqt_strdupg(text) defer C.free(text_ms) - return (QMessageBox__StandardButton)(C.QMessageBox_Critical42(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), buttons)) + return (QMessageBox__StandardButton)(C.QMessageBox_Critical42(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), (C.int)(buttons))) } func QMessageBox_Critical5(parent *QWidget, title string, text string, buttons int, defaultButton QMessageBox__StandardButton) QMessageBox__StandardButton { @@ -661,7 +661,7 @@ func QMessageBox_Critical5(parent *QWidget, title string, text string, buttons i defer C.free(title_ms) text_ms := miqt_strdupg(text) defer C.free(text_ms) - return (QMessageBox__StandardButton)(C.QMessageBox_Critical5(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), buttons, (C.int)(defaultButton))) + return (QMessageBox__StandardButton)(C.QMessageBox_Critical5(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), (C.int)(buttons), (C.int)(defaultButton))) } func QMessageBox_AboutQt2(parent *QWidget, title string) { diff --git a/qt/gen_qmouseeventtransition.go b/qt/gen_qmouseeventtransition.go index 87e954ce..a9f38488 100644 --- a/qt/gen_qmouseeventtransition.go +++ b/qt/gen_qmouseeventtransition.go @@ -95,7 +95,7 @@ func (this *QMouseEventTransition) ModifierMask() int { } func (this *QMouseEventTransition) SetModifierMask(modifiers int) { - C.QMouseEventTransition_SetModifierMask(this.h, modifiers) + C.QMouseEventTransition_SetModifierMask(this.h, (C.int)(modifiers)) } func (this *QMouseEventTransition) HitTestPath() *QPainterPath { diff --git a/qt/gen_qpaintengine.go b/qt/gen_qpaintengine.go index 6d0ca6f5..6537a5f5 100644 --- a/qt/gen_qpaintengine.go +++ b/qt/gen_qpaintengine.go @@ -315,19 +315,19 @@ func (this *QPaintEngine) FixNegRect(x *int, y *int, w *int, h *int) { } func (this *QPaintEngine) TestDirty(df int) bool { - return (bool)(C.QPaintEngine_TestDirty(this.h, df)) + return (bool)(C.QPaintEngine_TestDirty(this.h, (C.int)(df))) } func (this *QPaintEngine) SetDirty(df int) { - C.QPaintEngine_SetDirty(this.h, df) + C.QPaintEngine_SetDirty(this.h, (C.int)(df)) } func (this *QPaintEngine) ClearDirty(df int) { - C.QPaintEngine_ClearDirty(this.h, df) + C.QPaintEngine_ClearDirty(this.h, (C.int)(df)) } func (this *QPaintEngine) HasFeature(feature int) bool { - return (bool)(C.QPaintEngine_HasFeature(this.h, feature)) + return (bool)(C.QPaintEngine_HasFeature(this.h, (C.int)(feature))) } func (this *QPaintEngine) Painter() *QPainter { @@ -343,7 +343,7 @@ func (this *QPaintEngine) IsExtended() bool { } func (this *QPaintEngine) DrawImage4(r *QRectF, pm *QImage, sr *QRectF, flags int) { - C.QPaintEngine_DrawImage4(this.h, r.cPointer(), pm.cPointer(), sr.cPointer(), flags) + C.QPaintEngine_DrawImage4(this.h, r.cPointer(), pm.cPointer(), sr.cPointer(), (C.int)(flags)) } // Delete this object from C++ memory. diff --git a/qt/gen_qpainter.go b/qt/gen_qpainter.go index 78acaf97..ce726b9a 100644 --- a/qt/gen_qpainter.go +++ b/qt/gen_qpainter.go @@ -995,7 +995,7 @@ func (this *QPainter) SetRenderHint(hint QPainter__RenderHint) { } func (this *QPainter) SetRenderHints(hints int) { - C.QPainter_SetRenderHints(this.h, hints) + C.QPainter_SetRenderHints(this.h, (C.int)(hints)) } func (this *QPainter) RenderHints() int { @@ -1127,23 +1127,23 @@ func (this *QPainter) DrawTiledPixmap33(param1 *QRect, param2 *QPixmap, param3 * } func (this *QPainter) DrawPixmapFragments4(fragments *QPainter__PixmapFragment, fragmentCount int, pixmap *QPixmap, hints int) { - C.QPainter_DrawPixmapFragments4(this.h, fragments.cPointer(), (C.int)(fragmentCount), pixmap.cPointer(), hints) + C.QPainter_DrawPixmapFragments4(this.h, fragments.cPointer(), (C.int)(fragmentCount), pixmap.cPointer(), (C.int)(hints)) } func (this *QPainter) DrawImage42(targetRect *QRectF, image *QImage, sourceRect *QRectF, flags int) { - C.QPainter_DrawImage42(this.h, targetRect.cPointer(), image.cPointer(), sourceRect.cPointer(), flags) + C.QPainter_DrawImage42(this.h, targetRect.cPointer(), image.cPointer(), sourceRect.cPointer(), (C.int)(flags)) } func (this *QPainter) DrawImage43(targetRect *QRect, image *QImage, sourceRect *QRect, flags int) { - C.QPainter_DrawImage43(this.h, targetRect.cPointer(), image.cPointer(), sourceRect.cPointer(), flags) + C.QPainter_DrawImage43(this.h, targetRect.cPointer(), image.cPointer(), sourceRect.cPointer(), (C.int)(flags)) } func (this *QPainter) DrawImage44(p *QPointF, image *QImage, sr *QRectF, flags int) { - C.QPainter_DrawImage44(this.h, p.cPointer(), image.cPointer(), sr.cPointer(), flags) + C.QPainter_DrawImage44(this.h, p.cPointer(), image.cPointer(), sr.cPointer(), (C.int)(flags)) } func (this *QPainter) DrawImage45(p *QPoint, image *QImage, sr *QRect, flags int) { - C.QPainter_DrawImage45(this.h, p.cPointer(), image.cPointer(), sr.cPointer(), flags) + C.QPainter_DrawImage45(this.h, p.cPointer(), image.cPointer(), sr.cPointer(), (C.int)(flags)) } func (this *QPainter) DrawImage46(x int, y int, image *QImage, sx int) { @@ -1163,7 +1163,7 @@ func (this *QPainter) DrawImage72(x int, y int, image *QImage, sx int, sy int, s } func (this *QPainter) DrawImage82(x int, y int, image *QImage, sx int, sy int, sw int, sh int, flags int) { - C.QPainter_DrawImage82(this.h, (C.int)(x), (C.int)(y), image.cPointer(), (C.int)(sx), (C.int)(sy), (C.int)(sw), (C.int)(sh), flags) + C.QPainter_DrawImage82(this.h, (C.int)(x), (C.int)(y), image.cPointer(), (C.int)(sx), (C.int)(sy), (C.int)(sw), (C.int)(sh), (C.int)(flags)) } func (this *QPainter) DrawText42(r *QRectF, flags int, text string, br *QRectF) { @@ -1204,7 +1204,7 @@ func (this *QPainter) SetRenderHint2(hint QPainter__RenderHint, on bool) { } func (this *QPainter) SetRenderHints2(hints int, on bool) { - C.QPainter_SetRenderHints2(this.h, hints, (C.bool)(on)) + C.QPainter_SetRenderHints2(this.h, (C.int)(hints), (C.bool)(on)) } func QPainter_SetRedirected3(device *QPaintDevice, replacement *QPaintDevice, offset *QPoint) { diff --git a/qt/gen_qpixmap.go b/qt/gen_qpixmap.go index cafd7984..4ad443f2 100644 --- a/qt/gen_qpixmap.go +++ b/qt/gen_qpixmap.go @@ -84,7 +84,7 @@ func NewQPixmap7(fileName string, format string, flags int) *QPixmap { defer C.free(fileName_ms) format_Cstring := C.CString(format) defer C.free(unsafe.Pointer(format_Cstring)) - ret := C.QPixmap_new7((*C.struct_miqt_string)(fileName_ms), format_Cstring, flags) + ret := C.QPixmap_new7((*C.struct_miqt_string)(fileName_ms), format_Cstring, (C.int)(flags)) return newQPixmap(ret) } @@ -490,14 +490,14 @@ func (this *QPixmap) Transformed22(param1 *QTransform, mode TransformationMode) } func QPixmap_FromImage2(image *QImage, flags int) *QPixmap { - _ret := C.QPixmap_FromImage2(image.cPointer(), flags) + _ret := C.QPixmap_FromImage2(image.cPointer(), (C.int)(flags)) _goptr := newQPixmap(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func QPixmap_FromImageReader2(imageReader *QImageReader, flags int) *QPixmap { - _ret := C.QPixmap_FromImageReader2(imageReader.cPointer(), flags) + _ret := C.QPixmap_FromImageReader2(imageReader.cPointer(), (C.int)(flags)) _goptr := newQPixmap(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr @@ -516,7 +516,7 @@ func (this *QPixmap) Load3(fileName string, format string, flags int) bool { defer C.free(fileName_ms) format_Cstring := C.CString(format) defer C.free(unsafe.Pointer(format_Cstring)) - return (bool)(C.QPixmap_Load3(this.h, (*C.struct_miqt_string)(fileName_ms), format_Cstring, flags)) + return (bool)(C.QPixmap_Load3(this.h, (*C.struct_miqt_string)(fileName_ms), format_Cstring, (C.int)(flags))) } func (this *QPixmap) LoadFromData3(buf *byte, lenVal uint, format string) bool { @@ -528,7 +528,7 @@ func (this *QPixmap) LoadFromData3(buf *byte, lenVal uint, format string) bool { func (this *QPixmap) LoadFromData4(buf *byte, lenVal uint, format string, flags int) bool { format_Cstring := C.CString(format) defer C.free(unsafe.Pointer(format_Cstring)) - return (bool)(C.QPixmap_LoadFromData4(this.h, (*C.uchar)(unsafe.Pointer(buf)), (C.uint)(lenVal), format_Cstring, flags)) + return (bool)(C.QPixmap_LoadFromData4(this.h, (*C.uchar)(unsafe.Pointer(buf)), (C.uint)(lenVal), format_Cstring, (C.int)(flags))) } func (this *QPixmap) LoadFromData2(data *QByteArray, format string) bool { @@ -540,7 +540,7 @@ func (this *QPixmap) LoadFromData2(data *QByteArray, format string) bool { func (this *QPixmap) LoadFromData32(data *QByteArray, format string, flags int) bool { format_Cstring := C.CString(format) defer C.free(unsafe.Pointer(format_Cstring)) - return (bool)(C.QPixmap_LoadFromData32(this.h, data.cPointer(), format_Cstring, flags)) + return (bool)(C.QPixmap_LoadFromData32(this.h, data.cPointer(), format_Cstring, (C.int)(flags))) } func (this *QPixmap) Save2(fileName string, format string) bool { @@ -572,7 +572,7 @@ func (this *QPixmap) Save32(device *QIODevice, format string, quality int) bool } func (this *QPixmap) ConvertFromImage2(img *QImage, flags int) bool { - return (bool)(C.QPixmap_ConvertFromImage2(this.h, img.cPointer(), flags)) + return (bool)(C.QPixmap_ConvertFromImage2(this.h, img.cPointer(), (C.int)(flags))) } func (this *QPixmap) Copy1(rect *QRect) *QPixmap { diff --git a/qt/gen_qplaintextedit.go b/qt/gen_qplaintextedit.go index f9a01646..1b6b644c 100644 --- a/qt/gen_qplaintextedit.go +++ b/qt/gen_qplaintextedit.go @@ -135,7 +135,7 @@ func (this *QPlainTextEdit) SetReadOnly(ro bool) { } func (this *QPlainTextEdit) SetTextInteractionFlags(flags int) { - C.QPlainTextEdit_SetTextInteractionFlags(this.h, flags) + C.QPlainTextEdit_SetTextInteractionFlags(this.h, (C.int)(flags)) } func (this *QPlainTextEdit) TextInteractionFlags() int { @@ -665,15 +665,15 @@ func QPlainTextEdit_TrUtf83(s string, c string, n int) string { func (this *QPlainTextEdit) Find22(exp string, options int) bool { exp_ms := miqt_strdupg(exp) defer C.free(exp_ms) - return (bool)(C.QPlainTextEdit_Find22(this.h, (*C.struct_miqt_string)(exp_ms), options)) + return (bool)(C.QPlainTextEdit_Find22(this.h, (*C.struct_miqt_string)(exp_ms), (C.int)(options))) } func (this *QPlainTextEdit) Find23(exp *QRegExp, options int) bool { - return (bool)(C.QPlainTextEdit_Find23(this.h, exp.cPointer(), options)) + return (bool)(C.QPlainTextEdit_Find23(this.h, exp.cPointer(), (C.int)(options))) } func (this *QPlainTextEdit) Find24(exp *QRegularExpression, options int) bool { - return (bool)(C.QPlainTextEdit_Find24(this.h, exp.cPointer(), options)) + return (bool)(C.QPlainTextEdit_Find24(this.h, exp.cPointer(), (C.int)(options))) } func (this *QPlainTextEdit) MoveCursor2(operation QTextCursor__MoveOperation, mode QTextCursor__MoveMode) { diff --git a/qt/gen_qpluginloader.go b/qt/gen_qpluginloader.go index 4cf6596e..7d60df5b 100644 --- a/qt/gen_qpluginloader.go +++ b/qt/gen_qpluginloader.go @@ -155,7 +155,7 @@ func (this *QPluginLoader) ErrorString() string { } func (this *QPluginLoader) SetLoadHints(loadHints int) { - C.QPluginLoader_SetLoadHints(this.h, loadHints) + C.QPluginLoader_SetLoadHints(this.h, (C.int)(loadHints)) } func (this *QPluginLoader) LoadHints() int { diff --git a/qt/gen_qprocess.go b/qt/gen_qprocess.go index f70b9ea8..f4d8a2c0 100644 --- a/qt/gen_qprocess.go +++ b/qt/gen_qprocess.go @@ -773,17 +773,17 @@ func (this *QProcess) Start3(program string, arguments []string, mode int) { } arguments_ma := &C.struct_miqt_array{len: C.size_t(len(arguments)), data: unsafe.Pointer(arguments_CArray)} defer runtime.KeepAlive(unsafe.Pointer(arguments_ma)) - C.QProcess_Start3(this.h, (*C.struct_miqt_string)(program_ms), arguments_ma, mode) + C.QProcess_Start3(this.h, (*C.struct_miqt_string)(program_ms), arguments_ma, (C.int)(mode)) } func (this *QProcess) Start22(command string, mode int) { command_ms := miqt_strdupg(command) defer C.free(command_ms) - C.QProcess_Start22(this.h, (*C.struct_miqt_string)(command_ms), mode) + C.QProcess_Start22(this.h, (*C.struct_miqt_string)(command_ms), (C.int)(mode)) } func (this *QProcess) Start1(mode int) { - C.QProcess_Start1(this.h, mode) + C.QProcess_Start1(this.h, (C.int)(mode)) } func (this *QProcess) StartDetached1(pid *int64) bool { @@ -791,19 +791,19 @@ func (this *QProcess) StartDetached1(pid *int64) bool { } func (this *QProcess) Open1(mode int) bool { - return (bool)(C.QProcess_Open1(this.h, mode)) + return (bool)(C.QProcess_Open1(this.h, (C.int)(mode))) } func (this *QProcess) SetStandardOutputFile2(fileName string, mode int) { fileName_ms := miqt_strdupg(fileName) defer C.free(fileName_ms) - C.QProcess_SetStandardOutputFile2(this.h, (*C.struct_miqt_string)(fileName_ms), mode) + C.QProcess_SetStandardOutputFile2(this.h, (*C.struct_miqt_string)(fileName_ms), (C.int)(mode)) } func (this *QProcess) SetStandardErrorFile2(fileName string, mode int) { fileName_ms := miqt_strdupg(fileName) defer C.free(fileName_ms) - C.QProcess_SetStandardErrorFile2(this.h, (*C.struct_miqt_string)(fileName_ms), mode) + C.QProcess_SetStandardErrorFile2(this.h, (*C.struct_miqt_string)(fileName_ms), (C.int)(mode)) } func (this *QProcess) WaitForStarted1(msecs int) bool { diff --git a/qt/gen_qprogressbar.go b/qt/gen_qprogressbar.go index cb5c2f9b..6a211775 100644 --- a/qt/gen_qprogressbar.go +++ b/qt/gen_qprogressbar.go @@ -110,7 +110,7 @@ func (this *QProgressBar) Alignment() int { } func (this *QProgressBar) SetAlignment(alignment int) { - C.QProgressBar_SetAlignment(this.h, alignment) + C.QProgressBar_SetAlignment(this.h, (C.int)(alignment)) } func (this *QProgressBar) SizeHint() *QSize { diff --git a/qt/gen_qprogressdialog.go b/qt/gen_qprogressdialog.go index 6f76bf37..210b2c63 100644 --- a/qt/gen_qprogressdialog.go +++ b/qt/gen_qprogressdialog.go @@ -61,7 +61,7 @@ func NewQProgressDialog3(parent *QWidget) *QProgressDialog { // NewQProgressDialog4 constructs a new QProgressDialog object. func NewQProgressDialog4(parent *QWidget, flags int) *QProgressDialog { - ret := C.QProgressDialog_new4(parent.cPointer(), flags) + ret := C.QProgressDialog_new4(parent.cPointer(), (C.int)(flags)) return newQProgressDialog(ret) } @@ -81,7 +81,7 @@ func NewQProgressDialog6(labelText string, cancelButtonText string, minimum int, defer C.free(labelText_ms) cancelButtonText_ms := miqt_strdupg(cancelButtonText) defer C.free(cancelButtonText_ms) - ret := C.QProgressDialog_new6((*C.struct_miqt_string)(labelText_ms), (*C.struct_miqt_string)(cancelButtonText_ms), (C.int)(minimum), (C.int)(maximum), parent.cPointer(), flags) + ret := C.QProgressDialog_new6((*C.struct_miqt_string)(labelText_ms), (*C.struct_miqt_string)(cancelButtonText_ms), (C.int)(minimum), (C.int)(maximum), parent.cPointer(), (C.int)(flags)) return newQProgressDialog(ret) } diff --git a/qt/gen_qrawfont.go b/qt/gen_qrawfont.go index 1e493b45..604ddf78 100644 --- a/qt/gen_qrawfont.go +++ b/qt/gen_qrawfont.go @@ -176,7 +176,7 @@ func (this *QRawFont) AdvancesForGlyphIndexes2(glyphIndexes []uint, layoutFlags } glyphIndexes_ma := &C.struct_miqt_array{len: C.size_t(len(glyphIndexes)), data: unsafe.Pointer(glyphIndexes_CArray)} defer runtime.KeepAlive(unsafe.Pointer(glyphIndexes_ma)) - var _ma *C.struct_miqt_array = C.QRawFont_AdvancesForGlyphIndexes2(this.h, glyphIndexes_ma, layoutFlags) + var _ma *C.struct_miqt_array = C.QRawFont_AdvancesForGlyphIndexes2(this.h, glyphIndexes_ma, (C.int)(layoutFlags)) _ret := make([]QPointF, int(_ma.len)) _outCast := (*[0xffff]*C.QPointF)(unsafe.Pointer(_ma.data)) // hey ya for i := 0; i < int(_ma.len); i++ { @@ -198,7 +198,7 @@ func (this *QRawFont) AdvancesForGlyphIndexes3(glyphIndexes *uint, advances *QPo } func (this *QRawFont) AdvancesForGlyphIndexes4(glyphIndexes *uint, advances *QPointF, numGlyphs int, layoutFlags int) bool { - return (bool)(C.QRawFont_AdvancesForGlyphIndexes4(this.h, (*C.uint)(unsafe.Pointer(glyphIndexes)), advances.cPointer(), (C.int)(numGlyphs), layoutFlags)) + return (bool)(C.QRawFont_AdvancesForGlyphIndexes4(this.h, (*C.uint)(unsafe.Pointer(glyphIndexes)), advances.cPointer(), (C.int)(numGlyphs), (C.int)(layoutFlags))) } func (this *QRawFont) AlphaMapForGlyph(glyphIndex uint) *QImage { diff --git a/qt/gen_qregularexpression.go b/qt/gen_qregularexpression.go index 88c2c2eb..dfefe8b7 100644 --- a/qt/gen_qregularexpression.go +++ b/qt/gen_qregularexpression.go @@ -91,7 +91,7 @@ func NewQRegularExpression3(re *QRegularExpression) *QRegularExpression { func NewQRegularExpression4(pattern string, options int) *QRegularExpression { pattern_ms := miqt_strdupg(pattern) defer C.free(pattern_ms) - ret := C.QRegularExpression_new4((*C.struct_miqt_string)(pattern_ms), options) + ret := C.QRegularExpression_new4((*C.struct_miqt_string)(pattern_ms), (C.int)(options)) return newQRegularExpression(ret) } @@ -100,7 +100,7 @@ func (this *QRegularExpression) PatternOptions() int { } func (this *QRegularExpression) SetPatternOptions(options int) { - C.QRegularExpression_SetPatternOptions(this.h, options) + C.QRegularExpression_SetPatternOptions(this.h, (C.int)(options)) } func (this *QRegularExpression) OperatorAssign(re *QRegularExpression) { @@ -235,7 +235,7 @@ func (this *QRegularExpression) Match3(subject string, offset int, matchType QRe func (this *QRegularExpression) Match4(subject string, offset int, matchType QRegularExpression__MatchType, matchOptions int) *QRegularExpressionMatch { subject_ms := miqt_strdupg(subject) defer C.free(subject_ms) - _ret := C.QRegularExpression_Match4(this.h, (*C.struct_miqt_string)(subject_ms), (C.int)(offset), (C.int)(matchType), matchOptions) + _ret := C.QRegularExpression_Match4(this.h, (*C.struct_miqt_string)(subject_ms), (C.int)(offset), (C.int)(matchType), (C.int)(matchOptions)) _goptr := newQRegularExpressionMatch(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr @@ -262,7 +262,7 @@ func (this *QRegularExpression) GlobalMatch3(subject string, offset int, matchTy func (this *QRegularExpression) GlobalMatch4(subject string, offset int, matchType QRegularExpression__MatchType, matchOptions int) *QRegularExpressionMatchIterator { subject_ms := miqt_strdupg(subject) defer C.free(subject_ms) - _ret := C.QRegularExpression_GlobalMatch4(this.h, (*C.struct_miqt_string)(subject_ms), (C.int)(offset), (C.int)(matchType), matchOptions) + _ret := C.QRegularExpression_GlobalMatch4(this.h, (*C.struct_miqt_string)(subject_ms), (C.int)(offset), (C.int)(matchType), (C.int)(matchOptions)) _goptr := newQRegularExpressionMatchIterator(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr diff --git a/qt/gen_qsavefile.go b/qt/gen_qsavefile.go index 475c6a5d..37f5f6e8 100644 --- a/qt/gen_qsavefile.go +++ b/qt/gen_qsavefile.go @@ -100,7 +100,7 @@ func (this *QSaveFile) SetFileName(name string) { } func (this *QSaveFile) Open(flags int) bool { - return (bool)(C.QSaveFile_Open(this.h, flags)) + return (bool)(C.QSaveFile_Open(this.h, (C.int)(flags))) } func (this *QSaveFile) Commit() bool { diff --git a/qt/gen_qscreen.go b/qt/gen_qscreen.go index a4deaf5e..bfbcada8 100644 --- a/qt/gen_qscreen.go +++ b/qt/gen_qscreen.go @@ -214,7 +214,7 @@ func (this *QScreen) OrientationUpdateMask() int { } func (this *QScreen) SetOrientationUpdateMask(mask int) { - C.QScreen_SetOrientationUpdateMask(this.h, mask) + C.QScreen_SetOrientationUpdateMask(this.h, (C.int)(mask)) } func (this *QScreen) AngleBetween(a ScreenOrientation, b ScreenOrientation) int { diff --git a/qt/gen_qscrollarea.go b/qt/gen_qscrollarea.go index 6d9ff84c..b71d6263 100644 --- a/qt/gen_qscrollarea.go +++ b/qt/gen_qscrollarea.go @@ -106,7 +106,7 @@ func (this *QScrollArea) Alignment() int { } func (this *QScrollArea) SetAlignment(alignment int) { - C.QScrollArea_SetAlignment(this.h, alignment) + C.QScrollArea_SetAlignment(this.h, (C.int)(alignment)) } func (this *QScrollArea) EnsureVisible(x int, y int) { diff --git a/qt/gen_qsortfilterproxymodel.go b/qt/gen_qsortfilterproxymodel.go index 8a10a364..b57c7011 100644 --- a/qt/gen_qsortfilterproxymodel.go +++ b/qt/gen_qsortfilterproxymodel.go @@ -620,7 +620,7 @@ func (this *QSortFilterProxyModel) Match4(start *QModelIndex, role int, value *Q } func (this *QSortFilterProxyModel) Match5(start *QModelIndex, role int, value *QVariant, hits int, flags int) []QModelIndex { - var _ma *C.struct_miqt_array = C.QSortFilterProxyModel_Match5(this.h, start.cPointer(), (C.int)(role), value.cPointer(), (C.int)(hits), flags) + var _ma *C.struct_miqt_array = C.QSortFilterProxyModel_Match5(this.h, start.cPointer(), (C.int)(role), value.cPointer(), (C.int)(hits), (C.int)(flags)) _ret := make([]QModelIndex, int(_ma.len)) _outCast := (*[0xffff]*C.QModelIndex)(unsafe.Pointer(_ma.data)) // hey ya for i := 0; i < int(_ma.len); i++ { diff --git a/qt/gen_qsplashscreen.go b/qt/gen_qsplashscreen.go index 4e8561a8..5ea71e4e 100644 --- a/qt/gen_qsplashscreen.go +++ b/qt/gen_qsplashscreen.go @@ -63,7 +63,7 @@ func NewQSplashScreen4(pixmap *QPixmap) *QSplashScreen { // NewQSplashScreen5 constructs a new QSplashScreen object. func NewQSplashScreen5(pixmap *QPixmap, f int) *QSplashScreen { - ret := C.QSplashScreen_new5(pixmap.cPointer(), f) + ret := C.QSplashScreen_new5(pixmap.cPointer(), (C.int)(f)) return newQSplashScreen(ret) } @@ -75,7 +75,7 @@ func NewQSplashScreen6(screen *QScreen, pixmap *QPixmap) *QSplashScreen { // NewQSplashScreen7 constructs a new QSplashScreen object. func NewQSplashScreen7(screen *QScreen, pixmap *QPixmap, f int) *QSplashScreen { - ret := C.QSplashScreen_new7(screen.cPointer(), pixmap.cPointer(), f) + ret := C.QSplashScreen_new7(screen.cPointer(), pixmap.cPointer(), (C.int)(f)) return newQSplashScreen(ret) } @@ -87,7 +87,7 @@ func NewQSplashScreen8(parent *QWidget, pixmap *QPixmap) *QSplashScreen { // NewQSplashScreen9 constructs a new QSplashScreen object. func NewQSplashScreen9(parent *QWidget, pixmap *QPixmap, f int) *QSplashScreen { - ret := C.QSplashScreen_new9(parent.cPointer(), pixmap.cPointer(), f) + ret := C.QSplashScreen_new9(parent.cPointer(), pixmap.cPointer(), (C.int)(f)) return newQSplashScreen(ret) } diff --git a/qt/gen_qstandarditemmodel.go b/qt/gen_qstandarditemmodel.go index de261c50..16e69f7d 100644 --- a/qt/gen_qstandarditemmodel.go +++ b/qt/gen_qstandarditemmodel.go @@ -182,7 +182,7 @@ func (this *QStandardItem) TextAlignment() int { } func (this *QStandardItem) SetTextAlignment(textAlignment int) { - C.QStandardItem_SetTextAlignment(this.h, textAlignment) + C.QStandardItem_SetTextAlignment(this.h, (C.int)(textAlignment)) } func (this *QStandardItem) Background() *QBrush { @@ -246,7 +246,7 @@ func (this *QStandardItem) Flags() int { } func (this *QStandardItem) SetFlags(flags int) { - C.QStandardItem_SetFlags(this.h, flags) + C.QStandardItem_SetFlags(this.h, (C.int)(flags)) } func (this *QStandardItem) IsEnabled() bool { @@ -1107,7 +1107,7 @@ func (this *QStandardItemModel) TakeItem2(row int, column int) *QStandardItem { func (this *QStandardItemModel) FindItems2(text string, flags int) []*QStandardItem { text_ms := miqt_strdupg(text) defer C.free(text_ms) - var _ma *C.struct_miqt_array = C.QStandardItemModel_FindItems2(this.h, (*C.struct_miqt_string)(text_ms), flags) + var _ma *C.struct_miqt_array = C.QStandardItemModel_FindItems2(this.h, (*C.struct_miqt_string)(text_ms), (C.int)(flags)) _ret := make([]*QStandardItem, int(_ma.len)) _outCast := (*[0xffff]*C.QStandardItem)(unsafe.Pointer(_ma.data)) // hey ya for i := 0; i < int(_ma.len); i++ { @@ -1120,7 +1120,7 @@ func (this *QStandardItemModel) FindItems2(text string, flags int) []*QStandardI func (this *QStandardItemModel) FindItems3(text string, flags int, column int) []*QStandardItem { text_ms := miqt_strdupg(text) defer C.free(text_ms) - var _ma *C.struct_miqt_array = C.QStandardItemModel_FindItems3(this.h, (*C.struct_miqt_string)(text_ms), flags, (C.int)(column)) + var _ma *C.struct_miqt_array = C.QStandardItemModel_FindItems3(this.h, (*C.struct_miqt_string)(text_ms), (C.int)(flags), (C.int)(column)) _ret := make([]*QStandardItem, int(_ma.len)) _outCast := (*[0xffff]*C.QStandardItem)(unsafe.Pointer(_ma.data)) // hey ya for i := 0; i < int(_ma.len); i++ { diff --git a/qt/gen_qstandardpaths.go b/qt/gen_qstandardpaths.go index 1f3b9e22..4043ed80 100644 --- a/qt/gen_qstandardpaths.go +++ b/qt/gen_qstandardpaths.go @@ -144,7 +144,7 @@ func QStandardPaths_IsTestModeEnabled() bool { func QStandardPaths_Locate3(typeVal QStandardPaths__StandardLocation, fileName string, options int) string { fileName_ms := miqt_strdupg(fileName) defer C.free(fileName_ms) - var _ms *C.struct_miqt_string = C.QStandardPaths_Locate3((C.int)(typeVal), (*C.struct_miqt_string)(fileName_ms), options) + var _ms *C.struct_miqt_string = C.QStandardPaths_Locate3((C.int)(typeVal), (*C.struct_miqt_string)(fileName_ms), (C.int)(options)) _ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms)) return _ret @@ -153,7 +153,7 @@ func QStandardPaths_Locate3(typeVal QStandardPaths__StandardLocation, fileName s func QStandardPaths_LocateAll3(typeVal QStandardPaths__StandardLocation, fileName string, options int) []string { fileName_ms := miqt_strdupg(fileName) defer C.free(fileName_ms) - var _ma *C.struct_miqt_array = C.QStandardPaths_LocateAll3((C.int)(typeVal), (*C.struct_miqt_string)(fileName_ms), options) + var _ma *C.struct_miqt_array = C.QStandardPaths_LocateAll3((C.int)(typeVal), (*C.struct_miqt_string)(fileName_ms), (C.int)(options)) _ret := make([]string, int(_ma.len)) _outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya for i := 0; i < int(_ma.len); i++ { diff --git a/qt/gen_qstyle.go b/qt/gen_qstyle.go index b591d420..d7f87480 100644 --- a/qt/gen_qstyle.go +++ b/qt/gen_qstyle.go @@ -823,11 +823,11 @@ func QStyle_SliderValueFromPosition(min int, max int, pos int, space int) int { } func QStyle_VisualAlignment(direction LayoutDirection, alignment int) int { - return (int)(C.QStyle_VisualAlignment((C.int)(direction), alignment)) + return (int)(C.QStyle_VisualAlignment((C.int)(direction), (C.int)(alignment))) } func QStyle_AlignedRect(direction LayoutDirection, alignment int, size *QSize, rectangle *QRect) *QRect { - _ret := C.QStyle_AlignedRect((C.int)(direction), alignment, size.cPointer(), rectangle.cPointer()) + _ret := C.QStyle_AlignedRect((C.int)(direction), (C.int)(alignment), size.cPointer(), rectangle.cPointer()) _goptr := newQRect(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr @@ -838,7 +838,7 @@ func (this *QStyle) LayoutSpacing(control1 QSizePolicy__ControlType, control2 QS } func (this *QStyle) CombinedLayoutSpacing(controls1 int, controls2 int, orientation Orientation) int { - return (int)(C.QStyle_CombinedLayoutSpacing(this.h, controls1, controls2, (C.int)(orientation))) + return (int)(C.QStyle_CombinedLayoutSpacing(this.h, (C.int)(controls1), (C.int)(controls2), (C.int)(orientation))) } func (this *QStyle) Proxy() *QStyle { @@ -997,11 +997,11 @@ func (this *QStyle) LayoutSpacing5(control1 QSizePolicy__ControlType, control2 Q } func (this *QStyle) CombinedLayoutSpacing4(controls1 int, controls2 int, orientation Orientation, option *QStyleOption) int { - return (int)(C.QStyle_CombinedLayoutSpacing4(this.h, controls1, controls2, (C.int)(orientation), option.cPointer())) + return (int)(C.QStyle_CombinedLayoutSpacing4(this.h, (C.int)(controls1), (C.int)(controls2), (C.int)(orientation), option.cPointer())) } func (this *QStyle) CombinedLayoutSpacing5(controls1 int, controls2 int, orientation Orientation, option *QStyleOption, widget *QWidget) int { - return (int)(C.QStyle_CombinedLayoutSpacing5(this.h, controls1, controls2, (C.int)(orientation), option.cPointer(), widget.cPointer())) + return (int)(C.QStyle_CombinedLayoutSpacing5(this.h, (C.int)(controls1), (C.int)(controls2), (C.int)(orientation), option.cPointer(), widget.cPointer())) } // Delete this object from C++ memory. diff --git a/qt/gen_qsurfaceformat.go b/qt/gen_qsurfaceformat.go index 8b769481..701c10e4 100644 --- a/qt/gen_qsurfaceformat.go +++ b/qt/gen_qsurfaceformat.go @@ -85,7 +85,7 @@ func NewQSurfaceFormat() *QSurfaceFormat { // NewQSurfaceFormat2 constructs a new QSurfaceFormat object. func NewQSurfaceFormat2(options int) *QSurfaceFormat { - ret := C.QSurfaceFormat_new2(options) + ret := C.QSurfaceFormat_new2((C.int)(options)) return newQSurfaceFormat(ret) } @@ -212,15 +212,15 @@ func (this *QSurfaceFormat) SetStereo(enable bool) { } func (this *QSurfaceFormat) SetOption(opt int) { - C.QSurfaceFormat_SetOption(this.h, opt) + C.QSurfaceFormat_SetOption(this.h, (C.int)(opt)) } func (this *QSurfaceFormat) TestOption(opt int) bool { - return (bool)(C.QSurfaceFormat_TestOption(this.h, opt)) + return (bool)(C.QSurfaceFormat_TestOption(this.h, (C.int)(opt))) } func (this *QSurfaceFormat) SetOptions(options int) { - C.QSurfaceFormat_SetOptions(this.h, options) + C.QSurfaceFormat_SetOptions(this.h, (C.int)(options)) } func (this *QSurfaceFormat) SetOptionWithOption(option QSurfaceFormat__FormatOption) { diff --git a/qt/gen_qtablewidget.go b/qt/gen_qtablewidget.go index bf90ab19..f2d2bcb5 100644 --- a/qt/gen_qtablewidget.go +++ b/qt/gen_qtablewidget.go @@ -204,7 +204,7 @@ func (this *QTableWidgetItem) Flags() int { } func (this *QTableWidgetItem) SetFlags(flags int) { - C.QTableWidgetItem_SetFlags(this.h, flags) + C.QTableWidgetItem_SetFlags(this.h, (C.int)(flags)) } func (this *QTableWidgetItem) Text() string { @@ -571,7 +571,7 @@ func (this *QTableWidget) SetCurrentItem(item *QTableWidgetItem) { } func (this *QTableWidget) SetCurrentItem2(item *QTableWidgetItem, command int) { - C.QTableWidget_SetCurrentItem2(this.h, item.cPointer(), command) + C.QTableWidget_SetCurrentItem2(this.h, item.cPointer(), (C.int)(command)) } func (this *QTableWidget) SetCurrentCell(row int, column int) { @@ -579,7 +579,7 @@ func (this *QTableWidget) SetCurrentCell(row int, column int) { } func (this *QTableWidget) SetCurrentCell2(row int, column int, command int) { - C.QTableWidget_SetCurrentCell2(this.h, (C.int)(row), (C.int)(column), command) + C.QTableWidget_SetCurrentCell2(this.h, (C.int)(row), (C.int)(column), (C.int)(command)) } func (this *QTableWidget) SortItems(column int) { @@ -662,7 +662,7 @@ func (this *QTableWidget) SelectedItems() []*QTableWidgetItem { func (this *QTableWidget) FindItems(text string, flags int) []*QTableWidgetItem { text_ms := miqt_strdupg(text) defer C.free(text_ms) - var _ma *C.struct_miqt_array = C.QTableWidget_FindItems(this.h, (*C.struct_miqt_string)(text_ms), flags) + var _ma *C.struct_miqt_array = C.QTableWidget_FindItems(this.h, (*C.struct_miqt_string)(text_ms), (C.int)(flags)) _ret := make([]*QTableWidgetItem, int(_ma.len)) _outCast := (*[0xffff]*C.QTableWidgetItem)(unsafe.Pointer(_ma.data)) // hey ya for i := 0; i < int(_ma.len); i++ { diff --git a/qt/gen_qtextcodec.go b/qt/gen_qtextcodec.go index 8bb1f984..847e3e88 100644 --- a/qt/gen_qtextcodec.go +++ b/qt/gen_qtextcodec.go @@ -208,11 +208,11 @@ func (this *QTextCodec) FromUnicode3(in *QChar, length int, state *QTextCodec__C } func (this *QTextCodec) MakeDecoder1(flags int) *QTextDecoder { - return newQTextDecoder_U(unsafe.Pointer(C.QTextCodec_MakeDecoder1(this.h, flags))) + return newQTextDecoder_U(unsafe.Pointer(C.QTextCodec_MakeDecoder1(this.h, (C.int)(flags)))) } func (this *QTextCodec) MakeEncoder1(flags int) *QTextEncoder { - return newQTextEncoder_U(unsafe.Pointer(C.QTextCodec_MakeEncoder1(this.h, flags))) + return newQTextEncoder_U(unsafe.Pointer(C.QTextCodec_MakeEncoder1(this.h, (C.int)(flags)))) } type QTextEncoder struct { @@ -245,7 +245,7 @@ func NewQTextEncoder(codec *QTextCodec) *QTextEncoder { // NewQTextEncoder2 constructs a new QTextEncoder object. func NewQTextEncoder2(codec *QTextCodec, flags int) *QTextEncoder { - ret := C.QTextEncoder_new2(codec.cPointer(), flags) + ret := C.QTextEncoder_new2(codec.cPointer(), (C.int)(flags)) return newQTextEncoder(ret) } @@ -313,7 +313,7 @@ func NewQTextDecoder(codec *QTextCodec) *QTextDecoder { // NewQTextDecoder2 constructs a new QTextDecoder object. func NewQTextDecoder2(codec *QTextCodec, flags int) *QTextDecoder { - ret := C.QTextDecoder_new2(codec.cPointer(), flags) + ret := C.QTextDecoder_new2(codec.cPointer(), (C.int)(flags)) return newQTextDecoder(ret) } @@ -385,7 +385,7 @@ func NewQTextCodec__ConverterState() *QTextCodec__ConverterState { // NewQTextCodec__ConverterState2 constructs a new QTextCodec::ConverterState object. func NewQTextCodec__ConverterState2(f int) *QTextCodec__ConverterState { - ret := C.QTextCodec__ConverterState_new2(f) + ret := C.QTextCodec__ConverterState_new2((C.int)(f)) return newQTextCodec__ConverterState(ret) } diff --git a/qt/gen_qtextdocument.go b/qt/gen_qtextdocument.go index a9737cdc..e07089a7 100644 --- a/qt/gen_qtextdocument.go +++ b/qt/gen_qtextdocument.go @@ -858,7 +858,7 @@ func (this *QTextDocument) ToHtml1(encoding *QByteArray) string { } func (this *QTextDocument) ToMarkdown1(features int) string { - var _ms *C.struct_miqt_string = C.QTextDocument_ToMarkdown1(this.h, features) + var _ms *C.struct_miqt_string = C.QTextDocument_ToMarkdown1(this.h, (C.int)(features)) _ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms)) return _ret @@ -867,7 +867,7 @@ func (this *QTextDocument) ToMarkdown1(features int) string { func (this *QTextDocument) SetMarkdown2(markdown string, features int) { markdown_ms := miqt_strdupg(markdown) defer C.free(markdown_ms) - C.QTextDocument_SetMarkdown2(this.h, (*C.struct_miqt_string)(markdown_ms), features) + C.QTextDocument_SetMarkdown2(this.h, (*C.struct_miqt_string)(markdown_ms), (C.int)(features)) } func (this *QTextDocument) Find22(subString string, from int) *QTextCursor { @@ -882,7 +882,7 @@ func (this *QTextDocument) Find22(subString string, from int) *QTextCursor { func (this *QTextDocument) Find32(subString string, from int, options int) *QTextCursor { subString_ms := miqt_strdupg(subString) defer C.free(subString_ms) - _ret := C.QTextDocument_Find32(this.h, (*C.struct_miqt_string)(subString_ms), (C.int)(from), options) + _ret := C.QTextDocument_Find32(this.h, (*C.struct_miqt_string)(subString_ms), (C.int)(from), (C.int)(options)) _goptr := newQTextCursor(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr @@ -891,7 +891,7 @@ func (this *QTextDocument) Find32(subString string, from int, options int) *QTex func (this *QTextDocument) Find33(subString string, cursor *QTextCursor, options int) *QTextCursor { subString_ms := miqt_strdupg(subString) defer C.free(subString_ms) - _ret := C.QTextDocument_Find33(this.h, (*C.struct_miqt_string)(subString_ms), cursor.cPointer(), options) + _ret := C.QTextDocument_Find33(this.h, (*C.struct_miqt_string)(subString_ms), cursor.cPointer(), (C.int)(options)) _goptr := newQTextCursor(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr @@ -905,14 +905,14 @@ func (this *QTextDocument) Find23(expr *QRegExp, from int) *QTextCursor { } func (this *QTextDocument) Find34(expr *QRegExp, from int, options int) *QTextCursor { - _ret := C.QTextDocument_Find34(this.h, expr.cPointer(), (C.int)(from), options) + _ret := C.QTextDocument_Find34(this.h, expr.cPointer(), (C.int)(from), (C.int)(options)) _goptr := newQTextCursor(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QTextDocument) Find35(expr *QRegExp, cursor *QTextCursor, options int) *QTextCursor { - _ret := C.QTextDocument_Find35(this.h, expr.cPointer(), cursor.cPointer(), options) + _ret := C.QTextDocument_Find35(this.h, expr.cPointer(), cursor.cPointer(), (C.int)(options)) _goptr := newQTextCursor(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr @@ -926,14 +926,14 @@ func (this *QTextDocument) Find24(expr *QRegularExpression, from int) *QTextCurs } func (this *QTextDocument) Find36(expr *QRegularExpression, from int, options int) *QTextCursor { - _ret := C.QTextDocument_Find36(this.h, expr.cPointer(), (C.int)(from), options) + _ret := C.QTextDocument_Find36(this.h, expr.cPointer(), (C.int)(from), (C.int)(options)) _goptr := newQTextCursor(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QTextDocument) Find37(expr *QRegularExpression, cursor *QTextCursor, options int) *QTextCursor { - _ret := C.QTextDocument_Find37(this.h, expr.cPointer(), cursor.cPointer(), options) + _ret := C.QTextDocument_Find37(this.h, expr.cPointer(), cursor.cPointer(), (C.int)(options)) _goptr := newQTextCursor(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr diff --git a/qt/gen_qtextedit.go b/qt/gen_qtextedit.go index 1d46e018..7d352149 100644 --- a/qt/gen_qtextedit.go +++ b/qt/gen_qtextedit.go @@ -145,7 +145,7 @@ func (this *QTextEdit) SetReadOnly(ro bool) { } func (this *QTextEdit) SetTextInteractionFlags(flags int) { - C.QTextEdit_SetTextInteractionFlags(this.h, flags) + C.QTextEdit_SetTextInteractionFlags(this.h, (C.int)(flags)) } func (this *QTextEdit) TextInteractionFlags() int { @@ -220,7 +220,7 @@ func (this *QTextEdit) AutoFormatting() int { } func (this *QTextEdit) SetAutoFormatting(features int) { - C.QTextEdit_SetAutoFormatting(this.h, features) + C.QTextEdit_SetAutoFormatting(this.h, (C.int)(features)) } func (this *QTextEdit) TabChangesFocus() bool { @@ -485,7 +485,7 @@ func (this *QTextEdit) SetCurrentFont(f *QFont) { } func (this *QTextEdit) SetAlignment(a int) { - C.QTextEdit_SetAlignment(this.h, a) + C.QTextEdit_SetAlignment(this.h, (C.int)(a)) } func (this *QTextEdit) SetPlainText(text string) { @@ -750,19 +750,19 @@ func QTextEdit_TrUtf83(s string, c string, n int) string { func (this *QTextEdit) Find22(exp string, options int) bool { exp_ms := miqt_strdupg(exp) defer C.free(exp_ms) - return (bool)(C.QTextEdit_Find22(this.h, (*C.struct_miqt_string)(exp_ms), options)) + return (bool)(C.QTextEdit_Find22(this.h, (*C.struct_miqt_string)(exp_ms), (C.int)(options))) } func (this *QTextEdit) Find23(exp *QRegExp, options int) bool { - return (bool)(C.QTextEdit_Find23(this.h, exp.cPointer(), options)) + return (bool)(C.QTextEdit_Find23(this.h, exp.cPointer(), (C.int)(options))) } func (this *QTextEdit) Find24(exp *QRegularExpression, options int) bool { - return (bool)(C.QTextEdit_Find24(this.h, exp.cPointer(), options)) + return (bool)(C.QTextEdit_Find24(this.h, exp.cPointer(), (C.int)(options))) } func (this *QTextEdit) ToMarkdown1(features int) string { - var _ms *C.struct_miqt_string = C.QTextEdit_ToMarkdown1(this.h, features) + var _ms *C.struct_miqt_string = C.QTextEdit_ToMarkdown1(this.h, (C.int)(features)) _ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms)) return _ret diff --git a/qt/gen_qtextformat.go b/qt/gen_qtextformat.go index 7ab650a8..8a72ec30 100644 --- a/qt/gen_qtextformat.go +++ b/qt/gen_qtextformat.go @@ -1052,7 +1052,7 @@ func (this *QTextBlockFormat) IsValid() bool { } func (this *QTextBlockFormat) SetAlignment(alignment int) { - C.QTextBlockFormat_SetAlignment(this.h, alignment) + C.QTextBlockFormat_SetAlignment(this.h, (C.int)(alignment)) } func (this *QTextBlockFormat) Alignment() int { @@ -1140,7 +1140,7 @@ func (this *QTextBlockFormat) NonBreakableLines() bool { } func (this *QTextBlockFormat) SetPageBreakPolicy(flags int) { - C.QTextBlockFormat_SetPageBreakPolicy(this.h, flags) + C.QTextBlockFormat_SetPageBreakPolicy(this.h, (C.int)(flags)) } func (this *QTextBlockFormat) PageBreakPolicy() int { @@ -1531,7 +1531,7 @@ func (this *QTextFrameFormat) Height() *QTextLength { } func (this *QTextFrameFormat) SetPageBreakPolicy(flags int) { - C.QTextFrameFormat_SetPageBreakPolicy(this.h, flags) + C.QTextFrameFormat_SetPageBreakPolicy(this.h, (C.int)(flags)) } func (this *QTextFrameFormat) PageBreakPolicy() int { @@ -1640,7 +1640,7 @@ func (this *QTextTableFormat) SetCellPadding(padding float64) { } func (this *QTextTableFormat) SetAlignment(alignment int) { - C.QTextTableFormat_SetAlignment(this.h, alignment) + C.QTextTableFormat_SetAlignment(this.h, (C.int)(alignment)) } func (this *QTextTableFormat) Alignment() int { diff --git a/qt/gen_qtextoption.go b/qt/gen_qtextoption.go index 456fb3f0..f7d058b9 100644 --- a/qt/gen_qtextoption.go +++ b/qt/gen_qtextoption.go @@ -73,7 +73,7 @@ func NewQTextOption() *QTextOption { // NewQTextOption2 constructs a new QTextOption object. func NewQTextOption2(alignment int) *QTextOption { - ret := C.QTextOption_new2(alignment) + ret := C.QTextOption_new2((C.int)(alignment)) return newQTextOption(ret) } @@ -88,7 +88,7 @@ func (this *QTextOption) OperatorAssign(o *QTextOption) { } func (this *QTextOption) SetAlignment(alignment int) { - C.QTextOption_SetAlignment(this.h, alignment) + C.QTextOption_SetAlignment(this.h, (C.int)(alignment)) } func (this *QTextOption) Alignment() int { @@ -112,7 +112,7 @@ func (this *QTextOption) WrapMode() QTextOption__WrapMode { } func (this *QTextOption) SetFlags(flags int) { - C.QTextOption_SetFlags(this.h, flags) + C.QTextOption_SetFlags(this.h, (C.int)(flags)) } func (this *QTextOption) Flags() int { diff --git a/qt/gen_qtextstream.go b/qt/gen_qtextstream.go index 08e7a5d3..8164c23e 100644 --- a/qt/gen_qtextstream.go +++ b/qt/gen_qtextstream.go @@ -97,13 +97,13 @@ func NewQTextStream4(array *QByteArray) *QTextStream { // NewQTextStream5 constructs a new QTextStream object. func NewQTextStream5(array *QByteArray, openMode int) *QTextStream { - ret := C.QTextStream_new5(array.cPointer(), openMode) + ret := C.QTextStream_new5(array.cPointer(), (C.int)(openMode)) return newQTextStream(ret) } // NewQTextStream6 constructs a new QTextStream object. func NewQTextStream6(array *QByteArray, openMode int) *QTextStream { - ret := C.QTextStream_new6(array.cPointer(), openMode) + ret := C.QTextStream_new6(array.cPointer(), (C.int)(openMode)) return newQTextStream(ret) } @@ -248,7 +248,7 @@ func (this *QTextStream) FieldWidth() int { } func (this *QTextStream) SetNumberFlags(flags int) { - C.QTextStream_SetNumberFlags(this.h, flags) + C.QTextStream_SetNumberFlags(this.h, (C.int)(flags)) } func (this *QTextStream) NumberFlags() int { diff --git a/qt/gen_qtoolbar.go b/qt/gen_qtoolbar.go index 52d68a9e..aa9f8734 100644 --- a/qt/gen_qtoolbar.go +++ b/qt/gen_qtoolbar.go @@ -96,7 +96,7 @@ func (this *QToolBar) IsMovable() bool { } func (this *QToolBar) SetAllowedAreas(areas int) { - C.QToolBar_SetAllowedAreas(this.h, areas) + C.QToolBar_SetAllowedAreas(this.h, (C.int)(areas)) } func (this *QToolBar) AllowedAreas() int { @@ -242,7 +242,7 @@ func miqt_exec_callback_QToolBar_MovableChanged(cb *C.void, movable C.bool) { } func (this *QToolBar) AllowedAreasChanged(allowedAreas int) { - C.QToolBar_AllowedAreasChanged(this.h, allowedAreas) + C.QToolBar_AllowedAreasChanged(this.h, (C.int)(allowedAreas)) } func (this *QToolBar) OnAllowedAreasChanged(slot func(allowedAreas int)) { C.QToolBar_connect_AllowedAreasChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) diff --git a/qt/gen_qtoolbox.go b/qt/gen_qtoolbox.go index 05858542..9455356f 100644 --- a/qt/gen_qtoolbox.go +++ b/qt/gen_qtoolbox.go @@ -51,7 +51,7 @@ func NewQToolBox2(parent *QWidget) *QToolBox { // NewQToolBox3 constructs a new QToolBox object. func NewQToolBox3(parent *QWidget, f int) *QToolBox { - ret := C.QToolBox_new3(parent.cPointer(), f) + ret := C.QToolBox_new3(parent.cPointer(), (C.int)(f)) return newQToolBox(ret) } diff --git a/qt/gen_qtouchdevice.go b/qt/gen_qtouchdevice.go index e46a3b62..57abaac0 100644 --- a/qt/gen_qtouchdevice.go +++ b/qt/gen_qtouchdevice.go @@ -101,7 +101,7 @@ func (this *QTouchDevice) SetType(devType QTouchDevice__DeviceType) { } func (this *QTouchDevice) SetCapabilities(caps int) { - C.QTouchDevice_SetCapabilities(this.h, caps) + C.QTouchDevice_SetCapabilities(this.h, (C.int)(caps)) } func (this *QTouchDevice) SetMaximumTouchPoints(max int) { diff --git a/qt/gen_qtreewidget.go b/qt/gen_qtreewidget.go index 72eeba71..b6467864 100644 --- a/qt/gen_qtreewidget.go +++ b/qt/gen_qtreewidget.go @@ -274,7 +274,7 @@ func (this *QTreeWidgetItem) Flags() int { } func (this *QTreeWidgetItem) SetFlags(flags int) { - C.QTreeWidgetItem_SetFlags(this.h, flags) + C.QTreeWidgetItem_SetFlags(this.h, (C.int)(flags)) } func (this *QTreeWidgetItem) Text(column int) string { @@ -704,7 +704,7 @@ func (this *QTreeWidget) SetCurrentItem2(item *QTreeWidgetItem, column int) { } func (this *QTreeWidget) SetCurrentItem3(item *QTreeWidgetItem, column int, command int) { - C.QTreeWidget_SetCurrentItem3(this.h, item.cPointer(), (C.int)(column), command) + C.QTreeWidget_SetCurrentItem3(this.h, item.cPointer(), (C.int)(column), (C.int)(command)) } func (this *QTreeWidget) ItemAt(p *QPoint) *QTreeWidgetItem { @@ -780,7 +780,7 @@ func (this *QTreeWidget) SelectedItems() []*QTreeWidgetItem { func (this *QTreeWidget) FindItems(text string, flags int) []*QTreeWidgetItem { text_ms := miqt_strdupg(text) defer C.free(text_ms) - var _ma *C.struct_miqt_array = C.QTreeWidget_FindItems(this.h, (*C.struct_miqt_string)(text_ms), flags) + var _ma *C.struct_miqt_array = C.QTreeWidget_FindItems(this.h, (*C.struct_miqt_string)(text_ms), (C.int)(flags)) _ret := make([]*QTreeWidgetItem, int(_ma.len)) _outCast := (*[0xffff]*C.QTreeWidgetItem)(unsafe.Pointer(_ma.data)) // hey ya for i := 0; i < int(_ma.len); i++ { @@ -1109,7 +1109,7 @@ func (this *QTreeWidget) IsPersistentEditorOpen2(item *QTreeWidgetItem, column i func (this *QTreeWidget) FindItems3(text string, flags int, column int) []*QTreeWidgetItem { text_ms := miqt_strdupg(text) defer C.free(text_ms) - var _ma *C.struct_miqt_array = C.QTreeWidget_FindItems3(this.h, (*C.struct_miqt_string)(text_ms), flags, (C.int)(column)) + var _ma *C.struct_miqt_array = C.QTreeWidget_FindItems3(this.h, (*C.struct_miqt_string)(text_ms), (C.int)(flags), (C.int)(column)) _ret := make([]*QTreeWidgetItem, int(_ma.len)) _outCast := (*[0xffff]*C.QTreeWidgetItem)(unsafe.Pointer(_ma.data)) // hey ya for i := 0; i < int(_ma.len); i++ { diff --git a/qt/gen_qtreewidgetitemiterator.go b/qt/gen_qtreewidgetitemiterator.go index c629322f..c2f8d668 100644 --- a/qt/gen_qtreewidgetitemiterator.go +++ b/qt/gen_qtreewidgetitemiterator.go @@ -80,13 +80,13 @@ func NewQTreeWidgetItemIterator3(item *QTreeWidgetItem) *QTreeWidgetItemIterator // NewQTreeWidgetItemIterator4 constructs a new QTreeWidgetItemIterator object. func NewQTreeWidgetItemIterator4(widget *QTreeWidget, flags int) *QTreeWidgetItemIterator { - ret := C.QTreeWidgetItemIterator_new4(widget.cPointer(), flags) + ret := C.QTreeWidgetItemIterator_new4(widget.cPointer(), (C.int)(flags)) return newQTreeWidgetItemIterator(ret) } // NewQTreeWidgetItemIterator5 constructs a new QTreeWidgetItemIterator object. func NewQTreeWidgetItemIterator5(item *QTreeWidgetItem, flags int) *QTreeWidgetItemIterator { - ret := C.QTreeWidgetItemIterator_new5(item.cPointer(), flags) + ret := C.QTreeWidgetItemIterator_new5(item.cPointer(), (C.int)(flags)) return newQTreeWidgetItemIterator(ret) } diff --git a/qt/gen_qurl.go b/qt/gen_qurl.go index db2c6f2e..bf0fdf7f 100644 --- a/qt/gen_qurl.go +++ b/qt/gen_qurl.go @@ -533,7 +533,7 @@ func QUrl_FromUserInput3(userInput string, workingDirectory string, options int) defer C.free(userInput_ms) workingDirectory_ms := miqt_strdupg(workingDirectory) defer C.free(workingDirectory_ms) - _ret := C.QUrl_FromUserInput3((*C.struct_miqt_string)(userInput_ms), (*C.struct_miqt_string)(workingDirectory_ms), options) + _ret := C.QUrl_FromUserInput3((*C.struct_miqt_string)(userInput_ms), (*C.struct_miqt_string)(workingDirectory_ms), (C.int)(options)) _goptr := newQUrl(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr @@ -546,7 +546,7 @@ func (this *QUrl) SetAuthority2(authority string, mode QUrl__ParsingMode) { } func (this *QUrl) Authority1(options int) string { - var _ms *C.struct_miqt_string = C.QUrl_Authority1(this.h, options) + var _ms *C.struct_miqt_string = C.QUrl_Authority1(this.h, (C.int)(options)) _ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms)) return _ret @@ -559,7 +559,7 @@ func (this *QUrl) SetUserInfo2(userInfo string, mode QUrl__ParsingMode) { } func (this *QUrl) UserInfo1(options int) string { - var _ms *C.struct_miqt_string = C.QUrl_UserInfo1(this.h, options) + var _ms *C.struct_miqt_string = C.QUrl_UserInfo1(this.h, (C.int)(options)) _ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms)) return _ret @@ -572,7 +572,7 @@ func (this *QUrl) SetUserName2(userName string, mode QUrl__ParsingMode) { } func (this *QUrl) UserName1(options int) string { - var _ms *C.struct_miqt_string = C.QUrl_UserName1(this.h, options) + var _ms *C.struct_miqt_string = C.QUrl_UserName1(this.h, (C.int)(options)) _ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms)) return _ret @@ -585,7 +585,7 @@ func (this *QUrl) SetPassword2(password string, mode QUrl__ParsingMode) { } func (this *QUrl) Password1(param1 int) string { - var _ms *C.struct_miqt_string = C.QUrl_Password1(this.h, param1) + var _ms *C.struct_miqt_string = C.QUrl_Password1(this.h, (C.int)(param1)) _ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms)) return _ret @@ -598,14 +598,14 @@ func (this *QUrl) SetHost2(host string, mode QUrl__ParsingMode) { } func (this *QUrl) Host1(param1 int) string { - var _ms *C.struct_miqt_string = C.QUrl_Host1(this.h, param1) + var _ms *C.struct_miqt_string = C.QUrl_Host1(this.h, (C.int)(param1)) _ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms)) return _ret } func (this *QUrl) TopLevelDomain1(options int) string { - var _ms *C.struct_miqt_string = C.QUrl_TopLevelDomain1(this.h, options) + var _ms *C.struct_miqt_string = C.QUrl_TopLevelDomain1(this.h, (C.int)(options)) _ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms)) return _ret @@ -622,14 +622,14 @@ func (this *QUrl) SetPath2(path string, mode QUrl__ParsingMode) { } func (this *QUrl) Path1(options int) string { - var _ms *C.struct_miqt_string = C.QUrl_Path1(this.h, options) + var _ms *C.struct_miqt_string = C.QUrl_Path1(this.h, (C.int)(options)) _ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms)) return _ret } func (this *QUrl) FileName1(options int) string { - var _ms *C.struct_miqt_string = C.QUrl_FileName1(this.h, options) + var _ms *C.struct_miqt_string = C.QUrl_FileName1(this.h, (C.int)(options)) _ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms)) return _ret @@ -642,14 +642,14 @@ func (this *QUrl) SetQuery2(query string, mode QUrl__ParsingMode) { } func (this *QUrl) Query1(param1 int) string { - var _ms *C.struct_miqt_string = C.QUrl_Query1(this.h, param1) + var _ms *C.struct_miqt_string = C.QUrl_Query1(this.h, (C.int)(param1)) _ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms)) return _ret } func (this *QUrl) Fragment1(options int) string { - var _ms *C.struct_miqt_string = C.QUrl_Fragment1(this.h, options) + var _ms *C.struct_miqt_string = C.QUrl_Fragment1(this.h, (C.int)(options)) _ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms)) return _ret diff --git a/qt/gen_qurlquery.go b/qt/gen_qurlquery.go index ad7a86fe..7a4d422f 100644 --- a/qt/gen_qurlquery.go +++ b/qt/gen_qurlquery.go @@ -193,14 +193,14 @@ func QUrlQuery_DefaultQueryPairDelimiter() *QChar { } func (this *QUrlQuery) Query1(encoding int) string { - var _ms *C.struct_miqt_string = C.QUrlQuery_Query1(this.h, encoding) + var _ms *C.struct_miqt_string = C.QUrlQuery_Query1(this.h, (C.int)(encoding)) _ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms)) return _ret } func (this *QUrlQuery) ToString1(encoding int) string { - var _ms *C.struct_miqt_string = C.QUrlQuery_ToString1(this.h, encoding) + var _ms *C.struct_miqt_string = C.QUrlQuery_ToString1(this.h, (C.int)(encoding)) _ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms)) return _ret @@ -209,7 +209,7 @@ func (this *QUrlQuery) ToString1(encoding int) string { func (this *QUrlQuery) QueryItemValue2(key string, encoding int) string { key_ms := miqt_strdupg(key) defer C.free(key_ms) - var _ms *C.struct_miqt_string = C.QUrlQuery_QueryItemValue2(this.h, (*C.struct_miqt_string)(key_ms), encoding) + var _ms *C.struct_miqt_string = C.QUrlQuery_QueryItemValue2(this.h, (*C.struct_miqt_string)(key_ms), (C.int)(encoding)) _ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms)) return _ret @@ -218,7 +218,7 @@ func (this *QUrlQuery) QueryItemValue2(key string, encoding int) string { func (this *QUrlQuery) AllQueryItemValues2(key string, encoding int) []string { key_ms := miqt_strdupg(key) defer C.free(key_ms) - var _ma *C.struct_miqt_array = C.QUrlQuery_AllQueryItemValues2(this.h, (*C.struct_miqt_string)(key_ms), encoding) + var _ma *C.struct_miqt_array = C.QUrlQuery_AllQueryItemValues2(this.h, (*C.struct_miqt_string)(key_ms), (C.int)(encoding)) _ret := make([]string, int(_ma.len)) _outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya for i := 0; i < int(_ma.len); i++ { diff --git a/qt/gen_qwidget.go b/qt/gen_qwidget.go index 23f92717..4b5c30ea 100644 --- a/qt/gen_qwidget.go +++ b/qt/gen_qwidget.go @@ -106,7 +106,7 @@ func NewQWidget2(parent *QWidget) *QWidget { // NewQWidget3 constructs a new QWidget object. func NewQWidget3(parent *QWidget, f int) *QWidget { - ret := C.QWidget_new3(parent.cPointer(), f) + ret := C.QWidget_new3(parent.cPointer(), (C.int)(f)) return newQWidget(ret) } @@ -1025,11 +1025,11 @@ func (this *QWidget) WindowState() int { } func (this *QWidget) SetWindowState(state int) { - C.QWidget_SetWindowState(this.h, state) + C.QWidget_SetWindowState(this.h, (C.int)(state)) } func (this *QWidget) OverrideWindowState(state int) { - C.QWidget_OverrideWindowState(this.h, state) + C.QWidget_OverrideWindowState(this.h, (C.int)(state)) } func (this *QWidget) SizeHint() *QSize { @@ -1119,7 +1119,7 @@ func (this *QWidget) SetParent(parent *QWidget) { } func (this *QWidget) SetParent2(parent *QWidget, f int) { - C.QWidget_SetParent2(this.h, parent.cPointer(), f) + C.QWidget_SetParent2(this.h, parent.cPointer(), (C.int)(f)) } func (this *QWidget) Scroll(dx int, dy int) { @@ -1202,7 +1202,7 @@ func (this *QWidget) ParentWidget() *QWidget { } func (this *QWidget) SetWindowFlags(typeVal int) { - C.QWidget_SetWindowFlags(this.h, typeVal) + C.QWidget_SetWindowFlags(this.h, (C.int)(typeVal)) } func (this *QWidget) WindowFlags() int { @@ -1214,7 +1214,7 @@ func (this *QWidget) SetWindowFlag(param1 WindowType) { } func (this *QWidget) OverrideWindowFlags(typeVal int) { - C.QWidget_OverrideWindowFlags(this.h, typeVal) + C.QWidget_OverrideWindowFlags(this.h, (C.int)(typeVal)) } func (this *QWidget) WindowType() WindowType { @@ -1379,7 +1379,7 @@ func (this *QWidget) InputMethodHints() int { } func (this *QWidget) SetInputMethodHints(hints int) { - C.QWidget_SetInputMethodHints(this.h, hints) + C.QWidget_SetInputMethodHints(this.h, (C.int)(hints)) } func QWidget_Tr2(s string, c string) string { @@ -1435,7 +1435,7 @@ func (this *QWidget) Render3(target *QPaintDevice, targetOffset *QPoint, sourceR } func (this *QWidget) Render4(target *QPaintDevice, targetOffset *QPoint, sourceRegion *QRegion, renderFlags int) { - C.QWidget_Render4(this.h, target.cPointer(), targetOffset.cPointer(), sourceRegion.cPointer(), renderFlags) + C.QWidget_Render4(this.h, target.cPointer(), targetOffset.cPointer(), sourceRegion.cPointer(), (C.int)(renderFlags)) } func (this *QWidget) Render22(painter *QPainter, targetOffset *QPoint) { @@ -1447,7 +1447,7 @@ func (this *QWidget) Render32(painter *QPainter, targetOffset *QPoint, sourceReg } func (this *QWidget) Render42(painter *QPainter, targetOffset *QPoint, sourceRegion *QRegion, renderFlags int) { - C.QWidget_Render42(this.h, painter.cPointer(), targetOffset.cPointer(), sourceRegion.cPointer(), renderFlags) + C.QWidget_Render42(this.h, painter.cPointer(), targetOffset.cPointer(), sourceRegion.cPointer(), (C.int)(renderFlags)) } func (this *QWidget) Grab1(rectangle *QRect) *QPixmap { @@ -1458,7 +1458,7 @@ func (this *QWidget) Grab1(rectangle *QRect) *QPixmap { } func (this *QWidget) GrabGesture2(typeVal GestureType, flags int) { - C.QWidget_GrabGesture2(this.h, (C.int)(typeVal), flags) + C.QWidget_GrabGesture2(this.h, (C.int)(typeVal), (C.int)(flags)) } func (this *QWidget) GrabShortcut2(key *QKeySequence, context ShortcutContext) int { @@ -1486,7 +1486,7 @@ func QWidget_CreateWindowContainer2(window *QWindow, parent *QWidget) *QWidget { } func QWidget_CreateWindowContainer3(window *QWindow, parent *QWidget, flags int) *QWidget { - return newQWidget_U(unsafe.Pointer(C.QWidget_CreateWindowContainer3(window.cPointer(), parent.cPointer(), flags))) + return newQWidget_U(unsafe.Pointer(C.QWidget_CreateWindowContainer3(window.cPointer(), parent.cPointer(), (C.int)(flags)))) } // Delete this object from C++ memory. diff --git a/qt/gen_qwindow.go b/qt/gen_qwindow.go index 0cbe66c9..b3169ea3 100644 --- a/qt/gen_qwindow.go +++ b/qt/gen_qwindow.go @@ -171,7 +171,7 @@ func (this *QWindow) RequestedFormat() *QSurfaceFormat { } func (this *QWindow) SetFlags(flags int) { - C.QWindow_SetFlags(this.h, flags) + C.QWindow_SetFlags(this.h, (C.int)(flags)) } func (this *QWindow) Flags() int { @@ -241,7 +241,7 @@ func (this *QWindow) SetWindowState(state WindowState) { } func (this *QWindow) SetWindowStates(states int) { - C.QWindow_SetWindowStates(this.h, states) + C.QWindow_SetWindowStates(this.h, (C.int)(states)) } func (this *QWindow) SetTransientParent(parent *QWindow) { @@ -528,7 +528,7 @@ func (this *QWindow) Lower() { } func (this *QWindow) StartSystemResize(edges int) bool { - return (bool)(C.QWindow_StartSystemResize(this.h, edges)) + return (bool)(C.QWindow_StartSystemResize(this.h, (C.int)(edges))) } func (this *QWindow) StartSystemMove() bool { diff --git a/qt/gen_qwizard.go b/qt/gen_qwizard.go index 001d26f1..e7dfdd1a 100644 --- a/qt/gen_qwizard.go +++ b/qt/gen_qwizard.go @@ -111,7 +111,7 @@ func NewQWizard2(parent *QWidget) *QWizard { // NewQWizard3 constructs a new QWizard object. func NewQWizard3(parent *QWidget, flags int) *QWizard { - ret := C.QWizard_new3(parent.cPointer(), flags) + ret := C.QWizard_new3(parent.cPointer(), (C.int)(flags)) return newQWizard(ret) } @@ -246,7 +246,7 @@ func (this *QWizard) TestOption(option QWizard__WizardOption) bool { } func (this *QWizard) SetOptions(options int) { - C.QWizard_SetOptions(this.h, options) + C.QWizard_SetOptions(this.h, (C.int)(options)) } func (this *QWizard) Options() int {