mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 00:48:38 +00:00
QDeadlineTimer: remove non-public method
This commit is contained in:
parent
9583866dff
commit
ae70105920
@ -218,6 +218,12 @@ func AllowMethod(className string, mm CppMethod) error {
|
||||
return ErrTooComplex // Qt 6: Present in header, but no-op method was not included in compiled library
|
||||
}
|
||||
|
||||
if className == "QDeadlineTimer" && mm.MethodName == "_q_data" {
|
||||
// Qt 6.4: Present in header with "not a public method" comment, not present in Qt 6.6
|
||||
// @ref https://github.com/qt/qtbase/blob/v6.4.0/src/corelib/kernel/qdeadlinetimer.h#L156C29-L156C36
|
||||
return ErrTooComplex
|
||||
}
|
||||
|
||||
return nil // OK, allow
|
||||
}
|
||||
|
||||
|
@ -108,20 +108,6 @@ QDeadlineTimer* QDeadlineTimer_OperatorMinusAssign(QDeadlineTimer* self, long lo
|
||||
return &_ret;
|
||||
}
|
||||
|
||||
struct miqt_map /* tuple of long long and unsigned int */ QDeadlineTimer_QData(const QDeadlineTimer* self) {
|
||||
QPair<qint64, unsigned int> _ret = self->_q_data();
|
||||
// Convert QPair<> from C++ memory to manually-managed C memory
|
||||
long long* _first_arr = static_cast<long long*>(malloc(sizeof(long long)));
|
||||
unsigned int* _second_arr = static_cast<unsigned int*>(malloc(sizeof(unsigned int)));
|
||||
_first_arr[0] = _ret.first;
|
||||
_second_arr[0] = _ret.second;
|
||||
struct miqt_map _out;
|
||||
_out.len = 1;
|
||||
_out.keys = static_cast<void*>(_first_arr);
|
||||
_out.values = static_cast<void*>(_second_arr);
|
||||
return _out;
|
||||
}
|
||||
|
||||
void QDeadlineTimer_OperatorAssign(QDeadlineTimer* self, QDeadlineTimer* param1) {
|
||||
self->operator=(*param1);
|
||||
}
|
||||
|
@ -164,23 +164,6 @@ func (this *QDeadlineTimer) OperatorMinusAssign(msecs int64) *QDeadlineTimer {
|
||||
return UnsafeNewQDeadlineTimer(unsafe.Pointer(C.QDeadlineTimer_OperatorMinusAssign(this.h, (C.longlong)(msecs))))
|
||||
}
|
||||
|
||||
func (this *QDeadlineTimer) QData() struct {
|
||||
First int64
|
||||
Second uint
|
||||
} {
|
||||
var _mm C.struct_miqt_map = C.QDeadlineTimer_QData(this.h)
|
||||
_First_CArray := (*[0xffff]C.longlong)(unsafe.Pointer(_mm.keys))
|
||||
_Second_CArray := (*[0xffff]C.uint)(unsafe.Pointer(_mm.values))
|
||||
_entry_First := (int64)(_First_CArray[0])
|
||||
|
||||
_entry_Second := (uint)(_Second_CArray[0])
|
||||
|
||||
return struct {
|
||||
First int64
|
||||
Second uint
|
||||
}{First: _entry_First, Second: _entry_Second}
|
||||
}
|
||||
|
||||
func (this *QDeadlineTimer) OperatorAssign(param1 *QDeadlineTimer) {
|
||||
C.QDeadlineTimer_OperatorAssign(this.h, param1.cPointer())
|
||||
}
|
||||
|
@ -44,7 +44,6 @@ QDeadlineTimer* QDeadlineTimer_AddNSecs(QDeadlineTimer* dt, long long nsecs);
|
||||
QDeadlineTimer* QDeadlineTimer_Current();
|
||||
QDeadlineTimer* QDeadlineTimer_OperatorPlusAssign(QDeadlineTimer* self, long long msecs);
|
||||
QDeadlineTimer* QDeadlineTimer_OperatorMinusAssign(QDeadlineTimer* self, long long msecs);
|
||||
struct miqt_map /* tuple of long long and unsigned int */ QDeadlineTimer_QData(const QDeadlineTimer* self);
|
||||
void QDeadlineTimer_OperatorAssign(QDeadlineTimer* self, QDeadlineTimer* param1);
|
||||
void QDeadlineTimer_SetRemainingTime2(QDeadlineTimer* self, long long msecs, int typeVal);
|
||||
void QDeadlineTimer_SetPreciseRemainingTime2(QDeadlineTimer* self, long long secs, long long nsecs);
|
||||
|
@ -108,20 +108,6 @@ QDeadlineTimer* QDeadlineTimer_OperatorMinusAssign(QDeadlineTimer* self, long lo
|
||||
return &_ret;
|
||||
}
|
||||
|
||||
struct miqt_map /* tuple of long long and unsigned int */ QDeadlineTimer_QData(const QDeadlineTimer* self) {
|
||||
QPair<qint64, unsigned int> _ret = self->_q_data();
|
||||
// Convert QPair<> from C++ memory to manually-managed C memory
|
||||
long long* _first_arr = static_cast<long long*>(malloc(sizeof(long long)));
|
||||
unsigned int* _second_arr = static_cast<unsigned int*>(malloc(sizeof(unsigned int)));
|
||||
_first_arr[0] = _ret.first;
|
||||
_second_arr[0] = _ret.second;
|
||||
struct miqt_map _out;
|
||||
_out.len = 1;
|
||||
_out.keys = static_cast<void*>(_first_arr);
|
||||
_out.values = static_cast<void*>(_second_arr);
|
||||
return _out;
|
||||
}
|
||||
|
||||
void QDeadlineTimer_OperatorAssign(QDeadlineTimer* self, QDeadlineTimer* param1) {
|
||||
self->operator=(*param1);
|
||||
}
|
||||
|
@ -164,23 +164,6 @@ func (this *QDeadlineTimer) OperatorMinusAssign(msecs int64) *QDeadlineTimer {
|
||||
return UnsafeNewQDeadlineTimer(unsafe.Pointer(C.QDeadlineTimer_OperatorMinusAssign(this.h, (C.longlong)(msecs))))
|
||||
}
|
||||
|
||||
func (this *QDeadlineTimer) QData() struct {
|
||||
First int64
|
||||
Second uint
|
||||
} {
|
||||
var _mm C.struct_miqt_map = C.QDeadlineTimer_QData(this.h)
|
||||
_First_CArray := (*[0xffff]C.longlong)(unsafe.Pointer(_mm.keys))
|
||||
_Second_CArray := (*[0xffff]C.uint)(unsafe.Pointer(_mm.values))
|
||||
_entry_First := (int64)(_First_CArray[0])
|
||||
|
||||
_entry_Second := (uint)(_Second_CArray[0])
|
||||
|
||||
return struct {
|
||||
First int64
|
||||
Second uint
|
||||
}{First: _entry_First, Second: _entry_Second}
|
||||
}
|
||||
|
||||
func (this *QDeadlineTimer) OperatorAssign(param1 *QDeadlineTimer) {
|
||||
C.QDeadlineTimer_OperatorAssign(this.h, param1.cPointer())
|
||||
}
|
||||
|
@ -44,7 +44,6 @@ QDeadlineTimer* QDeadlineTimer_AddNSecs(QDeadlineTimer* dt, long long nsecs);
|
||||
QDeadlineTimer* QDeadlineTimer_Current();
|
||||
QDeadlineTimer* QDeadlineTimer_OperatorPlusAssign(QDeadlineTimer* self, long long msecs);
|
||||
QDeadlineTimer* QDeadlineTimer_OperatorMinusAssign(QDeadlineTimer* self, long long msecs);
|
||||
struct miqt_map /* tuple of long long and unsigned int */ QDeadlineTimer_QData(const QDeadlineTimer* self);
|
||||
void QDeadlineTimer_OperatorAssign(QDeadlineTimer* self, QDeadlineTimer* param1);
|
||||
void QDeadlineTimer_SetRemainingTime2(QDeadlineTimer* self, long long msecs, int typeVal);
|
||||
void QDeadlineTimer_SetPreciseRemainingTime2(QDeadlineTimer* self, long long secs, long long nsecs);
|
||||
|
Loading…
Reference in New Issue
Block a user