Skip to content

Commit

Permalink
Updating definitions for Qt5 too - some additional operator bindings …
Browse files Browse the repository at this point in the history
…show up.
  • Loading branch information
Matthias Koefferlein committed Oct 19, 2024
1 parent 14fa7a3 commit 761388f
Show file tree
Hide file tree
Showing 40 changed files with 250 additions and 160 deletions.
2 changes: 1 addition & 1 deletion src/gsiqt/qt5/QtCore/gsiDeclQCollatorSortKey.cc
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ static void _call_f_swap_2252 (const qt_gsi::GenericMethod * /*decl*/, void *cls

// bool ::operator<(const QCollatorSortKey &lhs, const QCollatorSortKey &rhs)
static bool op_QCollatorSortKey_operator_lt__5786(const QCollatorSortKey *_self, const QCollatorSortKey &rhs) {
return ::operator<(*_self, rhs);
return operator<(*_self, rhs);
}


Expand Down
48 changes: 48 additions & 0 deletions src/gsiqt/qt5/QtCore/gsiDeclQDeadlineTimer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,46 @@ static void _call_f_current_1680 (const qt_gsi::GenericStaticMethod * /*decl*/,
}


// bool ::operator==(QDeadlineTimer d1, QDeadlineTimer d2)
static bool op_QDeadlineTimer_operator_eq__eq__3532(QDeadlineTimer *_self, QDeadlineTimer d2) {
return operator==(*_self, d2);
}

// bool ::operator!=(QDeadlineTimer d1, QDeadlineTimer d2)
static bool op_QDeadlineTimer_operator_excl__eq__3532(QDeadlineTimer *_self, QDeadlineTimer d2) {
return operator!=(*_self, d2);
}

// bool ::operator<(QDeadlineTimer d1, QDeadlineTimer d2)
static bool op_QDeadlineTimer_operator_lt__3532(QDeadlineTimer *_self, QDeadlineTimer d2) {
return operator<(*_self, d2);
}

// bool ::operator<=(QDeadlineTimer d1, QDeadlineTimer d2)
static bool op_QDeadlineTimer_operator_lt__eq__3532(QDeadlineTimer *_self, QDeadlineTimer d2) {
return operator<=(*_self, d2);
}

// bool ::operator>(QDeadlineTimer d1, QDeadlineTimer d2)
static bool op_QDeadlineTimer_operator_gt__3532(QDeadlineTimer *_self, QDeadlineTimer d2) {
return operator>(*_self, d2);
}

// bool ::operator>=(QDeadlineTimer d1, QDeadlineTimer d2)
static bool op_QDeadlineTimer_operator_gt__eq__3532(QDeadlineTimer *_self, QDeadlineTimer d2) {
return operator>=(*_self, d2);
}

// QDeadlineTimer ::operator-(QDeadlineTimer dt, qint64 msecs)
static QDeadlineTimer op_QDeadlineTimer_operator_minus__2698(QDeadlineTimer *_self, qint64 msecs) {
return operator-(*_self, msecs);
}

// qint64 ::operator-(QDeadlineTimer dt1, QDeadlineTimer dt2)
static qint64 op_QDeadlineTimer_operator_minus__3532(QDeadlineTimer *_self, QDeadlineTimer dt2) {
return operator-(*_self, dt2);
}


namespace gsi
{
Expand All @@ -446,6 +486,14 @@ static gsi::Methods methods_QDeadlineTimer () {
methods += new qt_gsi::GenericMethod (":timerType", "@brief Method Qt::TimerType QDeadlineTimer::timerType()\n", true, &_init_f_timerType_c0, &_call_f_timerType_c0);
methods += new qt_gsi::GenericStaticMethod ("addNSecs", "@brief Static method QDeadlineTimer QDeadlineTimer::addNSecs(QDeadlineTimer dt, qint64 nsecs)\nThis method is static and can be called without an instance.", &_init_f_addNSecs_2698, &_call_f_addNSecs_2698);
methods += new qt_gsi::GenericStaticMethod ("current", "@brief Static method QDeadlineTimer QDeadlineTimer::current(Qt::TimerType timerType)\nThis method is static and can be called without an instance.", &_init_f_current_1680, &_call_f_current_1680);
methods += gsi::method_ext("==", &::op_QDeadlineTimer_operator_eq__eq__3532, gsi::arg ("d2"), "@brief Operator bool ::operator==(QDeadlineTimer d1, QDeadlineTimer d2)\nThis is the mapping of the global operator to the instance method.");
methods += gsi::method_ext("!=", &::op_QDeadlineTimer_operator_excl__eq__3532, gsi::arg ("d2"), "@brief Operator bool ::operator!=(QDeadlineTimer d1, QDeadlineTimer d2)\nThis is the mapping of the global operator to the instance method.");
methods += gsi::method_ext("<", &::op_QDeadlineTimer_operator_lt__3532, gsi::arg ("d2"), "@brief Operator bool ::operator<(QDeadlineTimer d1, QDeadlineTimer d2)\nThis is the mapping of the global operator to the instance method.");
methods += gsi::method_ext("<=", &::op_QDeadlineTimer_operator_lt__eq__3532, gsi::arg ("d2"), "@brief Operator bool ::operator<=(QDeadlineTimer d1, QDeadlineTimer d2)\nThis is the mapping of the global operator to the instance method.");
methods += gsi::method_ext(">", &::op_QDeadlineTimer_operator_gt__3532, gsi::arg ("d2"), "@brief Operator bool ::operator>(QDeadlineTimer d1, QDeadlineTimer d2)\nThis is the mapping of the global operator to the instance method.");
methods += gsi::method_ext(">=", &::op_QDeadlineTimer_operator_gt__eq__3532, gsi::arg ("d2"), "@brief Operator bool ::operator>=(QDeadlineTimer d1, QDeadlineTimer d2)\nThis is the mapping of the global operator to the instance method.");
methods += gsi::method_ext("-", &::op_QDeadlineTimer_operator_minus__2698, gsi::arg ("msecs"), "@brief Operator QDeadlineTimer ::operator-(QDeadlineTimer dt, qint64 msecs)\nThis is the mapping of the global operator to the instance method.");
methods += gsi::method_ext("-", &::op_QDeadlineTimer_operator_minus__3532, gsi::arg ("dt2"), "@brief Operator qint64 ::operator-(QDeadlineTimer dt1, QDeadlineTimer dt2)\nThis is the mapping of the global operator to the instance method.");
return methods;
}

Expand Down
26 changes: 13 additions & 13 deletions src/gsiqt/qt5/QtCore/gsiDeclQMargins.cc
Original file line number Diff line number Diff line change
Expand Up @@ -387,67 +387,67 @@ static void _call_f_top_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, g

// bool ::operator==(const QMargins &m1, const QMargins &m2)
static bool op_QMargins_operator_eq__eq__4122(const QMargins *_self, const QMargins &m2) {
return ::operator==(*_self, m2);
return operator==(*_self, m2);
}

// bool ::operator!=(const QMargins &m1, const QMargins &m2)
static bool op_QMargins_operator_excl__eq__4122(const QMargins *_self, const QMargins &m2) {
return ::operator!=(*_self, m2);
return operator!=(*_self, m2);
}

// QMargins ::operator+(const QMargins &m1, const QMargins &m2)
static QMargins op_QMargins_operator_plus__4122(const QMargins *_self, const QMargins &m2) {
return ::operator+(*_self, m2);
return operator+(*_self, m2);
}

// QMargins ::operator-(const QMargins &m1, const QMargins &m2)
static QMargins op_QMargins_operator_minus__4122(const QMargins *_self, const QMargins &m2) {
return ::operator-(*_self, m2);
return operator-(*_self, m2);
}

// QMargins ::operator+(const QMargins &lhs, int rhs)
static QMargins op_QMargins_operator_plus__2774(const QMargins *_self, int rhs) {
return ::operator+(*_self, rhs);
return operator+(*_self, rhs);
}

// QMargins ::operator-(const QMargins &lhs, int rhs)
static QMargins op_QMargins_operator_minus__2774(const QMargins *_self, int rhs) {
return ::operator-(*_self, rhs);
return operator-(*_self, rhs);
}

// QMargins ::operator*(const QMargins &margins, int factor)
static QMargins op_QMargins_operator_star__2774(const QMargins *_self, int factor) {
return ::operator*(*_self, factor);
return operator*(*_self, factor);
}

// QMargins ::operator*(const QMargins &margins, qreal factor)
static QMargins op_QMargins_operator_star__2976(const QMargins *_self, qreal factor) {
return ::operator*(*_self, factor);
return operator*(*_self, factor);
}

// QMargins ::operator/(const QMargins &margins, int divisor)
static QMargins op_QMargins_operator_slash__2774(const QMargins *_self, int divisor) {
return ::operator/(*_self, divisor);
return operator/(*_self, divisor);
}

// QMargins ::operator/(const QMargins &margins, qreal divisor)
static QMargins op_QMargins_operator_slash__2976(const QMargins *_self, qreal divisor) {
return ::operator/(*_self, divisor);
return operator/(*_self, divisor);
}

// QMargins ::operator+(const QMargins &margins)
static QMargins op_QMargins_operator_plus__2115(const QMargins *_self) {
return ::operator+(*_self);
return operator+(*_self);
}

// QMargins ::operator-(const QMargins &margins)
static QMargins op_QMargins_operator_minus__2115(const QMargins *_self) {
return ::operator-(*_self);
return operator-(*_self);
}

// QRect ::operator+(const QMargins &margins, const QRect &rectangle)
static QRect op_QMargins_operator_plus__3799(const QMargins *_self, const QRect &rectangle) {
return ::operator+(*_self, rectangle);
return operator+(*_self, rectangle);
}


Expand Down
22 changes: 11 additions & 11 deletions src/gsiqt/qt5/QtCore/gsiDeclQMarginsF.cc
Original file line number Diff line number Diff line change
Expand Up @@ -384,57 +384,57 @@ static void _call_f_top_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, g

// bool ::operator==(const QMarginsF &lhs, const QMarginsF &rhs)
static bool op_QMarginsF_operator_eq__eq__4262(const QMarginsF *_self, const QMarginsF &rhs) {
return ::operator==(*_self, rhs);
return operator==(*_self, rhs);
}

// bool ::operator!=(const QMarginsF &lhs, const QMarginsF &rhs)
static bool op_QMarginsF_operator_excl__eq__4262(const QMarginsF *_self, const QMarginsF &rhs) {
return ::operator!=(*_self, rhs);
return operator!=(*_self, rhs);
}

// QMarginsF ::operator+(const QMarginsF &lhs, const QMarginsF &rhs)
static QMarginsF op_QMarginsF_operator_plus__4262(const QMarginsF *_self, const QMarginsF &rhs) {
return ::operator+(*_self, rhs);
return operator+(*_self, rhs);
}

// QMarginsF ::operator-(const QMarginsF &lhs, const QMarginsF &rhs)
static QMarginsF op_QMarginsF_operator_minus__4262(const QMarginsF *_self, const QMarginsF &rhs) {
return ::operator-(*_self, rhs);
return operator-(*_self, rhs);
}

// QMarginsF ::operator+(const QMarginsF &lhs, qreal rhs)
static QMarginsF op_QMarginsF_operator_plus__3046(const QMarginsF *_self, qreal rhs) {
return ::operator+(*_self, rhs);
return operator+(*_self, rhs);
}

// QMarginsF ::operator-(const QMarginsF &lhs, qreal rhs)
static QMarginsF op_QMarginsF_operator_minus__3046(const QMarginsF *_self, qreal rhs) {
return ::operator-(*_self, rhs);
return operator-(*_self, rhs);
}

// QMarginsF ::operator*(const QMarginsF &lhs, qreal rhs)
static QMarginsF op_QMarginsF_operator_star__3046(const QMarginsF *_self, qreal rhs) {
return ::operator*(*_self, rhs);
return operator*(*_self, rhs);
}

// QMarginsF ::operator/(const QMarginsF &lhs, qreal divisor)
static QMarginsF op_QMarginsF_operator_slash__3046(const QMarginsF *_self, qreal divisor) {
return ::operator/(*_self, divisor);
return operator/(*_self, divisor);
}

// QMarginsF ::operator+(const QMarginsF &margins)
static QMarginsF op_QMarginsF_operator_plus__2185(const QMarginsF *_self) {
return ::operator+(*_self);
return operator+(*_self);
}

// QMarginsF ::operator-(const QMarginsF &margins)
static QMarginsF op_QMarginsF_operator_minus__2185(const QMarginsF *_self) {
return ::operator-(*_self);
return operator-(*_self);
}

// QRectF ::operator+(const QMarginsF &lhs, const QRectF &rhs)
static QRectF op_QMarginsF_operator_plus__3939(const QMarginsF *_self, const QRectF &rhs) {
return ::operator+(*_self, rhs);
return operator+(*_self, rhs);
}


Expand Down
4 changes: 2 additions & 2 deletions src/gsiqt/qt5/QtCore/gsiDeclQMetaMethod.cc
Original file line number Diff line number Diff line change
Expand Up @@ -317,12 +317,12 @@ static void _call_f_typeName_c0 (const qt_gsi::GenericMethod * /*decl*/, void *c

// bool ::operator==(const QMetaMethod &m1, const QMetaMethod &m2)
static bool op_QMetaMethod_operator_eq__eq__4680(const QMetaMethod *_self, const QMetaMethod &m2) {
return ::operator==(*_self, m2);
return operator==(*_self, m2);
}

// bool ::operator!=(const QMetaMethod &m1, const QMetaMethod &m2)
static bool op_QMetaMethod_operator_excl__eq__4680(const QMetaMethod *_self, const QMetaMethod &m2) {
return ::operator!=(*_self, m2);
return operator!=(*_self, m2);
}


Expand Down
24 changes: 24 additions & 0 deletions src/gsiqt/qt5/QtCore/gsiDeclQOperatingSystemVersion.cc
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,26 @@ static void _call_f_currentType_0 (const qt_gsi::GenericStaticMethod * /*decl*/,
}


// bool ::operator>(const QOperatingSystemVersion &lhs, const QOperatingSystemVersion &rhs)
static bool op_QOperatingSystemVersion_operator_gt__7328(const QOperatingSystemVersion *_self, const QOperatingSystemVersion &rhs) {
return operator>(*_self, rhs);
}

// bool ::operator>=(const QOperatingSystemVersion &lhs, const QOperatingSystemVersion &rhs)
static bool op_QOperatingSystemVersion_operator_gt__eq__7328(const QOperatingSystemVersion *_self, const QOperatingSystemVersion &rhs) {
return operator>=(*_self, rhs);
}

// bool ::operator<(const QOperatingSystemVersion &lhs, const QOperatingSystemVersion &rhs)
static bool op_QOperatingSystemVersion_operator_lt__7328(const QOperatingSystemVersion *_self, const QOperatingSystemVersion &rhs) {
return operator<(*_self, rhs);
}

// bool ::operator<=(const QOperatingSystemVersion &lhs, const QOperatingSystemVersion &rhs)
static bool op_QOperatingSystemVersion_operator_lt__eq__7328(const QOperatingSystemVersion *_self, const QOperatingSystemVersion &rhs) {
return operator<=(*_self, rhs);
}


namespace gsi
{
Expand All @@ -198,6 +218,10 @@ static gsi::Methods methods_QOperatingSystemVersion () {
methods += new qt_gsi::GenericMethod ("type", "@brief Method QOperatingSystemVersion::OSType QOperatingSystemVersion::type()\n", true, &_init_f_type_c0, &_call_f_type_c0);
methods += new qt_gsi::GenericStaticMethod ("current", "@brief Static method QOperatingSystemVersion QOperatingSystemVersion::current()\nThis method is static and can be called without an instance.", &_init_f_current_0, &_call_f_current_0);
methods += new qt_gsi::GenericStaticMethod ("currentType", "@brief Static method QOperatingSystemVersion::OSType QOperatingSystemVersion::currentType()\nThis method is static and can be called without an instance.", &_init_f_currentType_0, &_call_f_currentType_0);
methods += gsi::method_ext(">", &::op_QOperatingSystemVersion_operator_gt__7328, gsi::arg ("rhs"), "@brief Operator bool ::operator>(const QOperatingSystemVersion &lhs, const QOperatingSystemVersion &rhs)\nThis is the mapping of the global operator to the instance method.");
methods += gsi::method_ext(">=", &::op_QOperatingSystemVersion_operator_gt__eq__7328, gsi::arg ("rhs"), "@brief Operator bool ::operator>=(const QOperatingSystemVersion &lhs, const QOperatingSystemVersion &rhs)\nThis is the mapping of the global operator to the instance method.");
methods += gsi::method_ext("<", &::op_QOperatingSystemVersion_operator_lt__7328, gsi::arg ("rhs"), "@brief Operator bool ::operator<(const QOperatingSystemVersion &lhs, const QOperatingSystemVersion &rhs)\nThis is the mapping of the global operator to the instance method.");
methods += gsi::method_ext("<=", &::op_QOperatingSystemVersion_operator_lt__eq__7328, gsi::arg ("rhs"), "@brief Operator bool ::operator<=(const QOperatingSystemVersion &lhs, const QOperatingSystemVersion &rhs)\nThis is the mapping of the global operator to the instance method.");
return methods;
}

Expand Down
20 changes: 10 additions & 10 deletions src/gsiqt/qt5/QtCore/gsiDeclQPoint.cc
Original file line number Diff line number Diff line change
Expand Up @@ -342,52 +342,52 @@ static void _call_f_dotProduct_3724 (const qt_gsi::GenericStaticMethod * /*decl*

// bool ::operator==(const QPoint &p1, const QPoint &p2)
static bool op_QPoint_operator_eq__eq__3724(const QPoint *_self, const QPoint &p2) {
return ::operator==(*_self, p2);
return operator==(*_self, p2);
}

// bool ::operator!=(const QPoint &p1, const QPoint &p2)
static bool op_QPoint_operator_excl__eq__3724(const QPoint *_self, const QPoint &p2) {
return ::operator!=(*_self, p2);
return operator!=(*_self, p2);
}

// const QPoint ::operator+(const QPoint &p1, const QPoint &p2)
static const QPoint op_QPoint_operator_plus__3724(const QPoint *_self, const QPoint &p2) {
return ::operator+(*_self, p2);
return operator+(*_self, p2);
}

// const QPoint ::operator-(const QPoint &p1, const QPoint &p2)
static const QPoint op_QPoint_operator_minus__3724(const QPoint *_self, const QPoint &p2) {
return ::operator-(*_self, p2);
return operator-(*_self, p2);
}

// const QPoint ::operator*(const QPoint &p, float factor)
static const QPoint op_QPoint_operator_star__2778(const QPoint *_self, float factor) {
return ::operator*(*_self, factor);
return operator*(*_self, factor);
}

// const QPoint ::operator*(const QPoint &p, double factor)
static const QPoint op_QPoint_operator_star__2879(const QPoint *_self, double factor) {
return ::operator*(*_self, factor);
return operator*(*_self, factor);
}

// const QPoint ::operator*(const QPoint &p, int factor)
static const QPoint op_QPoint_operator_star__2575(const QPoint *_self, int factor) {
return ::operator*(*_self, factor);
return operator*(*_self, factor);
}

// const QPoint ::operator+(const QPoint &p)
static const QPoint op_QPoint_operator_plus__1916(const QPoint *_self) {
return ::operator+(*_self);
return operator+(*_self);
}

// const QPoint ::operator-(const QPoint &p)
static const QPoint op_QPoint_operator_minus__1916(const QPoint *_self) {
return ::operator-(*_self);
return operator-(*_self);
}

// const QPoint ::operator/(const QPoint &p, qreal c)
static const QPoint op_QPoint_operator_slash__2777(const QPoint *_self, qreal c) {
return ::operator/(*_self, c);
return operator/(*_self, c);
}


Expand Down
16 changes: 8 additions & 8 deletions src/gsiqt/qt5/QtCore/gsiDeclQPointF.cc
Original file line number Diff line number Diff line change
Expand Up @@ -338,42 +338,42 @@ static void _call_f_dotProduct_3864 (const qt_gsi::GenericStaticMethod * /*decl*

// bool ::operator==(const QPointF &p1, const QPointF &p2)
static bool op_QPointF_operator_eq__eq__3864(const QPointF *_self, const QPointF &p2) {
return ::operator==(*_self, p2);
return operator==(*_self, p2);
}

// bool ::operator!=(const QPointF &p1, const QPointF &p2)
static bool op_QPointF_operator_excl__eq__3864(const QPointF *_self, const QPointF &p2) {
return ::operator!=(*_self, p2);
return operator!=(*_self, p2);
}

// const QPointF ::operator+(const QPointF &p1, const QPointF &p2)
static const QPointF op_QPointF_operator_plus__3864(const QPointF *_self, const QPointF &p2) {
return ::operator+(*_self, p2);
return operator+(*_self, p2);
}

// const QPointF ::operator-(const QPointF &p1, const QPointF &p2)
static const QPointF op_QPointF_operator_minus__3864(const QPointF *_self, const QPointF &p2) {
return ::operator-(*_self, p2);
return operator-(*_self, p2);
}

// const QPointF ::operator*(const QPointF &p, qreal c)
static const QPointF op_QPointF_operator_star__2847(const QPointF *_self, qreal c) {
return ::operator*(*_self, c);
return operator*(*_self, c);
}

// const QPointF ::operator+(const QPointF &p)
static const QPointF op_QPointF_operator_plus__1986(const QPointF *_self) {
return ::operator+(*_self);
return operator+(*_self);
}

// const QPointF ::operator-(const QPointF &p)
static const QPointF op_QPointF_operator_minus__1986(const QPointF *_self) {
return ::operator-(*_self);
return operator-(*_self);
}

// const QPointF ::operator/(const QPointF &p, qreal divisor)
static const QPointF op_QPointF_operator_slash__2847(const QPointF *_self, qreal divisor) {
return ::operator/(*_self, divisor);
return operator/(*_self, divisor);
}


Expand Down
Loading

0 comments on commit 761388f

Please sign in to comment.