All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.core.QObject Maven / Gradle / Ivy

The newest version!
package io.qt.core;

import io.qt.*;
import java.util.function.Supplier;

/**
 * 

The base class of all Qt objects

*

Java wrapper for Qt class QObject

*/ public class QObject extends io.qt.QtObject implements QtSignalEmitterInterface, QtSignalBlockerInterface, QtThreadAffineInterface { static { QtJambi_LibraryUtilities.initialize(); } @io.qt.QtPropertyMember(enabled=false) private java.util.Collection __rcEventFilters; /** * This variable stores the meta-object for the class. */ public static final io.qt.core.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QObject.class); /** *

See QObject::destroyed(QObject*)

*/ public final Signal1Default1 destroyed = new Signal1Default1<>(()->null); /** *

See QObject::objectNameChanged(QString)

*/ @io.qt.QtPropertyNotify(name="objectName") public final PrivateSignal1 objectNameChanged = new PrivateSignal1<>(); /** *

Overloaded constructor for {@link #QObject(io.qt.core.QObject)} * with parent = null.

*/ public QObject() { this((io.qt.core.QObject)null); } /** *

See QObject::QObject(QObject*)

*/ public QObject(io.qt.core.QObject parent){ super((QPrivateConstructor)null); initialize_native(this, parent); } private native static void initialize_native(QObject instance, io.qt.core.QObject parent); /** *

The name of this object

*

See QObject::bindableObjectName()

*/ @io.qt.QtPropertyBindable(name="objectName") @io.qt.QtUninvokable public final io.qt.core.QBindable bindableObjectName(){ return bindableObjectName_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QBindable bindableObjectName_native(long __this__nativeId); @io.qt.QtUninvokable private final io.qt.core.QBindingStorage bindingStorage(){ return bindingStorage_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QBindingStorage bindingStorage_native(long __this__nativeId); /** *

See QObject::blockSignals(bool)

*/ @io.qt.QtUninvokable public final boolean blockSignals(boolean b){ return blockSignals_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), b); } @io.qt.QtUninvokable private native boolean blockSignals_native_bool(long __this__nativeId, boolean b); /** *

See QObject::children()const

*/ @io.qt.QtUninvokable public final io.qt.core.QList children(){ return children_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QList children_native_constfct(long __this__nativeId); /** *

See QObject::deleteLater()

*/ public final void disposeLater(){ disposeLater_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void disposeLater_native(long __this__nativeId); /** *

See QObject::dumpObjectInfo()const

*/ @io.qt.QtUninvokable public final void dumpObjectInfo(){ dumpObjectInfo_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native void dumpObjectInfo_native_constfct(long __this__nativeId); /** *

See QObject::dumpObjectTree()const

*/ @io.qt.QtUninvokable public final void dumpObjectTree(){ dumpObjectTree_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native void dumpObjectTree_native_constfct(long __this__nativeId); /** *

See QObject::dynamicPropertyNames()const

*/ @io.qt.QtUninvokable public final io.qt.core.QList dynamicPropertyNames(){ return dynamicPropertyNames_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QList dynamicPropertyNames_native_constfct(long __this__nativeId); /** *

See QObject::inherits(const char*)const

*/ @io.qt.QtUninvokable public final boolean inherits(java.lang.String classname){ return inherits_native_const_char_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), classname); } @io.qt.QtUninvokable private native boolean inherits_native_const_char_ptr_constfct(long __this__nativeId, java.lang.String classname); /** *

See QObject::installEventFilter(QObject*)

*/ @io.qt.QtUninvokable public final void installEventFilter(io.qt.core.QObject filterObj){ installEventFilter_native_QObject_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(filterObj)); if (filterObj != null) { if(__rcEventFilters==null) __rcEventFilters = QtJambi_LibraryUtilities.internal.newRCList(); __rcEventFilters.add(filterObj); } } @io.qt.QtUninvokable private native void installEventFilter_native_QObject_ptr(long __this__nativeId, long filterObj); /** *

See QObject::isSignalConnected(QMetaMethod)const

*/ @io.qt.QtUninvokable protected final boolean isSignalConnected(io.qt.core.QMetaMethod signal){ return isSignalConnected_native_cref_QMetaMethod_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(signal)); } @io.qt.QtUninvokable private native boolean isSignalConnected_native_cref_QMetaMethod_constfct(long __this__nativeId, long signal); /** *

See QObject::isWidgetType()const

*/ @io.qt.QtUninvokable public final boolean isWidgetType(){ return isWidgetType_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean isWidgetType_native_constfct(long __this__nativeId); /** *

See QObject::isWindowType()const

*/ @io.qt.QtUninvokable public final boolean isWindowType(){ return isWindowType_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean isWindowType_native_constfct(long __this__nativeId); /** *

See QObject::killTimer(int)

*/ @io.qt.QtUninvokable public final void killTimer(int id){ killTimer_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), id); } @io.qt.QtUninvokable private native void killTimer_native_int(long __this__nativeId, int id); /** *

See QObject::moveToThread(QThread*)

*/ @io.qt.QtUninvokable public final void moveToThread(io.qt.core.QThread thread){ moveToThread_native_QThread_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(thread)); } @io.qt.QtUninvokable private native void moveToThread_native_QThread_ptr(long __this__nativeId, long thread); /** *

See QObject::objectName()const

*/ @io.qt.QtPropertyReader(name="objectName") @io.qt.QtUninvokable public final java.lang.String objectName(){ return objectName_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native java.lang.String objectName_native_constfct(long __this__nativeId); /** *

See QObject::parent()const

*/ @io.qt.QtUninvokable public final io.qt.core.QObject parent(){ return parent_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QObject parent_native_constfct(long __this__nativeId); /** *

See QObject::property(const char*)const

*/ @io.qt.QtUninvokable public final java.lang.Object property(java.lang.String name){ return property_native_const_char_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), name); } @io.qt.QtUninvokable private native java.lang.Object property_native_const_char_ptr_constfct(long __this__nativeId, java.lang.String name); /** *

See QObject::receivers(const char*)const

*/ @io.qt.QtUninvokable protected final int receivers(java.lang.String signal){ if(signal==null || signal.isEmpty()) return 0; if(!signal.startsWith("2")){ io.qt.core.QMetaMethod method = metaObject().method(signal); if(method!=null && method.methodType()==io.qt.core.QMetaMethod.MethodType.Signal) { signal = "2" + method.cppMethodSignature(); } } return receivers_native_const_char_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), signal); } @io.qt.QtUninvokable private native int receivers_native_const_char_ptr_constfct(long __this__nativeId, java.lang.String signal); /** *

See QObject::removeEventFilter(QObject*)

*/ @io.qt.QtUninvokable public final void removeEventFilter(io.qt.core.QObject obj){ removeEventFilter_native_QObject_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(obj)); if (obj != null) { while (__rcEventFilters != null && __rcEventFilters.remove(obj)) ; } } @io.qt.QtUninvokable private native void removeEventFilter_native_QObject_ptr(long __this__nativeId, long obj); /** *

See QObject::sender()const

*/ @io.qt.QtUninvokable protected final io.qt.core.QObject sender(){ return sender_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QObject sender_native_constfct(long __this__nativeId); /** *

See QObject::senderSignalIndex()const

*/ @io.qt.QtUninvokable protected final int senderSignalIndex(){ return senderSignalIndex_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int senderSignalIndex_native_constfct(long __this__nativeId); /** *

See QObject::setObjectName(QString)

*/ @io.qt.QtPropertyWriter(name="objectName") @io.qt.QtUninvokable public final void setObjectName(java.lang.String name){ setObjectName_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), name); } @io.qt.QtUninvokable private native void setObjectName_native_cref_QString(long __this__nativeId, java.lang.String name); /** *

See QObject::setParent(QObject*)

*/ @io.qt.QtUninvokable public final void setParent(io.qt.core.QObject parent){ setParent_native_QObject_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(parent)); } @io.qt.QtUninvokable private native void setParent_native_QObject_ptr(long __this__nativeId, long parent); /** *

See QObject::setProperty(const char*,QVariant)

*/ @io.qt.QtUninvokable public final boolean setProperty(java.lang.String name, java.lang.Object value){ return setProperty_native_const_char_ptr_cref_QVariant(QtJambi_LibraryUtilities.internal.nativeId(this), name, value); } @io.qt.QtUninvokable private native boolean setProperty_native_const_char_ptr_cref_QVariant(long __this__nativeId, java.lang.String name, java.lang.Object value); /** *

See QObject::signalsBlocked()const

*/ @io.qt.QtUninvokable public final boolean signalsBlocked(){ return signalsBlocked_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean signalsBlocked_native_constfct(long __this__nativeId); /** *

Overloaded function for {@link #startTimer(int, io.qt.core.Qt.TimerType)} * with timerType = io.qt.core.Qt.TimerType.CoarseTimer.

*/ @io.qt.QtUninvokable public final int startTimer(int interval) { return startTimer(interval, io.qt.core.Qt.TimerType.CoarseTimer); } /** *

See QObject::startTimer(int,Qt::TimerType)

*/ @io.qt.QtUninvokable public final int startTimer(int interval, io.qt.core.Qt.TimerType timerType){ if(interval < 0){ throw new IllegalArgumentException("Timers cannot have negative intervals."); } if(QAbstractEventDispatcher.instance()==null){ throw new RuntimeException("Timers can only be used with threads providing an event dispatcher."); } return startTimer_native_int_Qt_TimerType(QtJambi_LibraryUtilities.internal.nativeId(this), interval, timerType.value()); } @io.qt.QtUninvokable private native int startTimer_native_int_Qt_TimerType(long __this__nativeId, int interval, int timerType); /** *

See QObject::thread()const

*/ @io.qt.QtUninvokable public final io.qt.core.QThread thread(){ return thread_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QThread thread_native_constfct(long __this__nativeId); /** *

See QObject::childEvent(QChildEvent*)

*/ @io.qt.QtUninvokable protected void childEvent(io.qt.core.QChildEvent event){ childEvent_native_QChildEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event)); } @io.qt.QtUninvokable private native void childEvent_native_QChildEvent_ptr(long __this__nativeId, long event); /** *

See QObject::connectNotify(QMetaMethod)

*/ @io.qt.QtUninvokable protected void connectNotify(io.qt.core.QMetaMethod signal){ connectNotify_native_cref_QMetaMethod(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(signal)); } @io.qt.QtUninvokable private native void connectNotify_native_cref_QMetaMethod(long __this__nativeId, long signal); /** *

See QObject::customEvent(QEvent*)

*/ @io.qt.QtUninvokable protected void customEvent(io.qt.core.QEvent event){ customEvent_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event)); } @io.qt.QtUninvokable private native void customEvent_native_QEvent_ptr(long __this__nativeId, long event); /** *

See QObject::disconnectNotify(QMetaMethod)

*/ @io.qt.QtUninvokable protected void disconnectNotify(io.qt.core.QMetaMethod signal){ disconnectNotify_native_cref_QMetaMethod(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(signal)); } @io.qt.QtUninvokable private native void disconnectNotify_native_cref_QMetaMethod(long __this__nativeId, long signal); /** *

See QObject::event(QEvent*)

*/ @io.qt.QtUninvokable public boolean event(io.qt.core.QEvent event){ return event_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event)); } @io.qt.QtUninvokable private native boolean event_native_QEvent_ptr(long __this__nativeId, long event); /** *

See QObject::eventFilter(QObject*,QEvent*)

*/ @io.qt.QtUninvokable public boolean eventFilter(io.qt.core.QObject watched, io.qt.core.QEvent event){ return eventFilter_native_QObject_ptr_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(watched), QtJambi_LibraryUtilities.internal.checkedNativeId(event)); } @io.qt.QtUninvokable private native boolean eventFilter_native_QObject_ptr_QEvent_ptr(long __this__nativeId, long watched, long event); /** *

See QObject::timerEvent(QTimerEvent*)

*/ @io.qt.QtUninvokable protected void timerEvent(io.qt.core.QTimerEvent event){ timerEvent_native_QTimerEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event)); } @io.qt.QtUninvokable private native void timerEvent_native_QTimerEvent_ptr(long __this__nativeId, long event); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QObject(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. */ @io.qt.NativeAccess protected QObject(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @io.qt.QtUninvokable private static native void initialize_native(QObject instance, QDeclarativeConstructor constructor); /** * Parameter type for declarative constructors, i.e. constructors being * called by QML only. */ protected static final class QDeclarativeConstructor { private QDeclarativeConstructor(Class cls, long placement) { this.placement = placement; this.cls = cls; } @io.qt.NativeAccess private final long placement; @io.qt.NativeAccess private final Class cls; } private static String classToScope(Class cls) { if(cls.isEnum()) { if(cls.getDeclaringClass()!=null) { return classToScope(cls.getDeclaringClass()); }else { return cls.getPackage().getName(); } }else if(cls.isAnonymousClass()) { if(cls.getEnclosingClass()!=null) { return classToScope(cls.getEnclosingClass()); } }else if(cls.getEnclosingClass()!=null) { return classToScope(cls.getEnclosingClass())+"$"+cls.getSimpleName(); } return cls.getName(); } /** * Returns a translated version of source, or source itself if there is no appropriate translated version. * Note that if you need to translate in a static context, you can use QCoreApplication::translate(), * which is a static method. * * @param source the source text to translate. * @return translated version of the source text. */ public static String tr(String source) { String scope = classToScope(QtJambi_LibraryUtilities.internal.callerClassProvider().get()); return QCoreApplication.translate(scope, source); } /** * Returns a translated version of source, or source itself if there is no appropriate translated version. * The comment is used to help translators translate the source text. * Note that if you need to translate in a static context, you can use QCoreApplication::translate(), * which is a static method. * * @param source the source text to translate. * @param comment helps the translator translate the source text. * @return translated version of the source text. */ public static String tr(String source, String comment) { String scope = classToScope(QtJambi_LibraryUtilities.internal.callerClassProvider().get()); return QCoreApplication.translate(scope, source, comment); } /** * Returns a translated version of source, or source itself if there is no appropriate translated version. * If %n occurs in the source text, it will be substituted with count. * The comment is used to help translators translate the source text. * Note that if you need to translate in a static context, you can use QCoreApplication::translate(), * which is a static method. * * @param source the source text to translate. * @param comment helps the translator translate the source text. * @param count in source %n will be substituted by count. * @return translated version of the source text. */ public static String tr(String source, String comment, int count) { String scope = classToScope(QtJambi_LibraryUtilities.internal.callerClassProvider().get()); return QCoreApplication.translate(scope, source, comment, count); } /** *

Overloaded function for {@link #findChild(Class)} * with cl = QObject.class.

* @return found child */ @io.qt.QtUninvokable public final QObject findChild() { return findChild(QObject.class); } /** *

Overloaded function for {@link #findChild(Class,String)} * with cl = QObject.class.

* @return found child */ @io.qt.QtUninvokable public final QObject findChild(String name) { return findChild(QObject.class, name); } /** *

Overloaded function for {@link #findChild(Class,String,Qt.FindChildOptions)} * with cl = QObject.class.

* @return found child */ @io.qt.QtUninvokable public final QObject findChild(String name, Qt.FindChildOption... options) { return findChild(QObject.class, name, new Qt.FindChildOptions(options)); } /** *

Overloaded function for {@link #findChild(Class,String,Qt.FindChildOptions)} * with cl = QObject.class.

* @return found child */ @io.qt.QtUninvokable public final QObject findChild(String name, Qt.FindChildOptions options) { return findChild(QObject.class, name, options); } /** *

Overloaded function for {@link #findChild(Class,String,Qt.FindChildOptions)}

*

with:

    *
  • name = null
  • *
  • options = FindChildrenRecursively
  • *
* @param type of child * @param cl type of child * @return found child */ @io.qt.QtUninvokable public final T findChild(Class < T > cl) { return findChild(cl, (String)null, new Qt.FindChildOptions(Qt.FindChildOption.FindChildrenRecursively)); } /** *

Overloaded function for {@link #findChild(Class,String,Qt.FindChildOptions)} * with: options = FindChildrenRecursively.

* @param type of child * @param cl type of child * @param name name of child * @return found child */ @io.qt.QtUninvokable public final T findChild(Class < T > cl, String name) { return findChild(cl, name, new Qt.FindChildOptions(Qt.FindChildOption.FindChildrenRecursively)); } /** *

Overloaded function for {@link #findChild(Class,String,Qt.FindChildOptions)}.

* @param type of child * @param cl type of child * @param name name of child * @param options search options * @return found child */ @io.qt.QtUninvokable public final T findChild(Class < T > cl, String name, Qt.FindChildOption... options) { return findChild(cl, name, new Qt.FindChildOptions(options)); } /** *

Returns the child of this object that instane of cl and * that is called name, or null if there is no such object. * Omitting the name argument causes all object names to be matched. * The search is performed recursively, unless options specifies the * option FindDirectChildrenOnly.

* *

If there is more than one child matching the search, the most * direct ancestor is returned. If there are several direct * ancestors, it is undefined which one will be returned. In that * case, {@link #findChildren()} should be used.

* *

This example returns a child QPushButton of parentWidget * named "button1", even if the button isn't a direct child of * the parent:

*

* QPushButton button = parentWidget.findChild(QPushButton.class, "button1"); *

*

This example returns a QListWidget child of parentWidget:

*

* QListWidget list = parentWidget.findChild(QListWidget.class); *

*

This example returns a child QPushButton of parentWidget * (its direct parent) named "button1":

*

* QPushButton button = parentWidget.findChild(QPushButton.class, "button1", Qt.FindChildOption.FindDirectChildrenOnly); *

*

This example returns a QListWidget child of parentWidget, * its direct parent:

*

* QListWidget list = parentWidget.findChild(QListWidget.class, null, Qt.FindChildOption.FindDirectChildrenOnly); *

* @param type of child * @param cl type of child * @param name name of child * @param options search options * @return found child * @see #findChildren() */ @io.qt.QtUninvokable public final T findChild(Class < T > cl, String name, Qt.FindChildOptions options) { return findChild(java.util.Objects.requireNonNull(cl), QMetaObject.forType(cl).metaObjectPointer, name, options.value()); } @io.qt.QtUninvokable private native final T findChild(Class < T > cl, long metaObjectPointer, String name, int options); /** *

Overloaded function for {@link #findChildren(Class)} * with cl = QObject.class.

* @return found children */ @io.qt.QtUninvokable public final QList findChildren() { return findChildren(QObject.class, (String)null, new Qt.FindChildOptions(Qt.FindChildOption.FindChildrenRecursively)); } /** *

Overloaded function for {@link #findChildren(Class,String)} * with cl = QObject.class.

* @return found children */ @io.qt.QtUninvokable public final QList findChildren(String name) { return findChildren(QObject.class, name, new Qt.FindChildOptions(Qt.FindChildOption.FindChildrenRecursively)); } /** *

Overloaded function for {@link #findChildren(Class,String,Qt.FindChildOptions)} * with cl = QObject.class.

* @return found children */ @io.qt.QtUninvokable public final QList findChildren(String name, Qt.FindChildOption... options) { return findChildren(QObject.class, name, new Qt.FindChildOptions(options)); } /** *

Overloaded function for {@link #findChildren(Class,String,Qt.FindChildOptions)} * with cl = QObject.class.

* @return found children */ @io.qt.QtUninvokable public final QList findChildren(String name, Qt.FindChildOptions options) { return findChildren(QObject.class, name, options); } /** *

Overloaded function for {@link #findChildren(Class,String,Qt.FindChildOptions)}

*

with:

    *
  • name = null
  • *
  • options = FindChildrenRecursively
  • *
* @param type of children * @param cl type of children * @return found children */ @io.qt.QtUninvokable public final QList findChildren(Class < T > cl) { return findChildren(cl, (String)null, new Qt.FindChildOptions(Qt.FindChildOption.FindChildrenRecursively)); } /** *

Overloaded function for {@link #findChildren(Class,String,Qt.FindChildOptions)} * with: options = FindChildrenRecursively.

* @param type of children * @param cl type of children * @param name name of children * @return found children */ @io.qt.QtUninvokable public final QList findChildren(Class < T > cl, String name) { return findChildren(cl, name, new Qt.FindChildOptions(Qt.FindChildOption.FindChildrenRecursively)); } /** *

Overloaded function for {@link #findChildren(Class,String,Qt.FindChildOptions)}.

* @param type of children * @param cl type of children * @param name name of children * @param options search options * @return found children */ @io.qt.QtUninvokable public final QList findChildren(Class < T > cl, String name, Qt.FindChildOption... options) { return findChildren(cl, name, new Qt.FindChildOptions(options)); } /** *

Returns all children of this object with the given name that are * instance of cl, or an empty list if there are no such objects. * Omitting the name argument causes all object names to be matched. * The search is performed recursively, unless options specifies the * option FindDirectChildrenOnly.

* *

The following example shows how to find a list of child QWidgets of * the specified parentWidget named widgetname:

*

* List<QWidget> widgets = parentWidget.findChildren(QWidget.class, "widgetname"); *

*

This example returns all QPushButtons that are children of parentWidget:

*

* List<QPushButton> allPButtons = parentWidget.findChildren(QPushButton.class); *

*

This example returns all QPushButtons that are immediate children of parentWidget:

*

* List<QPushButton> childButtons = parentWidget.findChildren(QPushButton.class, null, Qt.FindChildOption.FindDirectChildrenOnly); *

* @param type of children * @param cl type of children * @param name name of children * @param options search options * @return found children * @see #findChild() */ @io.qt.QtUninvokable public final QList findChildren(Class < T > cl, String name, Qt.FindChildOptions options){ return findChildrenString(QMetaObject.forType(java.util.Objects.requireNonNull(cl)).metaObjectPointer, name, options.value()); } @io.qt.QtUninvokable private native final QList findChildrenString(long metaObjectPointer, String name, int options); /** *

Overloaded function for {@link #findChildren(Class,QRegularExpression,Qt.FindChildOptions)} * with: options = FindChildrenRecursively.

* @param type of children * @param cl type of children * @param re regular expression * @return found children */ @io.qt.QtUninvokable public final QList findChildren(Class < T > cl, QRegularExpression re) { return findChildren(cl, re, new Qt.FindChildOptions(Qt.FindChildOption.FindChildrenRecursively)); } /** *

Overloaded function for {@link #findChildren(Class,QRegularExpression,Qt.FindChildOptions)}.

* @param type of children * @param cl type of children * @param re regular expression * @param options search options * @return found children */ @io.qt.QtUninvokable public final QList findChildren(Class < T > cl, QRegularExpression re, Qt.FindChildOption... options) { return findChildren(cl, re, new Qt.FindChildOptions(options)); } /** *

This function overloads {@link #findChildren()}.

*

Returns the children of this object that are instance of cl * and that have names matching the regular expression re, * or an empty list if there are no such objects. * The search is performed recursively, unless options specifies the option FindDirectChildrenOnly.

* @param type of children * @param cl type of children * @param re regular expression * @param options search options * @return found children * @see #findChildren() */ @io.qt.QtUninvokable public final QList findChildren(Class < T > cl, QRegularExpression re, Qt.FindChildOptions options){ return findChildrenQRegularExpression(QMetaObject.forType(java.util.Objects.requireNonNull(cl)).metaObjectPointer, re, options.value()); } @io.qt.QtUninvokable private native final QList findChildrenQRegularExpression(long metaObjectPointer, QRegularExpression re, int options); /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes no * parameters. */ public final class Signal0 extends QMetaObject.AbstractPublicSignal0 { /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes one * parameter. * * @param The type of the single parameter of the signal. */ public final class Signal1 extends QMetaObject.AbstractPublicSignal1 { /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes two * parameters. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. */ public final class Signal2 extends QMetaObject.AbstractPublicSignal2 { /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes three * parameters. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. */ public final class Signal3 extends QMetaObject.AbstractPublicSignal3 { /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes four * parameters. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. */ public final class Signal4 extends QMetaObject.AbstractPublicSignal4 { /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes five * parameters. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. */ public final class Signal5 extends QMetaObject.AbstractPublicSignal5 { /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes six * parameters. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. */ public final class Signal6 extends QMetaObject.AbstractPublicSignal6 { /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes seven * parameters. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. */ public final class Signal7 extends QMetaObject.AbstractPublicSignal7 { /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes eight * parameters. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. */ public final class Signal8 extends QMetaObject.AbstractPublicSignal8 { /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes nine * parameters. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param The type of the ninth parameter of the signal. */ public final class Signal9 extends QMetaObject.AbstractPublicSignal9{ /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes one * parameters and providing default value for the parameter. * * @param The type of the first parameter of the signal. */ public final class Signal1Default1 extends QMetaObject.AbstractPublicSignal1 implements QMetaObject.Emitable0, QMetaObject.Connectable0 { @SuppressWarnings("unused") private Signal1Default1() { this.arg1Default = null; } public Signal1Default1(Supplier arg1Default){ super(); if(arg1Default!=null){ this.arg1Default = arg1Default; }else{ throw new QNoDefaultValueException(1); } } private final Supplier arg1Default; @Override public final void emit() { emitDefaultSignal(arg1Default); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes two * parameters and providing a default value for parameter no. 2. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. */ public final class Signal2Default1 extends QMetaObject.AbstractSignal2Default1{ @SuppressWarnings("unused") private Signal2Default1() { super(); } public Signal2Default1(Supplier arg2Default) { super(arg2Default); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes two * parameters and providing default values for parameters 1 and 2. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. */ public final class Signal2Default2 extends QMetaObject.AbstractSignal2Default1 implements QMetaObject.Emitable0, QMetaObject.Connectable0 { @SuppressWarnings("unused") private Signal2Default2() { this.arg1Default = null; } public Signal2Default2(Supplier arg1Default, Supplier arg2Default){ super(arg2Default); if(arg1Default!=null){ this.arg1Default = arg1Default; }else{ throw new QNoDefaultValueException(1); } } private final Supplier arg1Default; @Override public final void emit() { emitDefaultSignal(arg1Default); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes three * parameters and providing a default value for parameter no. 3. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. */ public final class Signal3Default1 extends QMetaObject.AbstractSignal3Default1 { @SuppressWarnings("unused") private Signal3Default1() { } public Signal3Default1(Supplier arg3Default) { super(arg3Default); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes three * parameters and providing default values for parameters 2 and 3. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. */ public final class Signal3Default2 extends QMetaObject.AbstractSignal3Default2 { @SuppressWarnings("unused") private Signal3Default2() { } public Signal3Default2(Supplier arg2Default, Supplier arg3Default){ super(arg2Default, arg3Default); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes three * parameters and providing default values for parameters 1 to 3. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. */ public final class Signal3Default3 extends QMetaObject.AbstractSignal3Default2 implements QMetaObject.Emitable0, QMetaObject.Connectable0 { @SuppressWarnings("unused") private Signal3Default3() { this.arg1Default = null; } public Signal3Default3(Supplier arg1Default, Supplier arg2Default, Supplier arg3Default){ super(arg2Default, arg3Default); if(arg2Default!=null){ this.arg1Default = arg1Default; }else{ throw new QNoDefaultValueException(1); } } private final Supplier arg1Default; @Override public final void emit() { emitDefaultSignal(arg1Default); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes four * parameters and providing a default value for parameter no. 4. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. */ public final class Signal4Default1 extends QMetaObject.AbstractSignal4Default1{ @SuppressWarnings("unused") private Signal4Default1() { } public Signal4Default1(Supplier arg4Default){ super(arg4Default); } @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes four * parameters and providing default values for parameters 3 and 4. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. */ public final class Signal4Default2 extends QMetaObject.AbstractSignal4Default2{ @SuppressWarnings("unused") private Signal4Default2() { } public Signal4Default2(Supplier arg3Default, Supplier arg4Default){ super(arg3Default, arg4Default); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes four * parameters and providing default values for parameters 2 to 4. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. */ public final class Signal4Default3 extends QMetaObject.AbstractSignal4Default3{ @SuppressWarnings("unused") private Signal4Default3() { } public Signal4Default3(Supplier arg2Default, Supplier arg3Default, Supplier arg4Default){ super(arg2Default, arg3Default, arg4Default); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes four * parameters and providing default values for parameters 1 to 4. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. */ public final class Signal4Default4 extends QMetaObject.AbstractSignal4Default3 implements QMetaObject.Emitable0, QMetaObject.Connectable0 { @SuppressWarnings("unused") private Signal4Default4() { this.arg1Default = null; } public Signal4Default4(Supplier arg1Default, Supplier arg2Default, Supplier arg3Default, Supplier arg4Default){ super(arg2Default, arg3Default, arg4Default); if(arg1Default!=null){ this.arg1Default = arg1Default; }else{ throw new QNoDefaultValueException(1); } } private final Supplier arg1Default; @Override public final void emit() { emitDefaultSignal(arg1Default); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes five * parameters and providing a default value for parameter no. 5. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. */ public final class Signal5Default1 extends QMetaObject.AbstractSignal5Default1{ @SuppressWarnings("unused") private Signal5Default1() { } public Signal5Default1(Supplier arg5Default){ super(arg5Default); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes five * parameters and providing default values for parameters 4 and 5. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. */ public final class Signal5Default2 extends QMetaObject.AbstractSignal5Default2{ @SuppressWarnings("unused") private Signal5Default2() { } public Signal5Default2(Supplier arg4Default, Supplier arg5Default){ super(arg4Default, arg5Default); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes five * parameters and providing default values for parameters 3 to 5. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. */ public final class Signal5Default3 extends QMetaObject.AbstractSignal5Default3{ @SuppressWarnings("unused") private Signal5Default3() { } public Signal5Default3(Supplier arg3Default, Supplier arg4Default, Supplier arg5Default){ super(arg3Default, arg4Default, arg5Default); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes five * parameters and providing default values for parameters 2 to 5. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. */ public final class Signal5Default4 extends QMetaObject.AbstractSignal5Default4{ @SuppressWarnings("unused") private Signal5Default4() { } public Signal5Default4(Supplier arg2Default, Supplier arg3Default, Supplier arg4Default, Supplier arg5Default){ super(arg2Default, arg3Default, arg4Default, arg5Default); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes five * parameters and providing default values for parameters 1 to 5. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. */ public final class Signal5Default5 extends QMetaObject.AbstractSignal5Default4 implements QMetaObject.Emitable0, QMetaObject.Connectable0{ @SuppressWarnings("unused") private Signal5Default5() { this.arg1Default = null; } public Signal5Default5(Supplier arg1Default, Supplier arg2Default, Supplier arg3Default, Supplier arg4Default, Supplier arg5Default){ super(arg2Default, arg3Default, arg4Default, arg5Default); if(arg1Default!=null){ this.arg1Default = arg1Default; }else{ throw new QNoDefaultValueException(1); } } private final Supplier arg1Default; @Override public final void emit() { emitDefaultSignal(arg1Default); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes six * parameters and providing a default value for parameter no. 6. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. */ public final class Signal6Default1 extends QMetaObject.AbstractSignal6Default1{ @SuppressWarnings("unused") private Signal6Default1() { } public Signal6Default1(Supplier arg6Default){ super(arg6Default); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes six * parameters and providing default values for parameters 5 and 6. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. */ public final class Signal6Default2 extends QMetaObject.AbstractSignal6Default2{ @SuppressWarnings("unused") private Signal6Default2() { } public Signal6Default2(Supplier arg5Default, Supplier arg6Default){ super(arg5Default, arg6Default); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes six * parameters and providing default values for parameters 4 to 6. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. */ public final class Signal6Default3 extends QMetaObject.AbstractSignal6Default3{ @SuppressWarnings("unused") private Signal6Default3() { } public Signal6Default3(Supplier arg4Default, Supplier arg5Default, Supplier arg6Default){ super(arg4Default, arg5Default, arg6Default); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes six * parameters and providing default values for parameters 3 to 6. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. */ public final class Signal6Default4 extends QMetaObject.AbstractSignal6Default4{ @SuppressWarnings("unused") private Signal6Default4() { } public Signal6Default4(Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default){ super(arg3Default, arg4Default, arg5Default, arg6Default); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes six * parameters and providing default values for parameters 2 to 6. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. */ public final class Signal6Default5 extends QMetaObject.AbstractSignal6Default5{ @SuppressWarnings("unused") private Signal6Default5() { } public Signal6Default5(Supplier arg2Default, Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default){ super(arg2Default, arg3Default, arg4Default, arg5Default, arg6Default); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes six * parameters and providing default values for parameters 1 to 6. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. */ public final class Signal6Default6 extends QMetaObject.AbstractSignal6Default5 implements QMetaObject.Emitable0, QMetaObject.Connectable0{ @SuppressWarnings("unused") private Signal6Default6() { this.arg1Default = null; } public Signal6Default6(Supplier arg1Default, Supplier arg2Default, Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default){ super(arg2Default, arg3Default, arg4Default, arg5Default, arg6Default); this.arg1Default = arg1Default; if(this.arg1Default==null){ throw new QNoDefaultValueException(1); } } private final Supplier arg1Default; @Override public final void emit() { emitDefaultSignal(arg1Default); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes seven * parameters and providing a default value for parameter no. 7. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. */ public final class Signal7Default1 extends QMetaObject.AbstractSignal7Default1{ @SuppressWarnings("unused") private Signal7Default1() { } public Signal7Default1(Supplier arg7Default){ super(arg7Default); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes seven * parameters and providing default values for parameters 6 and 7. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. */ public final class Signal7Default2 extends QMetaObject.AbstractSignal7Default2 { @SuppressWarnings("unused") private Signal7Default2() { } public Signal7Default2(Supplier arg6Default, Supplier arg7Default){ super(arg6Default, arg7Default); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes seven * parameters and providing default values for parameters 5 to 7. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. */ public final class Signal7Default3 extends QMetaObject.AbstractSignal7Default3 { @SuppressWarnings("unused") private Signal7Default3() { } public Signal7Default3(Supplier arg5Default, Supplier arg6Default, Supplier arg7Default){ super(arg5Default, arg6Default, arg7Default); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes seven * parameters and providing default values for parameters 4 to 7. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. */ public final class Signal7Default4 extends QMetaObject.AbstractSignal7Default4 { @SuppressWarnings("unused") private Signal7Default4() { } public Signal7Default4(Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default){ super(arg4Default, arg5Default, arg6Default, arg7Default); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes seven * parameters and providing default values for parameters 3 to 7. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. */ public final class Signal7Default5 extends QMetaObject.AbstractSignal7Default5 { @SuppressWarnings("unused") private Signal7Default5() { } public Signal7Default5(Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default){ super(arg3Default, arg4Default, arg5Default, arg6Default, arg7Default); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes seven * parameters and providing default values for parameters 2 to 7. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. */ public final class Signal7Default6 extends QMetaObject.AbstractSignal7Default6 { @SuppressWarnings("unused") private Signal7Default6() { } public Signal7Default6(Supplier arg2Default, Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default){ super(arg2Default, arg3Default, arg4Default, arg5Default, arg6Default, arg7Default); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes seven * parameters and providing default values for parameters 1 to 7. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. */ public final class Signal7Default7 extends QMetaObject.AbstractSignal7Default6 implements QMetaObject.Emitable0, QMetaObject.Connectable0 { @SuppressWarnings("unused") private Signal7Default7() { this.arg1Default = null; } public Signal7Default7(Supplier arg1Default, Supplier arg2Default, Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default){ super(arg2Default, arg3Default, arg4Default, arg5Default, arg6Default, arg7Default); this.arg1Default = arg1Default; if(this.arg1Default==null){ throw new QNoDefaultValueException(2); } } private final Supplier arg1Default; @Override public final void emit() { emitDefaultSignal(arg1Default); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes eight * parameters and providing a default value for parameter no. 8. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. */ public final class Signal8Default1 extends QMetaObject.AbstractSignal8Default1{ @SuppressWarnings("unused") private Signal8Default1() { } public Signal8Default1(Supplier arg8Default){ super(arg8Default); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes eight * parameters and providing default values for parameters 7 and 8. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. */ public final class Signal8Default2 extends QMetaObject.AbstractSignal8Default2 { @SuppressWarnings("unused") private Signal8Default2() { } public Signal8Default2(Supplier arg7Default, Supplier arg8Default){ super(arg7Default, arg8Default); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes eight * parameters and providing default values for parameters 6 to 8. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. */ public final class Signal8Default3 extends QMetaObject.AbstractSignal8Default3 { @SuppressWarnings("unused") private Signal8Default3() { } public Signal8Default3(Supplier arg6Default, Supplier arg7Default, Supplier arg8Default){ super(arg6Default, arg7Default, arg8Default); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes eight * parameters and providing default values for parameters 5 to 8. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. */ public final class Signal8Default4 extends QMetaObject.AbstractSignal8Default4 { @SuppressWarnings("unused") private Signal8Default4() { } public Signal8Default4(Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default){ super(arg5Default, arg6Default, arg7Default, arg8Default); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes eight * parameters and providing default values for parameters 4 to 8. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. */ public final class Signal8Default5 extends QMetaObject.AbstractSignal8Default5 { @SuppressWarnings("unused") private Signal8Default5() { } public Signal8Default5(Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default){ super(arg4Default, arg5Default, arg6Default, arg7Default, arg8Default); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes eight * parameters and providing default values for parameters 3 to 8. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. */ public final class Signal8Default6 extends QMetaObject.AbstractSignal8Default6 { @SuppressWarnings("unused") private Signal8Default6() { } public Signal8Default6(Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default){ super(arg3Default, arg4Default, arg5Default, arg6Default, arg7Default, arg8Default); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes eight * parameters and providing default values for parameters 2 to 8. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. */ public final class Signal8Default7 extends QMetaObject.AbstractSignal8Default7 { @SuppressWarnings("unused") private Signal8Default7() { } public Signal8Default7(Supplier arg2Default, Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default){ super(arg2Default, arg3Default, arg4Default, arg5Default, arg6Default, arg7Default, arg8Default); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes eight * parameters and providing default values for parameters 1 to 8. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. */ public final class Signal8Default8 extends QMetaObject.AbstractSignal8Default7 implements QMetaObject.Emitable0, QMetaObject.Connectable0 { @SuppressWarnings("unused") private Signal8Default8() { this.arg1Default = null; } public Signal8Default8(Supplier arg1Default, Supplier arg2Default, Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default){ super(arg2Default, arg3Default, arg4Default, arg5Default, arg6Default, arg7Default, arg8Default); this.arg1Default = arg1Default; if(this.arg1Default==null){ throw new QNoDefaultValueException(1); } } public Signal8Default8(Supplier arg1Default, Supplier arg2Default, Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default, Class declaringClass, boolean dummy){ super(arg2Default, arg3Default, arg4Default, arg5Default, arg6Default, arg7Default, arg8Default, declaringClass, dummy); this.arg1Default = arg1Default; if(this.arg1Default==null){ throw new QNoDefaultValueException(1); } } private final Supplier arg1Default; @Override public final void emit() { emitDefaultSignal(arg1Default); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes nine * parameters and providing a default value for parameter no. 9. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param The type of the ninth parameter of the signal. */ public final class Signal9Default1 extends QMetaObject.AbstractSignal9Default1{ @SuppressWarnings("unused") private Signal9Default1() { } public Signal9Default1(Supplier arg9Default){ super(arg9Default); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes nine * parameters and providing default values for parameters 8 and 9. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param The type of the ninth parameter of the signal. */ public final class Signal9Default2 extends QMetaObject.AbstractSignal9Default2 { @SuppressWarnings("unused") private Signal9Default2() { } public Signal9Default2(Supplier arg8Default, Supplier arg9Default){ super(arg8Default, arg9Default); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes nine * parameters and providing default values for parameters 7 to 9. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param The type of the ninth parameter of the signal. */ public final class Signal9Default3 extends QMetaObject.AbstractSignal9Default3 { @SuppressWarnings("unused") private Signal9Default3() { } public Signal9Default3(Supplier arg7Default, Supplier arg8Default, Supplier arg9Default){ super(arg7Default, arg8Default, arg9Default); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes nine * parameters and providing default values for parameters 6 to 9. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param The type of the ninth parameter of the signal. */ public final class Signal9Default4 extends QMetaObject.AbstractSignal9Default4 { @SuppressWarnings("unused") private Signal9Default4() { } public Signal9Default4(Supplier arg6Default, Supplier arg7Default, Supplier arg8Default, Supplier arg9Default){ super(arg6Default, arg7Default, arg8Default, arg9Default); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes nine * parameters and providing default values for parameters 5 to 9. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param The type of the ninth parameter of the signal. */ public final class Signal9Default5 extends QMetaObject.AbstractSignal9Default5 { @SuppressWarnings("unused") private Signal9Default5() { } public Signal9Default5(Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default, Supplier arg9Default){ super(arg5Default, arg6Default, arg7Default, arg8Default, arg9Default); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes nine * parameters and providing default values for parameters 4 to 9. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param The type of the ninth parameter of the signal. */ public final class Signal9Default6 extends QMetaObject.AbstractSignal9Default6 { @SuppressWarnings("unused") private Signal9Default6() { } public Signal9Default6(Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default, Supplier arg9Default){ super(arg4Default, arg5Default, arg6Default, arg7Default, arg8Default, arg9Default); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes nine * parameters and providing default values for parameters 3 to 9. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param The type of the ninth parameter of the signal. */ public final class Signal9Default7 extends QMetaObject.AbstractSignal9Default7 { @SuppressWarnings("unused") private Signal9Default7() { } public Signal9Default7(Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default, Supplier arg9Default){ super(arg3Default, arg4Default, arg5Default, arg6Default, arg7Default, arg8Default, arg9Default); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes nine * parameters and providing default values for parameters 2 to 9. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param The type of the ninth parameter of the signal. */ public final class Signal9Default8 extends QMetaObject.AbstractSignal9Default8 { @SuppressWarnings("unused") private Signal9Default8() { } public Signal9Default8(Supplier arg2Default, Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default, Supplier arg9Default){ super(arg2Default, arg3Default, arg4Default, arg5Default, arg6Default, arg7Default, arg8Default, arg9Default); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes nine * parameters and providing default values for parameters 1 to 9. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param The type of the ninth parameter of the signal. */ public final class Signal9Default9 extends QMetaObject.AbstractSignal9Default8 implements QMetaObject.Emitable0, QMetaObject.Connectable0 { @SuppressWarnings("unused") private Signal9Default9() { this.arg1Default = null; } public Signal9Default9(Supplier arg1Default, Supplier arg2Default, Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default, Supplier arg9Default){ super(arg2Default, arg3Default, arg4Default, arg5Default, arg6Default, arg7Default, arg8Default, arg9Default); this.arg1Default = arg1Default; if(this.arg1Default==null){ throw new QNoDefaultValueException(1); } } private final Supplier arg1Default; @Override public final void emit() { emitDefaultSignal(arg1Default); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes no * parameters. * * Private signals do not have an emit method, as they can only be * emitted from inside the declaring class. */ public final class PrivateSignal0 extends QMetaObject.AbstractPrivateSignal0 { public PrivateSignal0() { super(); } /** * Emits the signal. */ @io.qt.QtUninvokable private final void emit() { emitSignal(); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes one * parameter. * * Private signals do not have an emit method, as they can only be * emitted from inside the declaring class. * * @param The type of the single parameter of the signal. */ public final class PrivateSignal1 extends QMetaObject.AbstractPrivateSignal1 { public PrivateSignal1() { super(); } /** * Emits the signal. */ @io.qt.QtUninvokable private final void emit(A arg1) { emitSignal(arg1); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes two * parameters. * * Private signals do not have an emit method, as they can only be * emitted from inside the declaring class. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. */ public final class PrivateSignal2 extends QMetaObject.AbstractPrivateSignal2 { public PrivateSignal2() { super(); } /** * Emits the signal. */ @io.qt.QtUninvokable private final void emit(A arg1, B arg2) { emitSignal(arg1, arg2); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes three * parameters. * * Private signals do not have an emit method, as they can only be * emitted from inside the declaring class. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. */ public final class PrivateSignal3 extends QMetaObject.AbstractPrivateSignal3 { public PrivateSignal3() { super(); } /** * Emits the signal. */ @io.qt.QtUninvokable private final void emit(A arg1, B arg2, C arg3) { emitSignal(arg1, arg2, arg3); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes four * parameters. * * Private signals do not have an emit method, as they can only be * emitted from inside the declaring class. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. */ public final class PrivateSignal4 extends QMetaObject.AbstractPrivateSignal4 { public PrivateSignal4() { super(); } /** * Emits the signal. */ @io.qt.QtUninvokable private final void emit(A arg1, B arg2, C arg3, D arg4) { emitSignal(arg1, arg2, arg3, arg4); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes five * parameters. * * Private signals do not have an emit method, as they can only be * emitted from inside the declaring class. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. */ public final class PrivateSignal5 extends QMetaObject.AbstractPrivateSignal5 { public PrivateSignal5() { super(); } /** * Emits the signal. */ @io.qt.QtUninvokable private final void emit(A arg1, B arg2, C arg3, D arg4, E arg5) { emitSignal(arg1, arg2, arg3, arg4, arg5); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes six * parameters. * * Private signals do not have an emit method, as they can only be * emitted from inside the declaring class. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. */ public final class PrivateSignal6 extends QMetaObject.AbstractPrivateSignal6 { public PrivateSignal6() { super(); } /** * Emits the signal. */ @io.qt.QtUninvokable private final void emit(A arg1, B arg2, C arg3, D arg4, E arg5, F arg6) { emitSignal(arg1, arg2, arg3, arg4, arg5, arg6); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes seven * parameters. * * Private signals do not have an emit method, as they can only be * emitted from inside the declaring class. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. */ public final class PrivateSignal7 extends QMetaObject.AbstractPrivateSignal7 { public PrivateSignal7() { super(); } /** * Emits the signal. */ @io.qt.QtUninvokable private final void emit(A arg1, B arg2, C arg3, D arg4, E arg5, F arg6, G arg7) { emitSignal(arg1, arg2, arg3, arg4, arg5, arg6, arg7); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes eight * parameters. * * Private signals do not have an emit method, as they can only be * emitted from inside the declaring class. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. */ public final class PrivateSignal8 extends QMetaObject.AbstractPrivateSignal8 { public PrivateSignal8() { super(); } /** * Emits the signal. */ @io.qt.QtUninvokable private final void emit(A arg1, B arg2, C arg3, D arg4, E arg5, F arg6, G arg7, H arg8) { emitSignal(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Declare and instantiate a field of this class in your * QObject subclass to declare a signal that takes nine * parameters. * * Private signals do not have an emit method, as they can only be * emitted from inside the declaring class. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param The type of the ninth parameter of the signal. */ public final class PrivateSignal9 extends QMetaObject.AbstractPrivateSignal9 { public PrivateSignal9() { super(); } /** * Emits the signal. */ @io.qt.QtUninvokable private final void emit(A arg1, B arg2, C arg3, D arg4, E arg5, F arg6, G arg7, H arg8, I arg9) { emitSignal(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } } /** * Emits a private signal. This method may only be called from inside the signal owning object. * * @param signal the signal to be emitted * @throws io.qt.QSignalAccessException if signal is emitted from outside the declaring class. */ protected static void emit(PrivateSignal0 signal) throws io.qt.QSignalAccessException { Class callerClass = QtJambi_LibraryUtilities.internal.callerClassProvider().get(); Class signalDeclaringClass = signal.signalDeclaringClass(); if(callerClass==signalDeclaringClass || (MultiSignal.class.isAssignableFrom(callerClass) && callerClass.getEnclosingClass()==signalDeclaringClass)) { signal.emit(); }else { throw new io.qt.QSignalAccessException(signalDeclaringClass, signal.name(), callerClass); } } /** * Emits a private signal. This method may only be called from inside the signal owning object. * * @param The type of the first parameter of the signal. * @param signal the signal to be emitted * @param arg1 The argument for the first parameter of the signal. * @throws io.qt.QSignalAccessException if signal is emitted from outside the declaring class. */ protected static void emit(PrivateSignal1 signal, A arg1) throws io.qt.QSignalAccessException { Class callerClass = QtJambi_LibraryUtilities.internal.callerClassProvider().get(); Class signalDeclaringClass = signal.signalDeclaringClass(); if(callerClass==signalDeclaringClass || (MultiSignal.class.isAssignableFrom(callerClass) && callerClass.getEnclosingClass()==signalDeclaringClass)) { signal.emit(arg1); }else { throw new io.qt.QSignalAccessException(signalDeclaringClass, signal.name(), callerClass); } } /** * Emits a private signal. This method may only be called from inside the signal owning object. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param signal the signal to be emitted * @param arg1 The argument for the first parameter of the signal. * @param arg2 The argument for the second parameter of the signal. * @throws io.qt.QSignalAccessException if signal is emitted from outside the declaring class. */ protected static void emit(PrivateSignal2 signal, A arg1, B arg2) throws io.qt.QSignalAccessException { Class callerClass = QtJambi_LibraryUtilities.internal.callerClassProvider().get(); Class signalDeclaringClass = signal.signalDeclaringClass(); if(callerClass==signalDeclaringClass || (MultiSignal.class.isAssignableFrom(callerClass) && callerClass.getEnclosingClass()==signalDeclaringClass)) { signal.emit(arg1, arg2); }else { throw new io.qt.QSignalAccessException(signalDeclaringClass, signal.name(), callerClass); } } /** * Emits a private signal. This method may only be called from inside the signal owning object. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param signal the signal to be emitted * @param arg1 The argument for the first parameter of the signal. * @param arg2 The argument for the second parameter of the signal. * @param arg3 The argument for the third parameter of the signal. * @throws io.qt.QSignalAccessException if signal is emitted from outside the declaring class. */ protected static void emit(PrivateSignal3 signal, A arg1, B arg2, C arg3) throws io.qt.QSignalAccessException { Class callerClass = QtJambi_LibraryUtilities.internal.callerClassProvider().get(); Class signalDeclaringClass = signal.signalDeclaringClass(); if(callerClass==signalDeclaringClass || (MultiSignal.class.isAssignableFrom(callerClass) && callerClass.getEnclosingClass()==signalDeclaringClass)) { signal.emit(arg1, arg2, arg3); }else { throw new io.qt.QSignalAccessException(signalDeclaringClass, signal.name(), callerClass); } } /** * Emits a private signal. This method may only be called from inside the signal owning object. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param signal the signal to be emitted * @param arg1 The argument for the first parameter of the signal. * @param arg2 The argument for the second parameter of the signal. * @param arg3 The argument for the third parameter of the signal. * @param arg4 The argument for the fourth parameter of the signal. * @throws io.qt.QSignalAccessException if signal is emitted from outside the declaring class. */ protected static void emit(PrivateSignal4 signal, A arg1, B arg2, C arg3, D arg4) throws io.qt.QSignalAccessException { Class callerClass = QtJambi_LibraryUtilities.internal.callerClassProvider().get(); Class signalDeclaringClass = signal.signalDeclaringClass(); if(callerClass==signalDeclaringClass || (MultiSignal.class.isAssignableFrom(callerClass) && callerClass.getEnclosingClass()==signalDeclaringClass)) { signal.emit(arg1, arg2, arg3, arg4); }else { throw new io.qt.QSignalAccessException(signalDeclaringClass, signal.name(), callerClass); } } /** * Emits a private signal. This method may only be called from inside the signal owning object. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param signal the signal to be emitted * @param arg1 The argument for the first parameter of the signal. * @param arg2 The argument for the second parameter of the signal. * @param arg3 The argument for the third parameter of the signal. * @param arg4 The argument for the fourth parameter of the signal. * @param arg5 The argument for the fifth parameter of the signal. * @throws io.qt.QSignalAccessException if signal is emitted from outside the declaring class. */ protected static void emit(PrivateSignal5 signal, A arg1, B arg2, C arg3, D arg4, E arg5) throws io.qt.QSignalAccessException { Class callerClass = QtJambi_LibraryUtilities.internal.callerClassProvider().get(); Class signalDeclaringClass = signal.signalDeclaringClass(); if(callerClass==signalDeclaringClass || (MultiSignal.class.isAssignableFrom(callerClass) && callerClass.getEnclosingClass()==signalDeclaringClass)) { signal.emit(arg1, arg2, arg3, arg4, arg5); }else { throw new io.qt.QSignalAccessException(signalDeclaringClass, signal.name(), callerClass); } } /** * Emits a private signal. This method may only be called from inside the signal owning object. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param signal the signal to be emitted * @param arg1 The argument for the first parameter of the signal. * @param arg2 The argument for the second parameter of the signal. * @param arg3 The argument for the third parameter of the signal. * @param arg4 The argument for the fourth parameter of the signal. * @param arg5 The argument for the fifth parameter of the signal. * @param arg6 The argument for the sixth parameter of the signal. * @throws io.qt.QSignalAccessException if signal is emitted from outside the declaring class. */ protected static void emit(PrivateSignal6 signal, A arg1, B arg2, C arg3, D arg4, E arg5, F arg6) throws io.qt.QSignalAccessException { Class callerClass = QtJambi_LibraryUtilities.internal.callerClassProvider().get(); Class signalDeclaringClass = signal.signalDeclaringClass(); if(callerClass==signalDeclaringClass || (MultiSignal.class.isAssignableFrom(callerClass) && callerClass.getEnclosingClass()==signalDeclaringClass)) { signal.emit(arg1, arg2, arg3, arg4, arg5, arg6); }else { throw new io.qt.QSignalAccessException(signalDeclaringClass, signal.name(), callerClass); } } /** * Emits a private signal. This method may only be called from inside the signal owning object. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param signal the signal to be emitted * @param arg1 The argument for the first parameter of the signal. * @param arg2 The argument for the second parameter of the signal. * @param arg3 The argument for the third parameter of the signal. * @param arg4 The argument for the fourth parameter of the signal. * @param arg5 The argument for the fifth parameter of the signal. * @param arg6 The argument for the sixth parameter of the signal. * @param arg7 The argument for the seventh parameter of the signal. * @throws io.qt.QSignalAccessException if signal is emitted from outside the declaring class. */ protected static void emit(PrivateSignal7 signal, A arg1, B arg2, C arg3, D arg4, E arg5, F arg6, G arg7) throws io.qt.QSignalAccessException { Class callerClass = QtJambi_LibraryUtilities.internal.callerClassProvider().get(); Class signalDeclaringClass = signal.signalDeclaringClass(); if(callerClass==signalDeclaringClass || (MultiSignal.class.isAssignableFrom(callerClass) && callerClass.getEnclosingClass()==signalDeclaringClass)) { signal.emit(arg1, arg2, arg3, arg4, arg5, arg6, arg7); }else { throw new io.qt.QSignalAccessException(signalDeclaringClass, signal.name(), callerClass); } } /** * Emits a private signal. This method may only be called from inside the signal owning object. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param signal the signal to be emitted * @param arg1 The argument for the first parameter of the signal. * @param arg2 The argument for the second parameter of the signal. * @param arg3 The argument for the third parameter of the signal. * @param arg4 The argument for the fourth parameter of the signal. * @param arg5 The argument for the fifth parameter of the signal. * @param arg6 The argument for the sixth parameter of the signal. * @param arg7 The argument for the seventh parameter of the signal. * @param arg8 The argument for the eighth parameter of the signal. * @throws io.qt.QSignalAccessException if signal is emitted from outside the declaring class. */ protected static void emit(PrivateSignal8 signal, A arg1, B arg2, C arg3, D arg4, E arg5, F arg6, G arg7, H arg8) throws io.qt.QSignalAccessException { Class callerClass = QtJambi_LibraryUtilities.internal.callerClassProvider().get(); Class signalDeclaringClass = signal.signalDeclaringClass(); if(callerClass==signalDeclaringClass || (MultiSignal.class.isAssignableFrom(callerClass) && callerClass.getEnclosingClass()==signalDeclaringClass)) { signal.emit(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); }else { throw new io.qt.QSignalAccessException(signalDeclaringClass, signal.name(), callerClass); } } /** * Emits a private signal. This method may only be called from inside the signal owning object. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param The type of the ninth parameter of the signal. * @param signal the signal to be emitted * @param arg1 The argument for the first parameter of the signal. * @param arg2 The argument for the second parameter of the signal. * @param arg3 The argument for the third parameter of the signal. * @param arg4 The argument for the fourth parameter of the signal. * @param arg5 The argument for the fifth parameter of the signal. * @param arg6 The argument for the sixth parameter of the signal. * @param arg7 The argument for the seventh parameter of the signal. * @param arg8 The argument for the eighth parameter of the signal. * @param arg9 The argument for the ninth parameter of the signal. * @throws io.qt.QSignalAccessException if signal is emitted from outside the declaring class. */ protected static void emit(PrivateSignal9 signal, A arg1, B arg2, C arg3, D arg4, E arg5, F arg6, G arg7, H arg8, I arg9) throws io.qt.QSignalAccessException { Class callerClass = QtJambi_LibraryUtilities.internal.callerClassProvider().get(); Class signalDeclaringClass = signal.signalDeclaringClass(); if(callerClass==signalDeclaringClass || (MultiSignal.class.isAssignableFrom(callerClass) && callerClass.getEnclosingClass()==signalDeclaringClass)) { signal.emit(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); }else { throw new io.qt.QSignalAccessException(signalDeclaringClass, signal.name(), callerClass); } } /** * Wrapper class supporting the definition of overloaded signal in a class. * To implement multi signals subclass this MultiSignal class and add overloaded emit methods. */ public abstract class MultiSignal extends QMetaObject.AbstractMultiSignal { protected MultiSignal(){ super(); } /** * Returns the object containing this signal. * @return the signal containing object */ @Override public final QObject containingObject() { return QObject.this; } /** * Removes the given connection from this signal. * * @param connection the connection to be removed * @return true if the disconnection was successful. */ public final boolean disconnect(QMetaObject.Connection connection) { return super.disconnect(connection); } /** * Disconnects all overloaded signals. * @return true if any disconnection was successful. */ @Override public final boolean disconnectAll() { return super.disconnectAll(); } /** * Connects the signal to a method in an object. Whenever it is emitted, the method will be invoked * on the given object. * * @param receiver The object that owns the method * @param method The signature of the method excluding return type and argument names, such as "setText(String)". * @param connectionType One of the connection types defined in the Qt interface. * @throws QNoSuchSlotException Raised if the method passed in the slot object was not found * @throws java.lang.RuntimeException Raised if the signal object could not be successfully introspected or if the * signatures of the signal and slot are incompatible. */ public final QMetaObject.Connection connect(Object receiver, String method, Qt.ConnectionType... type) { if (receiver == null) throw new NullPointerException("Receiver must be non-null"); if (method == null) throw new NullPointerException("Slot must be non-null"); return super.connect(receiver, method, type); } /** * Disconnects the signal from a method in an object if the two were previously connected by a call to connect. * * @param receiver The object to which the signal is connected * @param method The method in the receiver object to which the signal is connected * @return true if the connection was successfully removed, otherwise false. The method will return false if the * connection has not been previously established by a call to connect. * @throws QNoSuchSlotException Raised if the method passed in the slot object was not found */ public final boolean disconnect(Object receiver, String method) { if (method != null && receiver == null) throw new IllegalArgumentException("Receiver cannot be null if you specify a method"); return super.disconnect(receiver, method); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final io.qt.core.QMetaObject.Connection connect(io.qt.core.QMetaObject.Slot0 slot, io.qt.core.Qt.ConnectionType... connectionType) throws io.qt.QNoSuchSignalException{ return super.connect(slot, connectionType); } /** * Removes the connection to the given slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(io.qt.core.QMetaObject.Slot0 slot) { return super.disconnect(slot); } /** * Initializes a connection to the signal. * * @param signal the signal to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final io.qt.core.QMetaObject.Connection connect(io.qt.core.QMetaObject.Connectable0 signal, io.qt.core.Qt.ConnectionType... connectionType) throws io.qt.QNoSuchSignalException{ return super.connect((QMetaObject.AbstractSignal)signal, connectionType); } /** * Removes the connection to the given signal. * * @param signal the signal to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(io.qt.core.QMetaObject.Connectable0 signal) { return super.disconnect((QMetaObject.AbstractSignal)signal); } /** * Initializes a connection to the signal. * * @param signal the signal to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final io.qt.core.QMetaObject.Connection connect(io.qt.core.QMetaObject.AbstractPublicSignal0 signal, io.qt.core.Qt.ConnectionType... connectionType) throws io.qt.QNoSuchSignalException{ return super.connect(signal, connectionType); } /** * Removes the connection to the given signal. * * @param signal the signal to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(io.qt.core.QMetaObject.AbstractPublicSignal0 signal) { return super.disconnect(signal); } @io.qt.QtUninvokable private QMetaObject.Connection connectSlot(QMetaObject.AbstractSlot slotObject, Qt.ConnectionType[] connectionType) { return super.connect(slotObject, connectionType); } @io.qt.QtUninvokable private boolean disconnectSlot(QMetaObject.AbstractSlot slotObject) { return super.disconnect(slotObject); } @io.qt.QtUninvokable private QMetaObject.Connection connectSignal(QMetaObject.AbstractSignal slotObject, Qt.ConnectionType[] connectionType) { return super.connect(slotObject, connectionType); } @io.qt.QtUninvokable private boolean disconnectSignal(QMetaObject.AbstractSignal slotObject) { return super.disconnect(slotObject); } } /** * Initializes a connection between the given signal and slot. * * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal0 signal, QMetaObject.Slot0 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal1 signal, QMetaObject.Slot0 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal1 signal, QMetaObject.Slot1 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal2 signal, QMetaObject.Slot0 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal2 signal, QMetaObject.Slot1 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal2 signal, QMetaObject.Slot2 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal3 signal, QMetaObject.Slot0 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal3 signal, QMetaObject.Slot1 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal3 signal, QMetaObject.Slot2 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal3 signal, QMetaObject.Slot3 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal4 signal, QMetaObject.Slot0 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal4 signal, QMetaObject.Slot1 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal4 signal, QMetaObject.Slot2 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal4 signal, QMetaObject.Slot3 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal4 signal, QMetaObject.Slot4 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal5 signal, QMetaObject.Slot0 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal5 signal, QMetaObject.Slot1 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal5 signal, QMetaObject.Slot2 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal5 signal, QMetaObject.Slot3 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal5 signal, QMetaObject.Slot4 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal5 signal, QMetaObject.Slot5 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal6 signal, QMetaObject.Slot0 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal6 signal, QMetaObject.Slot1 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal6 signal, QMetaObject.Slot2 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal6 signal, QMetaObject.Slot3 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal6 signal, QMetaObject.Slot4 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal6 signal, QMetaObject.Slot5 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal6 signal, QMetaObject.Slot6 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal7 signal, QMetaObject.Slot0 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal7 signal, QMetaObject.Slot1 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal7 signal, QMetaObject.Slot2 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal7 signal, QMetaObject.Slot3 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal7 signal, QMetaObject.Slot4 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal7 signal, QMetaObject.Slot5 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal7 signal, QMetaObject.Slot6 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal7 signal, QMetaObject.Slot7 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal8 signal, QMetaObject.Slot0 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal8 signal, QMetaObject.Slot1 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal8 signal, QMetaObject.Slot2 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal8 signal, QMetaObject.Slot3 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal8 signal, QMetaObject.Slot4 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal8 signal, QMetaObject.Slot5 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal8 signal, QMetaObject.Slot6 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal8 signal, QMetaObject.Slot7 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal8 signal, QMetaObject.Slot8 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal9 signal, QMetaObject.Slot0 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal9 signal, QMetaObject.Slot1 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal9 signal, QMetaObject.Slot2 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal9 signal, QMetaObject.Slot3 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal9 signal, QMetaObject.Slot4 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal9 signal, QMetaObject.Slot5 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal9 signal, QMetaObject.Slot6 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal9 signal, QMetaObject.Slot7 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal9 signal, QMetaObject.Slot8 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param The type of the ninth parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal9 signal, QMetaObject.Slot9 slot, Qt.ConnectionType... connectionType) { return signal.connect(slot, connectionType); } /** * Removes the connection between the given signal and slot. * * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal0 signal, QMetaObject.Slot0 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal1 signal, QMetaObject.Slot0 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal1 signal, QMetaObject.Slot1 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal2 signal, QMetaObject.Slot0 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal2 signal, QMetaObject.Slot1 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal2 signal, QMetaObject.Slot2 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal3 signal, QMetaObject.Slot0 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal3 signal, QMetaObject.Slot1 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal3 signal, QMetaObject.Slot2 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal3 signal, QMetaObject.Slot3 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal4 signal, QMetaObject.Slot0 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal4 signal, QMetaObject.Slot1 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal4 signal, QMetaObject.Slot2 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal4 signal, QMetaObject.Slot3 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal4 signal, QMetaObject.Slot4 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal5 signal, QMetaObject.Slot0 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal5 signal, QMetaObject.Slot1 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal5 signal, QMetaObject.Slot2 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal5 signal, QMetaObject.Slot3 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal5 signal, QMetaObject.Slot4 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal5 signal, QMetaObject.Slot5 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal6 signal, QMetaObject.Slot0 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal6 signal, QMetaObject.Slot1 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal6 signal, QMetaObject.Slot2 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal6 signal, QMetaObject.Slot3 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal6 signal, QMetaObject.Slot4 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal6 signal, QMetaObject.Slot5 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal6 signal, QMetaObject.Slot6 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal7 signal, QMetaObject.Slot0 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal7 signal, QMetaObject.Slot1 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal7 signal, QMetaObject.Slot2 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal7 signal, QMetaObject.Slot3 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal7 signal, QMetaObject.Slot4 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal7 signal, QMetaObject.Slot5 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal7 signal, QMetaObject.Slot6 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal7 signal, QMetaObject.Slot7 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal8 signal, QMetaObject.Slot0 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal8 signal, QMetaObject.Slot1 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal8 signal, QMetaObject.Slot2 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal8 signal, QMetaObject.Slot3 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal8 signal, QMetaObject.Slot4 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal8 signal, QMetaObject.Slot5 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal8 signal, QMetaObject.Slot6 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal8 signal, QMetaObject.Slot7 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal8 signal, QMetaObject.Slot8 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal9 signal, QMetaObject.Slot0 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal9 signal, QMetaObject.Slot1 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal9 signal, QMetaObject.Slot2 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal9 signal, QMetaObject.Slot3 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal9 signal, QMetaObject.Slot4 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal9 signal, QMetaObject.Slot5 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal9 signal, QMetaObject.Slot6 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal9 signal, QMetaObject.Slot7 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal9 signal, QMetaObject.Slot8 slot) { return signal.disconnect(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param The type of the ninth parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal9 signal, QMetaObject.Slot9 slot) { return signal.disconnect(slot); } /** * Initializes a connection between the given signal and connectSignal. * * @param signal the signal to be connected * @param connectSignal the signal to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal0 signal, QMetaObject.Connectable0 connectSignal, Qt.ConnectionType... connectionType) { return signal.connect(connectSignal, connectionType); } /** * Removes the connection between the given signal and connectSignal. * * @param signal the signal to be disconnected * @param connectSignal the signal to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal0 signal, QMetaObject.Connectable0 connectSignal) { return signal.disconnect(connectSignal); } /** * Initializes a connection between the given signal and connectSignal. * * @param The type of the first parameter of the signal. * @param signal the signal to be connected * @param connectSignal the signal to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal1 signal, QMetaObject.Connectable1 connectSignal, Qt.ConnectionType... connectionType) { return signal.connect(connectSignal, connectionType); } /** * Removes the connection between the given signal and connectSignal. * * @param The type of the first parameter of the signal. * @param signal the signal to be disconnected * @param connectSignal the signal to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal1 signal, QMetaObject.Connectable1 connectSignal) { return signal.disconnect(connectSignal); } /** * Initializes a connection between the given signal and connectSignal. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param signal the signal to be connected * @param connectSignal the signal to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal2 signal, QMetaObject.Connectable2 connectSignal, Qt.ConnectionType... connectionType) { return signal.connect(connectSignal, connectionType); } /** * Removes the connection between the given signal and connectSignal. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param signal the signal to be disconnected * @param connectSignal the signal to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal2 signal, QMetaObject.Connectable2 connectSignal) { return signal.disconnect(connectSignal); } /** * Initializes a connection between the given signal and connectSignal. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param signal the signal to be connected * @param connectSignal the signal to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal3 signal, QMetaObject.Connectable3 connectSignal, Qt.ConnectionType... connectionType) { return signal.connect(connectSignal, connectionType); } /** * Removes the connection between the given signal and connectSignal. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param signal the signal to be disconnected * @param connectSignal the signal to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal3 signal, QMetaObject.Connectable3 connectSignal) { return signal.disconnect(connectSignal); } /** * Initializes a connection between the given signal and connectSignal. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param signal the signal to be connected * @param connectSignal the signal to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal4 signal, QMetaObject.Connectable4 connectSignal, Qt.ConnectionType... connectionType) { return signal.connect(connectSignal, connectionType); } /** * Removes the connection between the given signal and connectSignal. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param signal the signal to be disconnected * @param connectSignal the signal to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal4 signal, QMetaObject.Connectable4 connectSignal) { return signal.disconnect(connectSignal); } /** * Initializes a connection between the given signal and connectSignal. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param signal the signal to be connected * @param connectSignal the signal to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal5 signal, QMetaObject.Connectable5 connectSignal, Qt.ConnectionType... connectionType) { return signal.connect(connectSignal, connectionType); } /** * Removes the connection between the given signal and connectSignal. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param signal the signal to be disconnected * @param connectSignal the signal to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal5 signal, QMetaObject.Connectable5 connectSignal) { return signal.disconnect(connectSignal); } /** * Initializes a connection between the given signal and connectSignal. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param signal the signal to be connected * @param connectSignal the signal to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal6 signal, QMetaObject.Connectable6 connectSignal, Qt.ConnectionType... connectionType) { return signal.connect(connectSignal, connectionType); } /** * Removes the connection between the given signal and connectSignal. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param signal the signal to be disconnected * @param connectSignal the signal to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal6 signal, QMetaObject.Connectable6 connectSignal) { return signal.disconnect(connectSignal); } /** * Initializes a connection between the given signal and connectSignal. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param signal the signal to be connected * @param connectSignal the signal to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal7 signal, QMetaObject.Connectable7 connectSignal, Qt.ConnectionType... connectionType) { return signal.connect(connectSignal, connectionType); } /** * Removes the connection between the given signal and connectSignal. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param signal the signal to be disconnected * @param connectSignal the signal to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal7 signal, QMetaObject.Connectable7 connectSignal) { return signal.disconnect(connectSignal); } /** * Initializes a connection between the given signal and connectSignal. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param signal the signal to be connected * @param connectSignal the signal to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal8 signal, QMetaObject.Connectable8 connectSignal, Qt.ConnectionType... connectionType) { return signal.connect(connectSignal, connectionType); } /** * Removes the connection between the given signal and connectSignal. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param signal the signal to be disconnected * @param connectSignal the signal to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal8 signal, QMetaObject.Connectable8 connectSignal) { return signal.disconnect(connectSignal); } /** * Initializes a connection between the given signal and connectSignal. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param The type of the ninth parameter of the signal. * @param signal the signal to be connected * @param connectSignal the signal to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public static QMetaObject.Connection connect(QMetaObject.AbstractPrivateSignal9 signal, QMetaObject.Connectable9 connectSignal, Qt.ConnectionType... connectionType) { return signal.connect(connectSignal, connectionType); } /** * Removes the connection between the given signal and connectSignal. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param The type of the ninth parameter of the signal. * @param signal the signal to be disconnected * @param connectSignal the signal to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QMetaObject.AbstractPrivateSignal9 signal, QMetaObject.Connectable9 connectSignal) { return signal.disconnect(connectSignal); } /** * Initializes a connection between the given signal and slot. * * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. * @throws io.qt.QMisfittingSignatureException Raised if slot does not match to any of the signatures. */ public static QMetaObject.Connection connect(MultiSignal signal, QMetaObject.Slot0 slot, Qt.ConnectionType... connectionType) { return signal.connectSlot(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. * @throws io.qt.QMisfittingSignatureException Raised if slot does not match to any of the signatures. */ public static QMetaObject.Connection connect(MultiSignal signal, QMetaObject.Slot1 slot, Qt.ConnectionType... connectionType) { return signal.connectSlot(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. * @throws io.qt.QMisfittingSignatureException Raised if slot does not match to any of the signatures. */ public static QMetaObject.Connection connect(MultiSignal signal, QMetaObject.Slot2 slot, Qt.ConnectionType... connectionType) { return signal.connectSlot(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. * @throws io.qt.QMisfittingSignatureException Raised if slot does not match to any of the signatures. */ public static QMetaObject.Connection connect(MultiSignal signal, QMetaObject.Slot3 slot, Qt.ConnectionType... connectionType) { return signal.connectSlot(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. * @throws io.qt.QMisfittingSignatureException Raised if slot does not match to any of the signatures. */ public static QMetaObject.Connection connect(MultiSignal signal, QMetaObject.Slot4 slot, Qt.ConnectionType... connectionType) { return signal.connectSlot(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. * @throws io.qt.QMisfittingSignatureException Raised if slot does not match to any of the signatures. */ public static QMetaObject.Connection connect(MultiSignal signal, QMetaObject.Slot5 slot, Qt.ConnectionType... connectionType) { return signal.connectSlot(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. * @throws io.qt.QMisfittingSignatureException Raised if slot does not match to any of the signatures. */ public static QMetaObject.Connection connect(MultiSignal signal, QMetaObject.Slot6 slot, Qt.ConnectionType... connectionType) { return signal.connectSlot(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. * @throws io.qt.QMisfittingSignatureException Raised if slot does not match to any of the signatures. */ public static QMetaObject.Connection connect(MultiSignal signal, QMetaObject.Slot7 slot, Qt.ConnectionType... connectionType) { return signal.connectSlot(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. * @throws io.qt.QMisfittingSignatureException Raised if slot does not match to any of the signatures. */ public static QMetaObject.Connection connect(MultiSignal signal, QMetaObject.Slot8 slot, Qt.ConnectionType... connectionType) { return signal.connectSlot(slot, connectionType); } /** * Initializes a connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param The type of the ninth parameter of the signal. * @param signal the signal to be connected * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. * @throws io.qt.QMisfittingSignatureException Raised if slot does not match to any of the signatures. */ public static QMetaObject.Connection connect(MultiSignal signal, QMetaObject.Slot9 slot, Qt.ConnectionType... connectionType) { return signal.connectSlot(slot, connectionType); } /** * Initializes a connection between the given signal and connectSignal. * * @param signal the signal to be connected * @param connectSignal the signal to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QMisfittingSignatureException Raised if connectSignal does not match to any of the signatures. */ public static QMetaObject.Connection connect(MultiSignal signal, QMetaObject.Connectable0 connectSignal, Qt.ConnectionType... connectionType) { return signal.connectSignal((QMetaObject.AbstractSignal)connectSignal, connectionType); } /** * Initializes a connection between the given signal and connectSignal. * * @param The type of the first parameter of the signal. * @param signal the signal to be connected * @param connectSignal the signal to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QMisfittingSignatureException Raised if connectSignal does not match to any of the signatures. */ public static QMetaObject.Connection connect(MultiSignal signal, QMetaObject.Connectable1 connectSignal, Qt.ConnectionType... connectionType) { return signal.connectSignal((QMetaObject.AbstractSignal)connectSignal, connectionType); } /** * Initializes a connection between the given signal and connectSignal. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param signal the signal to be connected * @param connectSignal the signal to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QMisfittingSignatureException Raised if connectSignal does not match to any of the signatures. */ public static QMetaObject.Connection connect(MultiSignal signal, QMetaObject.Connectable2 connectSignal, Qt.ConnectionType... connectionType) { return signal.connectSignal((QMetaObject.AbstractSignal)connectSignal, connectionType); } /** * Initializes a connection between the given signal and connectSignal. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param signal the signal to be connected * @param connectSignal the signal to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QMisfittingSignatureException Raised if connectSignal does not match to any of the signatures. */ public static QMetaObject.Connection connect(MultiSignal signal, QMetaObject.Connectable3 connectSignal, Qt.ConnectionType... connectionType) { return signal.connectSignal((QMetaObject.AbstractSignal)connectSignal, connectionType); } /** * Initializes a connection between the given signal and connectSignal. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param signal the signal to be connected * @param connectSignal the signal to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QMisfittingSignatureException Raised if connectSignal does not match to any of the signatures. */ public static QMetaObject.Connection connect(MultiSignal signal, QMetaObject.Connectable4 connectSignal, Qt.ConnectionType... connectionType) { return signal.connectSignal((QMetaObject.AbstractSignal)connectSignal, connectionType); } /** * Initializes a connection between the given signal and connectSignal. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param signal the signal to be connected * @param connectSignal the signal to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QMisfittingSignatureException Raised if connectSignal does not match to any of the signatures. */ public static QMetaObject.Connection connect(MultiSignal signal, QMetaObject.Connectable5 connectSignal, Qt.ConnectionType... connectionType) { return signal.connectSignal((QMetaObject.AbstractSignal)connectSignal, connectionType); } /** * Initializes a connection between the given signal and connectSignal. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param signal the signal to be connected * @param connectSignal the signal to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QMisfittingSignatureException Raised if connectSignal does not match to any of the signatures. */ public static QMetaObject.Connection connect(MultiSignal signal, QMetaObject.Connectable6 connectSignal, Qt.ConnectionType... connectionType) { return signal.connectSignal((QMetaObject.AbstractSignal)connectSignal, connectionType); } /** * Initializes a connection between the given signal and connectSignal. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param signal the signal to be connected * @param connectSignal the signal to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QMisfittingSignatureException Raised if connectSignal does not match to any of the signatures. */ public static QMetaObject.Connection connect(MultiSignal signal, QMetaObject.Connectable7 connectSignal, Qt.ConnectionType... connectionType) { return signal.connectSignal((QMetaObject.AbstractSignal)connectSignal, connectionType); } /** * Initializes a connection between the given signal and connectSignal. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param signal the signal to be connected * @param connectSignal the signal to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QMisfittingSignatureException Raised if connectSignal does not match to any of the signatures. */ public static QMetaObject.Connection connect(MultiSignal signal, QMetaObject.Connectable8 connectSignal, Qt.ConnectionType... connectionType) { return signal.connectSignal((QMetaObject.AbstractSignal)connectSignal, connectionType); } /** * Initializes a connection between the given signal and connectSignal. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param The type of the ninth parameter of the signal. * @param signal the signal to be connected * @param connectSignal the signal to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QMisfittingSignatureException Raised if connectSignal does not match to any of the signatures. */ public static QMetaObject.Connection connect(MultiSignal signal, QMetaObject.Connectable9 connectSignal, Qt.ConnectionType... connectionType) { return signal.connectSignal((QMetaObject.AbstractSignal)connectSignal, connectionType); } /** * Removes the connection between the given signal and slot. * * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(MultiSignal signal, QMetaObject.Slot0 slot) { return signal.disconnectSlot(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(MultiSignal signal, QMetaObject.Slot1 slot) { return signal.disconnectSlot(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(MultiSignal signal, QMetaObject.Slot2 slot) { return signal.disconnectSlot(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(MultiSignal signal, QMetaObject.Slot3 slot) { return signal.disconnectSlot(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(MultiSignal signal, QMetaObject.Slot4 slot) { return signal.disconnectSlot(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(MultiSignal signal, QMetaObject.Slot5 slot) { return signal.disconnectSlot(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(MultiSignal signal, QMetaObject.Slot6 slot) { return signal.disconnectSlot(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(MultiSignal signal, QMetaObject.Slot7 slot) { return signal.disconnectSlot(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(MultiSignal signal, QMetaObject.Slot8 slot) { return signal.disconnectSlot(slot); } /** * Removes the connection between the given signal and slot. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param The type of the ninth parameter of the signal. * @param signal the signal to be disconnected * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(MultiSignal signal, QMetaObject.Slot9 slot) { return signal.disconnectSlot(slot); } /** * Removes the connection between the given signal and connectSignal. * * @param signal the signal to be disconnected * @param connectSignal the signal to be connected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(MultiSignal signal, QMetaObject.Connectable0 connectSignal) { return signal.disconnectSignal((QMetaObject.AbstractSignal)connectSignal); } /** * Removes the connection between the given signal and connectSignal. * * @param The type of the first parameter of the signal. * @param signal the signal to be disconnected * @param connectSignal the signal to be connected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(MultiSignal signal, QMetaObject.Connectable1 connectSignal) { return signal.disconnectSignal((QMetaObject.AbstractSignal)connectSignal); } /** * Removes the connection between the given signal and connectSignal. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param signal the signal to be disconnected * @param connectSignal the signal to be connected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(MultiSignal signal, QMetaObject.Connectable2 connectSignal) { return signal.disconnectSignal((QMetaObject.AbstractSignal)connectSignal); } /** * Removes the connection between the given signal and connectSignal. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param signal the signal to be disconnected * @param connectSignal the signal to be connected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(MultiSignal signal, QMetaObject.Connectable3 connectSignal) { return signal.disconnectSignal((QMetaObject.AbstractSignal)connectSignal); } /** * Removes the connection between the given signal and connectSignal. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param signal the signal to be disconnected * @param connectSignal the signal to be connected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(MultiSignal signal, QMetaObject.Connectable4 connectSignal) { return signal.disconnectSignal((QMetaObject.AbstractSignal)connectSignal); } /** * Removes the connection between the given signal and connectSignal. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param signal the signal to be disconnected * @param connectSignal the signal to be connected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(MultiSignal signal, QMetaObject.Connectable5 connectSignal) { return signal.disconnectSignal((QMetaObject.AbstractSignal)connectSignal); } /** * Removes the connection between the given signal and connectSignal. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param signal the signal to be disconnected * @param connectSignal the signal to be connected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(MultiSignal signal, QMetaObject.Connectable6 connectSignal) { return signal.disconnectSignal((QMetaObject.AbstractSignal)connectSignal); } /** * Removes the connection between the given signal and connectSignal. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param signal the signal to be disconnected * @param connectSignal the signal to be connected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(MultiSignal signal, QMetaObject.Connectable7 connectSignal) { return signal.disconnectSignal((QMetaObject.AbstractSignal)connectSignal); } /** * Removes the connection between the given signal and connectSignal. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param signal the signal to be disconnected * @param connectSignal the signal to be connected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(MultiSignal signal, QMetaObject.Connectable8 connectSignal) { return signal.disconnectSignal((QMetaObject.AbstractSignal)connectSignal); } /** * Removes the connection between the given signal and connectSignal. * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param The type of the ninth parameter of the signal. * @param signal the signal to be disconnected * @param connectSignal the signal to be connected * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(MultiSignal signal, QMetaObject.Connectable9 connectSignal) { return signal.disconnectSignal((QMetaObject.AbstractSignal)connectSignal); } /** *

Creates a connection of the given type from the signal in * the sender object to the method in the receiver object.

*

Returns a handle to the connection that can be used to disconnect * it later.

* *

* QLabel label = new QLabel();
* QScrollBar scrollBar = new QScrollBar();
* QObject.connect(scrollBar, "valueChanged(int)", label, "setNum(int)");
*

* *

This example ensures that the label always displays the current * scroll bar value. Note that the signal and slots parameters must not * contain any variable names, only the type. E.g. the following would * not work and throw {@link QNoSuchSignalException}/{@link QNoSuchSlotException}:

* *

* QObject.connect(scrollBar, "valueChanged(int value)", label, "setNum(int value)"); *

* *

A signal can also be connected to another signal:

* *

* public class MyWidget extends QWidget {
*     public final Signal0 buttonClicked = new Signal0();
*
*     public MyWidget(){
*         myButton = new QPushButton(this);
*         connect(myButton, "clicked()", this, "buttonClicked()");
*     }
*
*     private QPushButton myButton;
* } *

* *

or alternatively:

* *

* clicked.connect(myButton.buttonClicked); *

* *

In this example, the MyWidget constructor relays a signal from * a private member variable, and makes it available under a name * that relates to MyWidget.

* *

A signal can be connected to many slots and signals. Many signals * can be connected to one slot.

* *

If a signal is connected to several slots, the slots are activated * in the same order in which the connections were made, when the * signal is emitted.

* *

In case the connection was successfully initialized the function returns * a QMetaObject.Connection that represents a handle to this connection. * The connection handle will be invalid * if it cannot create the connection, for example, if QObject is unable * to verify the existence of either signal or method, or if their * signatures aren't compatible. * In this case, the function returns null.

* *

By default, a signal is emitted for every connection you make; * two signals are emitted for duplicate connections. You can break * all of these connections with a single disconnect() call. * If you pass the Qt.ConnectionType.UniqueConnection type, the connection will only * be made if it is not a duplicate. If there is already a duplicate * (exact same signal to the exact same slot on the same objects), * the connection will fail and connect will return null.

* *

Note: Qt.ConnectionType.UniqueConnections do not work for lambdas; * they only apply to connecting to member functions.

* *

The optional type parameter describes the type of connection * to establish. In particular, it determines whether a particular * signal is delivered to a slot immediately or queued for delivery * at a later time. If the signal is queued, the parameters must be * of types that are known to Qt's meta-object system, because Qt * needs to copy the arguments to store them in an event behind the * scenes. If you try to use a queued connection and get the error * message

* *

* QObject::connect: Cannot queue arguments of type 'MyType' * (Make sure 'MyType' is registered using qRegisterMetaType().) *

* *

call {@link QMetaType#registerMetaType(Class)} to register the data type before you * establish the connection.

* * @see #disconnect() * @see #sender() * @see QMetaType#registerMetaType(Class) */ public static QMetaObject.Connection connect(QObject sender, String signal, QObject receiver, String slot, Qt.ConnectionType... connectionType) { if(signal.isEmpty()) throw new IllegalArgumentException("Empty string not allowed as signal."); if(slot.isEmpty()) throw new IllegalArgumentException("Empty string not allowed as slot."); QMetaMethod signalMethod = sender.metaObject().method(signal); if(signalMethod==null) throw new QNoSuchSignalException(signal); QMetaMethod slotMethod = receiver.metaObject().method(slot); if(slotMethod==null) throw new QNoSuchSlotException(receiver, slot); return connect( sender, signalMethod, receiver, slotMethod, connectionType ); } /** *

Creates a connection of the given type from the signal in * the sender object to the method in the receiver object. * Returns a handle to the connection that can be used to disconnect it later.

* *

The Connection handle will be invalid if it cannot create the * connection, for example, the parameters were invalid. * You can check if a QMetaObject.Connection is returned.

* *

This function works in the same way as * {@link #connect(QObject, String, QObject, String, io.qt.core.Qt.ConnectionType...)} * but it uses QMetaMethod to specify signal and method.

* * @see #connect(QObject, String, QObject, String, io.qt.core.Qt.ConnectionType...) */ public static QMetaObject.Connection connect(QObject sender, QMetaMethod signal, QObject receiver, QMetaMethod slot, Qt.ConnectionType... connectionType) { java.util.Objects.requireNonNull(signal); java.util.Objects.requireNonNull(slot); byte flags = 0; if(connectionType!=null && connectionType.length>0) { for (Qt.ConnectionType c : connectionType) { flags |= c.value(); } } return QMetaObject.connectMethods( java.util.Objects.requireNonNull(sender), signal.methodIndex(), signal.enclosingMetaObject().metaObjectPointer, receiver, slot.methodIndex(), slot.enclosingMetaObject().metaObjectPointer, flags ); } /** *

Disconnects signal in object sender from method in object * receiver. Returns true if the connection is successfully broken; * otherwise returns false.

* *

A signal-slot connection is removed when either of the objects * involved are destroyed.

* *

disconnect() is typically used in three ways, as the following * examples demonstrate.

*
    *
  1. Disconnect everything connected to an object's signals: * *

    disconnect(myObject, null, null, null);

    * * equivalent to the non-static overloaded function * *

    myObject.disconnect();

    *
  2. *
  3. Disconnect everything connected to a specific signal: * *

    disconnect(myObject, "mySignal()", null, null);

    * * equivalent to the non-static overloaded function * *

    myObject.mySignal.disconnect();

    *
  4. *
  5. Disconnect a specific receiver: * *

    disconnect(myObject, null, myReceiver, null);

    * * equivalent to the non-static overloaded function * *

    myObject.disconnect(myReceiver);

    *
  6. *
* *

0 may be used as a wildcard, meaning "any signal", "any receiving * object", or "any slot in the receiving object", respectively.

* *

The sender may never be 0. (You cannot disconnect signals from * more than one object in a single call.)

* *

If signal is 0, it disconnects receiver and method from * any signal. If not, only the specified signal is disconnected.

* *

If receiver is 0, it disconnects anything connected to * signal. If not, QMetaObject.Slots in objects other than receiver are not * disconnected.

* *

If method is 0, it disconnects anything that is connected to * receiver. If not, only slots named method will be disconnected, * and all other slots are left alone. The method must be 0 if * receiver is left out, so you cannot disconnect a * specifically-named slot on all objects.

* * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QObject sender, String signal, QObject receiver, String slot) { if(signal!=null && signal.isEmpty()) throw new IllegalArgumentException("Empty string not allowed as signal."); if(slot!=null && slot.isEmpty()) throw new IllegalArgumentException("Empty string not allowed as slot."); QMetaMethod signalMethod = signal==null ? null : sender.metaObject().method(signal); if(signal!=null && signalMethod==null) throw new QNoSuchSignalException(signal); QMetaMethod slotMethod = slot==null ? null : receiver.metaObject().method(slot); if(slot!=null && slotMethod==null) throw new QNoSuchSlotException(receiver, slot); return disconnect( sender, signalMethod, receiver, slotMethod ); } /** *

Disconnects signal in object sender from method in object * receiver receiver. Returns true if the connection is successfully broken; * otherwise returns false.

* *

This function provides the same possibilities like * {@link #disconnect(QObject, String, QObject, String)} * but uses QMetaMethod to represent the signal and the method to be disconnected.

* *

Additionally this function returns false and no signals and slots disconnected * if:

*
    * *
  1. signal is not a member of sender class or one of its parent classes.
  2. * *
  3. method is not a member of receiver class or one of its parent classes.
  4. * *
  5. signal instance represents not a signal.
  6. * *
* *

null may be used as wildcard in the meaning "any signal" or "any slot in receiving object". * In the same way 0 can be used for receiver in the meaning "any receiving object". In this case * method should also be null. sender parameter should be never 0.

* * @see #disconnect(QObject, String, QObject, String) * @return true if successfully disconnected, or false otherwise. */ public static boolean disconnect(QObject sender, QMetaMethod signal, QObject receiver, QMetaMethod slot) { return QMetaObject.disconnectMethods( java.util.Objects.requireNonNull(sender), signal==null ? -1 : signal.methodIndex(), signal==null ? 0 : signal.enclosingMetaObject().metaObjectPointer, receiver, slot==null ? -1 : slot.methodIndex(), slot==null ? 0 : slot.enclosingMetaObject().metaObjectPointer ); } /** *

Disconnect a connection.

* *

If the connection is invalid or has already been disconnected, do nothing * and return false.

* @param connection the connection * @return true if successfully disconnected, or false otherwise. * */ public static boolean disconnect(QMetaObject.Connection connection) { return QMetaObject.AbstractSignal.disconnectOne(connection); } /** * Disconnect all connections originating in this object. * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect() { return QMetaObject.AbstractSignal.disconnectAll(this, null); } /** * Disconnect all connections made from this signal emitter to a specific object. * * @param receiver The receiver to disconnect, or null to disconnect all receivers * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Object receiver) { if(receiver instanceof QMetaObject.Connection) return disconnect((QMetaObject.Connection)receiver); else return QMetaObject.AbstractSignal.disconnectAll(this, receiver); } /** * Returns a pointer to the meta-object of this object. * @return the object's meta-object */ @io.qt.QtUninvokable public native final QMetaObject metaObject(); /** * Casts an object to the given targetType. Returns null if object is not instance of targetType. * @param type * @param targetType * @return the object as targetType or null */ @io.qt.QtUninvokable public final T qt_metacast(Class targetType) { return QMetaObject.cast(targetType, this); } /** * Returns true if this object is an instance of a class that inherits className or a QObject subclass that inherits className; otherwise returns false. * A class is considered to inherit itself. * @param targetType * @return true if object instance of targetType */ @io.qt.QtUninvokable public final boolean inherits(Class targetType){ return targetType.isInstance(this) || inherits(QMetaObject.internalNameOfType(targetType).replace("*", "")); } /** * @see #receivers(String) */ @io.qt.QtUninvokable protected final int receivers(io.qt.core.QMetaObject.AbstractSignal signalObject){ if(signalObject.methodIndex()>=0 && signalObject.containingObject()==this) { QMetaMethod method = metaObject().methods().get(signalObject.methodIndex()); return receivers("2" + method.cppMethodSignature()); } return 0; } private static Runnable NO_SIGNAL = ()->{}; private static QMetaMethod findNotifySignalByBindables(QObject object, java.lang.reflect.Field reflectedField, QUntypedPropertyData property) { for(QMetaProperty metaProperty : object.metaObject().properties()) { if(metaProperty.isBindable()) { QUntypedBindable bindable = metaProperty.bindable(object); if(bindable.data()==property) { QMetaObject.AbstractSignal.registerPropertyField(metaProperty, reflectedField); QMetaMethod notifySignal = metaProperty.notifySignal(); if(notifySignal.isValid()) { if(notifySignal.parameterCount()==0) { return notifySignal; }else if(notifySignal.parameterCount()==1 && metaProperty.metaType().equals(notifySignal.parameterMetaType(0))) { return notifySignal; }else { return null; } }else { return null; } } } } return null; } private class EmitSignal0 implements Runnable{ @Override public void run() { try { QMetaObject.AbstractSignal.emitNativeSignal(QObject.this, methodIndex, metaObjectId); }catch(QNoNativeResourcesException e){} } private final int methodIndex; private final long metaObjectId; public EmitSignal0(int methodIndex, long metaObjectId) { super(); this.methodIndex = methodIndex; this.metaObjectId = metaObjectId; } } private class EmitSignal1 implements Runnable{ @Override public void run() { try { QMetaObject.AbstractSignal.emitNativeSignal(QObject.this, methodIndex, metaObjectId, supplier.get()); }catch(QNoNativeResourcesException e){} } private final int methodIndex; private final long metaObjectId; private final java.util.function.Supplier supplier; public EmitSignal1(int methodIndex, long metaObjectId, java.util.function.Supplier supplier) { super(); this.supplier = supplier; this.methodIndex = methodIndex; this.metaObjectId = metaObjectId; } } private static abstract class AbstractPropertyCore{ abstract QMetaType valueMetaType(QProperty property); abstract void initialize(QProperty property); abstract void emitSignal(QProperty property); abstract boolean hasSignal(QProperty property); abstract T value(QBindingStorage bindingStorage, QProperty property); abstract QPropertyBindingData bindingData(QBindingStorage bindingStorage, QProperty property, boolean create); abstract boolean setValueBypassingBindings(QProperty property, Object val); } private static class PropertyCore extends AbstractPropertyCore{ PropertyCore(QMetaType metaType) { super(); this.metaType = metaType; } final QMetaType valueMetaType(QProperty property) { return metaType; } final void initialize(QProperty property) {} void emitSignal(QProperty property) {} boolean hasSignal(QProperty property) { return false; } final T value(QBindingStorage bindingStorage, QProperty property){ bindingStorage.registerDependency(property); return io.qt.core.QProperty.getValueBypassingBindings(QtJambi_LibraryUtilities.internal.nativeId(property), QtJambi_LibraryUtilities.internal.checkedNativeId(metaType)); } final QPropertyBindingData bindingData(QBindingStorage bindingStorage, QProperty property, boolean create) { return bindingStorage.bindingData(property, create); } boolean setValueBypassingBindings(QProperty property, Object val) { return io.qt.core.QProperty.setValueBypassingBindings(QtJambi_LibraryUtilities.internal.nativeId(property), QtJambi_LibraryUtilities.internal.checkedNativeId(metaType), val); } private final QMetaType metaType; } private final static class SignalPropertyCore extends PropertyCore{ public SignalPropertyCore(QMetaType metaType, int methodIndex, long metaObjectId) { super(metaType); this.methodIndex = methodIndex; this.metaObjectId = metaObjectId; } void emitSignal(QProperty property) { try { QMetaObject.AbstractSignal.emitNativeSignal(java.util.Objects.requireNonNull(property.owner()), methodIndex, metaObjectId); }catch(QNoNativeResourcesException e){} } boolean hasSignal(QProperty property) { return true; } private final int methodIndex; private final long metaObjectId; } private static class RCPropertyCore extends PropertyCore{ @SuppressWarnings("unused") private Object __rcValue; RCPropertyCore(QMetaType metaType) { super(metaType); } final boolean setValueBypassingBindings(QProperty property, Object val) { if(super.setValueBypassingBindings(property, val)) { __rcValue = val; return true; } else return false; } } private final static class RCSignalPropertyCore extends RCPropertyCore{ public RCSignalPropertyCore(QMetaType metaType, int methodIndex, long metaObjectId) { super(metaType); this.methodIndex = methodIndex; this.metaObjectId = metaObjectId; } void emitSignal(QProperty property) { try { QMetaObject.AbstractSignal.emitNativeSignal(java.util.Objects.requireNonNull(property.owner()), methodIndex, metaObjectId); }catch(QNoNativeResourcesException e){} } boolean hasSignal(QProperty property) { return true; } private final int methodIndex; private final long metaObjectId; } private static class InitializingPropertyCore extends AbstractPropertyCore{ QMetaType valueMetaType(QProperty property) { initialize(property); return property.core.valueMetaType(property); } void initialize(QProperty property) { initialize(property, null); } final void initialize(QProperty property, T val) { io.qt.internal.QtJambiPropertyInfo result = QMetaObject.AbstractSignal.analyzeProperty(property.owner(), property); if(result.property!=null) { if(result.notifySignal==null) { if(result.metaType.flags().isSet(QMetaType.TypeFlag.IsPointer) || result.metaType.name().contains("*")) { property.core = new RCPropertyCore<>(result.metaType); }else { property.core = new PropertyCore<>(result.metaType); } }else { if(result.metaType.flags().isSet(QMetaType.TypeFlag.IsPointer) || result.metaType.name().contains("*")) { property.core = new RCSignalPropertyCore<>(result.metaType, result.notifySignal.methodIndex(), result.notifySignal.enclosingMetaObject().metaObjectPointer); }else { property.core = new SignalPropertyCore<>(result.metaType, result.notifySignal.methodIndex(), result.notifySignal.enclosingMetaObject().metaObjectPointer); } } io.qt.core.QProperty.initialize_native(property, result.metaType, val); }else { property.core = new PropertyCore<>(result.metaType); io.qt.core.QProperty.initialize_native(property, result.metaType, val); QMetaMethod notifySignal = findNotifySignalByBindables(property.owner(), result.reflectedField, property); if(notifySignal!=null) { if(result.metaType.flags().isSet(QMetaType.TypeFlag.IsPointer) || result.metaType.name().contains("*")) { property.core = new RCSignalPropertyCore<>(result.metaType, notifySignal.methodIndex(), result.notifySignal.enclosingMetaObject().metaObjectPointer); }else { property.core = new SignalPropertyCore<>(result.metaType, notifySignal.methodIndex(), result.notifySignal.enclosingMetaObject().metaObjectPointer); } } } } final T value(QBindingStorage bindingStorage, QProperty property){ initialize(property); return property.core.value(bindingStorage, property); } final QPropertyBindingData bindingData(QBindingStorage bindingStorage, QProperty property, boolean create) { initialize(property); return property.core.bindingData(bindingStorage, property, create); } void emitSignal(QProperty property) { initialize(property); property.core.emitSignal(property); } boolean hasSignal(QProperty property) { initialize(property); return property.core.hasSignal(property); } boolean setValueBypassingBindings(QProperty property, Object val) { initialize(property); return property.core.setValueBypassingBindings(property, val); } } private final static class ValueInitializingPropertyCore extends InitializingPropertyCore{ public ValueInitializingPropertyCore(T val) { super(); this.val = val; } void initialize(QProperty property) { super.initialize(property, val); } private final T val; } private final static class BindingInitializingPropertyCore extends InitializingPropertyCore{ public BindingInitializingPropertyCore(QUntypedPropertyBinding binding) { super(); this.binding = binding; } void initialize(QProperty property) { super.initialize(property, null); property.bindingData().setBinding(binding, property); } private final QUntypedPropertyBinding binding; } /** *
*

It is only allowed to use QProperty as final-declared member variable of a QObject subtype.

*

Example:

* * public class MyObject extends QObject{
*     private final QProperty<QColor> color = new QProperty<>();
*     public final Signal0 colorChanged = new Signal0();
*     
*     public QColor color(){
*         return color.value();
*     }
*     
*     public void setColor(QColor color){
*         color.setValue(color);
*     }
*     
*     public QBindable<QColor> bindableColor(){
*         return new QBindable<>(color);
*     }
* } *
*

QProperty fields should meet the following naming conventions to let * metaobject system identify them as accessible property. For a property called "foo" * call the QProperty field either "foo", "fooProp" or "fooProperty". * Then, QtJambi will identify the method "public T foo()" as it's getter, * "public void setFoo(T)" as it's setter, * "public final Signal0 fooChanged" as it's notify signal and * "public QBindable<T> bindableFoo()" as it's bindable supplier. *

*

Instead of meeting these naming conventions you can use the io.qt.QtProperty... annotations * to make the fields and methods identified as property:

* * public class MyObject extends QObject{
*     @QtPropertyMember(name="color")
*     private final QProperty<QColor> _c = new QProperty<>();
*     
*     @QtPropertyNotify(name="color")
*     public final Signal0 colorChangeAppeared = new Signal0();
*     
*     @QtPropertyReader(name="color")
*     public QColor get_color(){
*         return _c.value();
*     }
*     
*     @QtPropertyWriter(name="color")
*     public void change_color(QColor color){
*         _c.setValue(color);
*     }
*     
*     @QtPropertyBindable(name="color")
*     public QBindable<QColor> get_bindable_color(){
*         return new QBindable<>(_c);
*     }
* } *
*

By declaring a QProperty field public * or by using the QtPropertyMember annotation * QtJambi identifies a readable, writable and bindable property * without the need to specify getter, setter and bindable methods:

* * public class MyObject extends QObject{
*     public final QProperty<QColor> color = new QProperty<>();
*     public final Signal0 colorChanged = new Signal0();
* } *
*

For primitive-typed implementations see:

*
    *
  • {@link QBooleanProperty}
  • *
  • {@link QByteProperty}
  • *
  • {@link QShortProperty}
  • *
  • {@link QIntProperty}
  • *
  • {@link QLongProperty}
  • *
  • {@link QFloatProperty}
  • *
  • {@link QDoubleProperty}
  • *
  • {@link QCharProperty}
  • *
*/ public final class QProperty extends QPropertyData { QObject owner() { return QObject.this; } /** *

Constructs a property whose type is taken from it's field declaration.

*/ public QProperty() { super(null); core = new InitializingPropertyCore<>(); } /** *

Constructs a property with the provided initialValue.

*

The property type is taken from it's field declaration. * The initialValue has to be assignable to the property type. Otherwise, a default value is used.

* @param initialValue */ public QProperty(T initialValue) { super(null); core = new ValueInitializingPropertyCore<>(initialValue); } /** *

Constructs a property with the provided binding.

*

The property type is taken from it's field declaration. * The binding's type has to be assignable to the property type. Otherwise, a default value is used.

* @param binding */ public QProperty(QUntypedPropertyBinding binding) { super(null); core = new BindingInitializingPropertyCore<>(binding); } /** *

Constructs a property bound to the provided functor.

*

The property type is taken from it's field declaration. * The functor's return type ({@link QtUtilities.Supplier#get()}) has to be assignable to the property type. * Otherwise, a default value is used.

* @param functor */ public QProperty(QtUtilities.Supplier functor) { this(new QPropertyBinding<>(functor)); } /** * Returns the value of the property. This may evaluate a binding expression that is tied to this property, before returning the value. * @return value */ @QtUninvokable public T value() { return core.value(bindingStorage(), this); } /** *

Assigns newValue to this property and removes the property's associated binding, if present.

* @param newValue */ @SuppressWarnings("unchecked") @QtUninvokable public void setValue(T newValue) { QMetaType valueMetaType = core.valueMetaType(this); if(newValue!=null && !QVariant.canConvert(newValue, valueMetaType)) throw new ClassCastException("Cannot cast value to "+valueMetaType.name()); if(newValue==null && !valueMetaType.flags().isSet(QMetaType.TypeFlag.IsPointer)) newValue = (T)valueMetaType.create(); QPropertyBindingData bd = bindingStorage().bindingData(this); if(bd!=null) bd.removeBinding(); if (core.setValueBypassingBindings(this, newValue)) notifyProperty(bd); } /** *

Associates the value of this property with the provided newBinding expression and returns the previously associated binding.

*

The binding's value type ({@link QUntypedPropertyBinding#valueMetaType()}) has to be equals to the property's type T, * otherwise the property remains unchanged.

*

The first time the property value is read, the binding is evaluated. * Whenever a dependency of the binding changes, the binding will be re-evaluated the next time the value of this property is read.

* @param newBinding * @return oldBinding */ @SuppressWarnings("unchecked") @QtUninvokable public QPropertyBinding setBinding(QPropertyBinding newBinding) { if(newBinding!=null && !io.qt.core.QProperty.checkType(core.valueMetaType(this), newBinding.valueMetaType())) return new QPropertyBinding<>(); QPropertyBindingData bd = bindingData(); QUntypedPropertyBinding oldBinding = bd.setBinding(newBinding, this); notifyProperty(bd); if(oldBinding instanceof QPropertyBinding) return (QPropertyBinding)oldBinding; else return new QPropertyBinding<>(oldBinding); } /** *

Associates the value of this property with the provided newBinding expression.

*

The binding's value type ({@link QUntypedPropertyBinding#valueMetaType()}) has to be equals to the property's type T, * otherwise the property remains unchanged and the method returns false.

*

The first time the property value is read, the binding is evaluated. * Whenever a dependency of the binding changes, the binding will be re-evaluated the next time the value of this property is read.

*

Returns true if the type of this property is the same as the type the binding function returns; false otherwise.

* @param newBinding * @return true if types match, false otherwise. */ @QtUninvokable public boolean setBinding(QUntypedPropertyBinding newBinding) { if(newBinding!=null && !io.qt.core.QProperty.checkType(core.valueMetaType(this), newBinding.valueMetaType())) return false; QPropertyBindingData bd = bindingData(); bd.setBinding(newBinding, this); notifyProperty(bd); return true; } /** *

Associates the value of this property with the provided functor and returns the previously associated binding.

*

The first time the property value is read, the binding is evaluated by invoking {@link QtUtilities.Supplier#get()} of functor. * Whenever a dependency of the binding changes, the binding will be re-evaluated the next time the value of this property is read.

* @param functor * @return oldBinding */ @QtUninvokable public QPropertyBinding setBinding(QtUtilities.Supplier functor) { return setBinding(new QPropertyBinding<>(functor)); } @QtUninvokable private QPropertyBinding makeBinding() { core.initialize(this); return new QPropertyBinding<>(this::value); } /** * Checks if the property has a binding. * @return true if the property has a binding, false otherwise. */ @QtUninvokable public boolean hasBinding() { QPropertyBindingData bd = core.bindingData(bindingStorage(), this, false); return bd!=null && bd.hasBinding(); } /** * Returns the binding expression that is associated with this property. * A default constructed {@link QPropertyBinding<T>} will be returned if no such association exists. * @return binding */ @QtUninvokable public QPropertyBinding binding() { return new QPropertyBinding<>(this); } /** *

Disassociates the binding expression from this property and returns it.

*

After calling this function, the value of the property will only change if you assign a new value to it, or when a new binding is set.

* @return the removed binding */ @QtUninvokable public QPropertyBinding takeBinding() { return setBinding(new QPropertyBinding<>()); } /** *

Registers the given functor f as a callback that shall be called whenever the value of the property changes.

*

The returned property change handler object keeps track of the registration. * As long as the change handler is alive i.e. as long as a reference to the {@link QPropertyChangeHandler} instance exists, * the callback remains installed. When the garbage collection deletes the instance, the callback is de-registered.

* @param f * @return property change handler * @see QPropertyChangeHandler */ @QtUninvokable public QPropertyChangeHandler onValueChanged(Runnable f) { return new QPropertyChangeHandler(bindingData(), f); } /** * Subscribes the given functor f as a callback that is called immediately and whenever the value of the property changes in the future. * @param f * @return property change handler * @see QPropertyChangeHandler * @see #onValueChanged(Runnable) */ @QtUninvokable public QPropertyChangeHandler subscribe(Runnable f) { f.run(); return onValueChanged(f); } /** *

Registers the given functor f as a callback that shall be called whenever the value of the bindable changes.

*

The returned property notifier object keeps track of the registration. * As long as the notifier is alive i.e. as long as a reference to the {@link QPropertyNotifier} instance exists, * the callback remains installed. When the garbage collection deletes the instance, the callback is de-registered.

* @param f * @return property notifier * @see QPropertyNotifier */ @io.qt.QtUninvokable public QPropertyNotifier addNotifier(Runnable f) { return new QPropertyNotifier(bindingData(), f); } @QtUninvokable QPropertyBindingData bindingData() { return core.bindingData(bindingStorage(), this, true); } @QtUninvokable private void notifyProperty(QPropertyBindingData binding){ if (binding!=null) binding.notifyObservers(this); core.emitSignal(this); } @QtUninvokable public final void notifyProperty() { QPropertyBindingData bd = bindingStorage().bindingData(this); notifyProperty(bd); } @QtUninvokable private void emitSignal() { core.emitSignal(this); } @QtUninvokable private boolean hasSignal() { return core.hasSignal(this); } QMetaType valueMetaType() { return core.valueMetaType(this); } /** * {@inheritDoc} */ @QtUninvokable @Override public final T getValueBypassingBindings() { return io.qt.core.QProperty.getValueBypassingBindings(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(core.valueMetaType(this))); } /** * {@inheritDoc} */ @QtUninvokable @Override public final boolean setValueBypassingBindings(T val) { return core.setValueBypassingBindings(this, val); } private AbstractPropertyCore core; } /** * QBooleanProperty is primitive-typed version of QProperty<Boolean>. * @see QProperty */ public class QBooleanProperty extends QBooleanPropertyData { /** * Constructs a boolean-typed property. */ public QBooleanProperty() { super(); } /** * Constructs a boolean-typed property with the provided initialValue. * @param initialValue */ public QBooleanProperty(boolean initialValue) { super(initialValue); } /** * Constructs a boolean-typed property with the provided binding. * @param binding */ public QBooleanProperty(QBooleanPropertyBinding binding) { super(); bindingData().setBinding(binding, this); } /** * Constructs a boolean-typed property with the provided binding. * @param binding */ public QBooleanProperty(QPropertyBinding<@QtPrimitiveType Boolean> binding) { super(); if(io.qt.core.QBooleanProperty.checkType(binding.valueMetaType())) bindingData().setBinding(binding, this); } /** *

Constructs a boolean-typed property bound to the provided functor.

* @param functor */ public QBooleanProperty(java.util.function.BooleanSupplier functor) { this(new QBooleanPropertyBinding(functor)); } /** * Returns the value of the property. This may evaluate a binding expression that is tied to this property, before returning the value. * @return value */ @QtUninvokable public boolean value() { bindingStorage().registerDependency(this); return this.getValueBypassingBindings(); } /** *

Assigns newValue to this property and removes the property's associated binding, if present.

* @param newValue */ @QtUninvokable public void setValue(boolean newValue) { QPropertyBindingData bd = bindingStorage().bindingData(this); if(bd!=null) bd.removeBinding(); if (this.setValueBypassingBindings(newValue)) notifyProperty(bd); } /** *

Associates the value of this property with the provided newBinding expression and returns the previously associated binding.

*

The first time the property value is read, the binding is evaluated. * Whenever a dependency of the binding changes, the binding will be re-evaluated the next time the value of this property is read.

* @param newBinding * @return oldBinding */ @QtUninvokable public QBooleanPropertyBinding setBinding(QBooleanPropertyBinding newBinding) { QPropertyBindingData bd = bindingData(); QUntypedPropertyBinding oldBinding = bd.setBinding(newBinding, this); notifyProperty(bd); if(oldBinding instanceof QBooleanPropertyBinding) return (QBooleanPropertyBinding)oldBinding; else return new QBooleanPropertyBinding(oldBinding); } /** *

Associates the value of this property with the provided newBinding expression and returns the previously associated binding.

*

The binding's value type ({@link QUntypedPropertyBinding#valueMetaType()}) has to be boolean, * otherwise the property remains unchanged.

*

The first time the property value is read, the binding is evaluated. * Whenever a dependency of the binding changes, the binding will be re-evaluated the next time the value of this property is read.

* @param newBinding * @return oldBinding */ @QtUninvokable public QBooleanPropertyBinding setBinding(QPropertyBinding<@QtPrimitiveType Boolean> newBinding) { if(!io.qt.core.QBooleanProperty.checkType(newBinding.valueMetaType())) return new QBooleanPropertyBinding(); QPropertyBindingData bd = bindingData(); QUntypedPropertyBinding oldBinding = bd.setBinding(newBinding, this); notifyProperty(bd); if(oldBinding instanceof QBooleanPropertyBinding) return (QBooleanPropertyBinding)oldBinding; else return new QBooleanPropertyBinding(oldBinding); } /** *

Associates the value of this property with the provided newBinding expression.

*

The binding's value type ({@link QUntypedPropertyBinding#valueMetaType()}) has to be boolean, * otherwise the property remains unchanged and the method returns false.

*

The first time the property value is read, the binding is evaluated. * Whenever a dependency of the binding changes, the binding will be re-evaluated the next time the value of this property is read.

*

Returns true if the type of this property is the same as the type the binding function returns; false otherwise.

* @param newBinding * @return true if types match, false otherwise. */ @QtUninvokable public boolean setBinding(QUntypedPropertyBinding newBinding) { if(io.qt.core.QBooleanProperty.checkType(newBinding.valueMetaType())) { QPropertyBindingData bd = bindingData(); bd.setBinding(newBinding, this); notifyProperty(bd); return true; }else { return false; } } /** *

Associates the value of this property with the provided functor and returns the previously associated binding.

*

The first time the property value is read, the binding is evaluated by invoking {@link java.util.function.BooleanSupplier#getAsBoolean()} of functor. * Whenever a dependency of the binding changes, the binding will be re-evaluated the next time the value of this property is read.

* @param functor * @return oldBinding */ @QtUninvokable public QBooleanPropertyBinding setBinding(java.util.function.BooleanSupplier functor) { return setBinding(new QBooleanPropertyBinding(functor)); } @QtUninvokable private QBooleanPropertyBinding makeBinding() { return new QBooleanPropertyBinding(this::value); } /** * Checks if the property has a binding. * @return true if the property has a binding, false otherwise. */ @QtUninvokable public boolean hasBinding() { QPropertyBindingData bd = bindingStorage().bindingData(this); return bd!=null && bd.hasBinding(); } /** * Returns the binding expression that is associated with this property. * A default constructed {@link QBooleanPropertyBinding} will be returned if no such association exists. * @return binding */ @QtUninvokable public QBooleanPropertyBinding binding() { return new QBooleanPropertyBinding(this); } /** *

Disassociates the binding expression from this property and returns it.

*

After calling this function, the value of the property will only change if you assign a new value to it, or when a new binding is set.

* @return the removed binding */ @QtUninvokable public QBooleanPropertyBinding takeBinding() { return setBinding(new QBooleanPropertyBinding()); } /** *

Registers the given functor f as a callback that shall be called whenever the value of the property changes.

*

The returned property change handler object keeps track of the registration. * As long as the change handler is alive i.e. as long as a reference to the {@link QPropertyChangeHandler} instance exists, * the callback remains installed. When the garbage collection deletes the instance, the callback is de-registered.

* @param f * @return property change handler * @see QPropertyChangeHandler */ @QtUninvokable public QPropertyChangeHandler onValueChanged(Runnable f) { return new QPropertyChangeHandler(bindingData(), f); } /** * Subscribes the given functor f as a callback that is called immediately and whenever the value of the property changes in the future. * @param f * @return property change handler * @see QPropertyChangeHandler * @see #onValueChanged(Runnable) */ @QtUninvokable public QPropertyChangeHandler subscribe(Runnable f) { f.run(); return onValueChanged(f); } /** *

Registers the given functor f as a callback that shall be called whenever the value of the bindable changes.

*

The returned property notifier object keeps track of the registration. * As long as the notifier is alive i.e. as long as a reference to the {@link QPropertyNotifier} instance exists, * the callback remains installed. When the garbage collection deletes the instance, the callback is de-registered.

* @param f * @return property notifier * @see QPropertyNotifier */ @io.qt.QtUninvokable public QPropertyNotifier addNotifier(Runnable f) { return new QPropertyNotifier(bindingData(), f); } @QtUninvokable QPropertyBindingData bindingData() { return bindingStorage().bindingData(this, true); } @QtUninvokable private void notifyProperty(QPropertyBindingData binding){ if (binding!=null) binding.notifyObservers(this); emitSignal(); } @QtUninvokable public final void notifyProperty() { QPropertyBindingData bd = bindingStorage().bindingData(this); notifyProperty(bd); } private Runnable signal = () -> { io.qt.internal.QtJambiPropertyInfo result = QMetaObject.AbstractSignal.analyzeProperty(QObject.this, this); QMetaMethod notifySignal; if(result.property!=null) { notifySignal = result.notifySignal; }else { notifySignal = findNotifySignalByBindables(QObject.this, result.reflectedField, this); } if(notifySignal==null) { this.signal = NO_SIGNAL; }else{ if(notifySignal.parameterCount()==0) this.signal = new EmitSignal0(notifySignal.methodIndex(), notifySignal.enclosingMetaObject().metaObjectPointer); else this.signal = new EmitSignal1<>(notifySignal.methodIndex(), notifySignal.enclosingMetaObject().metaObjectPointer, this::getValueBypassingBindings); } this.signal.run(); }; @QtUninvokable private boolean hasSignal() { return this.signal != NO_SIGNAL; } @QtUninvokable private void emitSignal() { this.signal.run(); } } /** * QByteProperty is primitive-typed version of QProperty<Byte>. * @see QProperty */ public class QByteProperty extends QBytePropertyData { /** * Constructs a byte-typed property. */ public QByteProperty() { super(); } /** * Constructs a byte-typed property with the provided initialValue. * @param initialValue */ public QByteProperty(byte initialValue) { super(initialValue); } /** * Constructs a byte-typed property with the provided binding. * @param binding */ public QByteProperty(QBytePropertyBinding binding) { super(); bindingData().setBinding(binding, this); } /** * Constructs a byte-typed property with the provided binding. * @param binding */ public QByteProperty(QPropertyBinding<@QtPrimitiveType Byte> binding) { super(); if(io.qt.core.QByteProperty.checkType(binding.valueMetaType())) bindingData().setBinding(binding, this); } /** *

Constructs a byte-typed property bound to the provided functor.

* @param functor */ public QByteProperty(io.qt.QtUtilities.ByteSupplier functor) { this(new QBytePropertyBinding(functor)); } /** * Returns the value of the property. This may evaluate a binding expression that is tied to this property, before returning the value. * @return value */ @QtUninvokable public byte value() { bindingStorage().registerDependency(this); return this.getValueBypassingBindings(); } /** *

Assigns newValue to this property and removes the property's associated binding, if present.

* @param newValue */ @QtUninvokable public void setValue(byte newValue) { QPropertyBindingData bd = bindingStorage().bindingData(this); if(bd!=null) bd.removeBinding(); if (this.setValueBypassingBindings(newValue)) notifyProperty(bd); } /** *

Associates the value of this property with the provided newBinding expression and returns the previously associated binding.

*

The first time the property value is read, the binding is evaluated. * Whenever a dependency of the binding changes, the binding will be re-evaluated the next time the value of this property is read.

* @param newBinding * @return oldBinding */ @QtUninvokable public QBytePropertyBinding setBinding(QBytePropertyBinding newBinding) { QPropertyBindingData bd = bindingData(); QUntypedPropertyBinding oldBinding = bd.setBinding(newBinding, this); notifyProperty(bd); if(oldBinding instanceof QBytePropertyBinding) return (QBytePropertyBinding)oldBinding; else return new QBytePropertyBinding(oldBinding); } /** *

Associates the value of this property with the provided newBinding expression and returns the previously associated binding.

*

The binding's value type ({@link QUntypedPropertyBinding#valueMetaType()}) has to be byte, * otherwise the property remains unchanged.

*

The first time the property value is read, the binding is evaluated. * Whenever a dependency of the binding changes, the binding will be re-evaluated the next time the value of this property is read.

* @param newBinding * @return oldBinding */ @QtUninvokable public QBytePropertyBinding setBinding(QPropertyBinding<@QtPrimitiveType Byte> newBinding) { if(!io.qt.core.QByteProperty.checkType(newBinding.valueMetaType())) return new QBytePropertyBinding(); QPropertyBindingData bd = bindingData(); QUntypedPropertyBinding oldBinding = bd.setBinding(newBinding, this); notifyProperty(bd); if(oldBinding instanceof QBytePropertyBinding) return (QBytePropertyBinding)oldBinding; else return new QBytePropertyBinding(oldBinding); } /** *

Associates the value of this property with the provided newBinding expression.

*

The binding's value type ({@link QUntypedPropertyBinding#valueMetaType()}) has to be byte, * otherwise the property remains unchanged and the method returns false.

*

The first time the property value is read, the binding is evaluated. * Whenever a dependency of the binding changes, the binding will be re-evaluated the next time the value of this property is read.

*

Returns true if the type of this property is the same as the type the binding function returns; false otherwise.

* @param newBinding * @return true if types match, false otherwise. */ @QtUninvokable public boolean setBinding(QUntypedPropertyBinding newBinding) { if(io.qt.core.QByteProperty.checkType(newBinding.valueMetaType())) { QPropertyBindingData bd = bindingData(); bd.setBinding(newBinding, this); notifyProperty(bd); return true; }else { return false; } } /** *

Associates the value of this property with the provided functor and returns the previously associated binding.

*

The first time the property value is read, the binding is evaluated by invoking {@link java.util.function.ByteSupplier#getAsByte()} of functor. * Whenever a dependency of the binding changes, the binding will be re-evaluated the next time the value of this property is read.

* @param functor * @return oldBinding */ @QtUninvokable public QBytePropertyBinding setBinding(io.qt.QtUtilities.ByteSupplier functor) { return setBinding(new QBytePropertyBinding(functor)); } @QtUninvokable private QBytePropertyBinding makeBinding() { return new QBytePropertyBinding(this::value); } /** * Checks if the property has a binding. * @return true if the property has a binding, false otherwise. */ @QtUninvokable public boolean hasBinding() { QPropertyBindingData bd = bindingStorage().bindingData(this); return bd!=null && bd.hasBinding(); } /** * Returns the binding expression that is associated with this property. * A default constructed {@link QBytePropertyBinding} will be returned if no such association exists. * @return binding */ @QtUninvokable public QBytePropertyBinding binding() { return new QBytePropertyBinding(this); } /** *

Disassociates the binding expression from this property and returns it.

*

After calling this function, the value of the property will only change if you assign a new value to it, or when a new binding is set.

* @return the removed binding */ @QtUninvokable public QBytePropertyBinding takeBinding() { return setBinding(new QBytePropertyBinding()); } /** *

Registers the given functor f as a callback that shall be called whenever the value of the property changes.

*

The returned property change handler object keeps track of the registration. * As long as the change handler is alive i.e. as long as a reference to the {@link QPropertyChangeHandler} instance exists, * the callback remains installed. When the garbage collection deletes the instance, the callback is de-registered.

* @param f * @return property change handler * @see QPropertyChangeHandler */ @QtUninvokable public QPropertyChangeHandler onValueChanged(Runnable f) { return new QPropertyChangeHandler(bindingData(), f); } /** * Subscribes the given functor f as a callback that is called immediately and whenever the value of the property changes in the future. * @param f * @return property change handler * @see QPropertyChangeHandler * @see #onValueChanged(Runnable) */ @QtUninvokable public QPropertyChangeHandler subscribe(Runnable f) { f.run(); return onValueChanged(f); } /** *

Registers the given functor f as a callback that shall be called whenever the value of the bindable changes.

*

The returned property notifier object keeps track of the registration. * As long as the notifier is alive i.e. as long as a reference to the {@link QPropertyNotifier} instance exists, * the callback remains installed. When the garbage collection deletes the instance, the callback is de-registered.

* @param f * @return property notifier * @see QPropertyNotifier */ @io.qt.QtUninvokable public QPropertyNotifier addNotifier(Runnable f) { return new QPropertyNotifier(bindingData(), f); } @QtUninvokable QPropertyBindingData bindingData() { return bindingStorage().bindingData(this, true); } @QtUninvokable private void notifyProperty(QPropertyBindingData binding){ if (binding!=null) binding.notifyObservers(this); emitSignal(); } @QtUninvokable public final void notifyProperty() { QPropertyBindingData bd = bindingStorage().bindingData(this); notifyProperty(bd); } private Runnable signal = () -> { io.qt.internal.QtJambiPropertyInfo result = QMetaObject.AbstractSignal.analyzeProperty(QObject.this, this); QMetaMethod notifySignal; if(result.property!=null) { notifySignal = result.notifySignal; }else { notifySignal = findNotifySignalByBindables(QObject.this, result.reflectedField, this); } if(notifySignal==null) { this.signal = NO_SIGNAL; }else{ if(notifySignal.parameterCount()==0) this.signal = new EmitSignal0(notifySignal.methodIndex(), notifySignal.enclosingMetaObject().metaObjectPointer); else this.signal = new EmitSignal1<>(notifySignal.methodIndex(), notifySignal.enclosingMetaObject().metaObjectPointer, this::getValueBypassingBindings); } this.signal.run(); }; @QtUninvokable private boolean hasSignal() { return this.signal != NO_SIGNAL; } @QtUninvokable private void emitSignal() { this.signal.run(); } } /** * QShortProperty is primitive-typed version of QProperty<Short>. * @see QProperty */ public class QShortProperty extends QShortPropertyData { /** * Constructs a short-typed property. */ public QShortProperty() { super(); } /** * Constructs a short-typed property with the provided initialValue. * @param initialValue */ public QShortProperty(short initialValue) { super(initialValue); } /** * Constructs a short-typed property with the provided binding. * @param binding */ public QShortProperty(QShortPropertyBinding binding) { super(); bindingData().setBinding(binding, this); } /** * Constructs a short-typed property with the provided binding. * @param binding */ public QShortProperty(QPropertyBinding<@QtPrimitiveType Short> binding) { super(); if(io.qt.core.QShortProperty.checkType(binding.valueMetaType())) bindingData().setBinding(binding, this); } /** *

Constructs a short-typed property bound to the provided functor.

* @param functor */ public QShortProperty(QtUtilities.ShortSupplier functor) { this(new QShortPropertyBinding(functor)); } /** * Returns the value of the property. This may evaluate a binding expression that is tied to this property, before returning the value. * @return value */ @QtUninvokable public short value() { bindingStorage().registerDependency(this); return this.getValueBypassingBindings(); } /** *

Assigns newValue to this property and removes the property's associated binding, if present.

* @param newValue */ @QtUninvokable public void setValue(short newValue) { QPropertyBindingData bd = bindingStorage().bindingData(this); if(bd!=null) bd.removeBinding(); if (this.setValueBypassingBindings(newValue)) notifyProperty(bd); } /** *

Associates the value of this property with the provided newBinding expression and returns the previously associated binding.

*

The first time the property value is read, the binding is evaluated. * Whenever a dependency of the binding changes, the binding will be re-evaluated the next time the value of this property is read.

* @param newBinding * @return oldBinding */ @QtUninvokable public QShortPropertyBinding setBinding(io.qt.QtUtilities.ShortSupplier functor) { return setBinding(new QShortPropertyBinding(functor)); } /** *

Associates the value of this property with the provided newBinding expression and returns the previously associated binding.

*

The binding's value type ({@link QUntypedPropertyBinding#valueMetaType()}) has to be short, * otherwise the property remains unchanged.

*

The first time the property value is read, the binding is evaluated. * Whenever a dependency of the binding changes, the binding will be re-evaluated the next time the value of this property is read.

* @param newBinding * @return oldBinding */ @QtUninvokable public QShortPropertyBinding setBinding(QShortPropertyBinding newBinding) { QPropertyBindingData bd = bindingData(); QUntypedPropertyBinding oldBinding = bd.setBinding(newBinding, this); notifyProperty(bd); if(oldBinding instanceof QShortPropertyBinding) return (QShortPropertyBinding)oldBinding; else return new QShortPropertyBinding(oldBinding); } /** *

Associates the value of this property with the provided newBinding expression and returns the previously associated binding.

*

The binding's value type ({@link QUntypedPropertyBinding#valueMetaType()}) has to be short, * otherwise the property remains unchanged.

*

The first time the property value is read, the binding is evaluated. * Whenever a dependency of the binding changes, the binding will be re-evaluated the next time the value of this property is read.

* @param newBinding * @return oldBinding */ @QtUninvokable public QShortPropertyBinding setBinding(QPropertyBinding<@QtPrimitiveType Short> newBinding) { if(!io.qt.core.QShortProperty.checkType(newBinding.valueMetaType())) return new QShortPropertyBinding(); QPropertyBindingData bd = bindingData(); QUntypedPropertyBinding oldBinding = bd.setBinding(newBinding, this); notifyProperty(bd); if(oldBinding instanceof QShortPropertyBinding) return (QShortPropertyBinding)oldBinding; else return new QShortPropertyBinding(oldBinding); } /** *

Associates the value of this property with the provided newBinding expression.

*

The binding's value type ({@link QUntypedPropertyBinding#valueMetaType()}) has to be short, * otherwise the property remains unchanged and the method returns false.

*

The first time the property value is read, the binding is evaluated. * Whenever a dependency of the binding changes, the binding will be re-evaluated the next time the value of this property is read.

*

Returns true if the type of this property is the same as the type the binding function returns; false otherwise.

* @param newBinding * @return true if types match, false otherwise. */ @QtUninvokable public boolean setBinding(QUntypedPropertyBinding newBinding) { if(io.qt.core.QShortProperty.checkType(newBinding.valueMetaType())) { QPropertyBindingData bd = bindingData(); bd.setBinding(newBinding, this); notifyProperty(bd); return true; }else { return false; } } @QtUninvokable private QShortPropertyBinding makeBinding() { return new QShortPropertyBinding(this::value); } /** * Checks if the property has a binding. * @return true if the property has a binding, false otherwise. */ @QtUninvokable public boolean hasBinding() { QPropertyBindingData bd = bindingStorage().bindingData(this); return bd!=null && bd.hasBinding(); } /** * Returns the binding expression that is associated with this property. * A default constructed {@link QShortPropertyBinding} will be returned if no such association exists. * @return binding */ @QtUninvokable public QShortPropertyBinding binding() { return new QShortPropertyBinding(this); } /** *

Disassociates the binding expression from this property and returns it.

*

After calling this function, the value of the property will only change if you assign a new value to it, or when a new binding is set.

* @return the removed binding */ @QtUninvokable public QShortPropertyBinding takeBinding() { return setBinding(new QShortPropertyBinding()); } /** *

Registers the given functor f as a callback that shall be called whenever the value of the property changes.

*

The returned property change handler object keeps track of the registration. * As long as the change handler is alive i.e. as long as a reference to the {@link QPropertyChangeHandler} instance exists, * the callback remains installed. When the garbage collection deletes the instance, the callback is de-registered.

* @param f * @return property change handler * @see QPropertyChangeHandler */ @QtUninvokable public QPropertyChangeHandler onValueChanged(Runnable f) { return new QPropertyChangeHandler(bindingData(), f); } /** * Subscribes the given functor f as a callback that is called immediately and whenever the value of the property changes in the future. * @param f * @return property change handler * @see QPropertyChangeHandler * @see #onValueChanged(Runnable) */ @QtUninvokable public QPropertyChangeHandler subscribe(Runnable f) { f.run(); return onValueChanged(f); } /** *

Registers the given functor f as a callback that shall be called whenever the value of the bindable changes.

*

The returned property notifier object keeps track of the registration. * As long as the notifier is alive i.e. as long as a reference to the {@link QPropertyNotifier} instance exists, * the callback remains installed. When the garbage collection deletes the instance, the callback is de-registered.

* @param f * @return property notifier * @see QPropertyNotifier */ @io.qt.QtUninvokable public QPropertyNotifier addNotifier(Runnable f) { return new QPropertyNotifier(bindingData(), f); } @QtUninvokable QPropertyBindingData bindingData() { return bindingStorage().bindingData(this, true); } @QtUninvokable private void notifyProperty(QPropertyBindingData binding){ if (binding!=null) binding.notifyObservers(this); emitSignal(); } @QtUninvokable public final void notifyProperty() { QPropertyBindingData bd = bindingStorage().bindingData(this); notifyProperty(bd); } private Runnable signal = () -> { io.qt.internal.QtJambiPropertyInfo result = QMetaObject.AbstractSignal.analyzeProperty(QObject.this, this); QMetaMethod notifySignal; if(result.property!=null) { notifySignal = result.notifySignal; }else { notifySignal = findNotifySignalByBindables(QObject.this, result.reflectedField, this); } if(notifySignal==null) { this.signal = NO_SIGNAL; }else{ if(notifySignal.parameterCount()==0) this.signal = new EmitSignal0(notifySignal.methodIndex(), notifySignal.enclosingMetaObject().metaObjectPointer); else this.signal = new EmitSignal1<>(notifySignal.methodIndex(), notifySignal.enclosingMetaObject().metaObjectPointer, this::getValueBypassingBindings); } this.signal.run(); }; @QtUninvokable private boolean hasSignal() { return this.signal != NO_SIGNAL; } @QtUninvokable private void emitSignal() { this.signal.run(); } } /** * QIntProperty is primitive-typed version of QProperty<Integer>. * @see QProperty */ public class QIntProperty extends QIntPropertyData { /** * Constructs an int-typed property. */ public QIntProperty() { super(); } /** * Constructs an int-typed property with the provided initialValue. * @param initialValue */ public QIntProperty(int initialValue) { super(initialValue); } /** * Constructs an int-typed property with the provided binding. * @param binding */ public QIntProperty(QIntPropertyBinding binding) { super(); bindingData().setBinding(binding, this); } /** * Constructs an int-typed property with the provided binding. * @param binding */ public QIntProperty(QPropertyBinding<@QtPrimitiveType Integer> binding) { super(); if(io.qt.core.QIntProperty.checkType(binding.valueMetaType())) bindingData().setBinding(binding, this); } /** *

Constructs an int-typed property bound to the provided functor.

* @param functor */ public QIntProperty(java.util.function.IntSupplier functor) { this(new QIntPropertyBinding(functor)); } /** * Returns the value of the property. This may evaluate a binding expression that is tied to this property, before returning the value. * @return value */ @QtUninvokable public int value() { bindingStorage().registerDependency(this); return this.getValueBypassingBindings(); } /** *

Assigns newValue to this property and removes the property's associated binding, if present.

* @param newValue */ @QtUninvokable public void setValue(int newValue) { QPropertyBindingData bd = bindingStorage().bindingData(this); if(bd!=null) bd.removeBinding(); if (this.setValueBypassingBindings(newValue)) notifyProperty(bd); } /** *

Associates the value of this property with the provided newBinding expression and returns the previously associated binding.

*

The first time the property value is read, the binding is evaluated. * Whenever a dependency of the binding changes, the binding will be re-evaluated the next time the value of this property is read.

* @param newBinding * @return oldBinding */ @QtUninvokable public QIntPropertyBinding setBinding(QIntPropertyBinding newBinding) { QPropertyBindingData bd = bindingData(); QUntypedPropertyBinding oldBinding = bd.setBinding(newBinding, this); notifyProperty(bd); if(oldBinding instanceof QIntPropertyBinding) return (QIntPropertyBinding)oldBinding; else return new QIntPropertyBinding(oldBinding); } /** *

Associates the value of this property with the provided newBinding expression and returns the previously associated binding.

*

The binding's value type ({@link QUntypedPropertyBinding#valueMetaType()}) has to be int, * otherwise the property remains unchanged.

*

The first time the property value is read, the binding is evaluated. * Whenever a dependency of the binding changes, the binding will be re-evaluated the next time the value of this property is read.

* @param newBinding * @return oldBinding */ @QtUninvokable public QIntPropertyBinding setBinding(QPropertyBinding<@QtPrimitiveType Integer> newBinding) { if(!io.qt.core.QIntProperty.checkType(newBinding.valueMetaType())) return new QIntPropertyBinding(); QPropertyBindingData bd = bindingData(); QUntypedPropertyBinding oldBinding = bd.setBinding(newBinding, this); notifyProperty(bd); if(oldBinding instanceof QIntPropertyBinding) return (QIntPropertyBinding)oldBinding; else return new QIntPropertyBinding(oldBinding); } /** *

Associates the value of this property with the provided newBinding expression.

*

The binding's value type ({@link QUntypedPropertyBinding#valueMetaType()}) has to be int, * otherwise the property remains unchanged and the method returns false.

*

The first time the property value is read, the binding is evaluated. * Whenever a dependency of the binding changes, the binding will be re-evaluated the next time the value of this property is read.

*

Returns true if the type of this property is the same as the type the binding function returns; false otherwise.

* @param newBinding * @return true if types match, false otherwise. */ @QtUninvokable public boolean setBinding(QUntypedPropertyBinding newBinding) { if(io.qt.core.QIntProperty.checkType(newBinding.valueMetaType())) { QPropertyBindingData bd = bindingData(); bd.setBinding(newBinding, this); notifyProperty(bd); return true; }else { return false; } } /** *

Associates the value of this property with the provided functor and returns the previously associated binding.

*

The first time the property value is read, the binding is evaluated by invoking {@link java.util.function.IntSupplier#getAsInt()} of functor. * Whenever a dependency of the binding changes, the binding will be re-evaluated the next time the value of this property is read.

* @param functor * @return oldBinding */ @QtUninvokable public QIntPropertyBinding setBinding(java.util.function.IntSupplier functor) { return setBinding(new QIntPropertyBinding(functor)); } @QtUninvokable private QIntPropertyBinding makeBinding() { return new QIntPropertyBinding(this::value); } /** * Checks if the property has a binding. * @return true if the property has a binding, false otherwise. */ @QtUninvokable public boolean hasBinding() { QPropertyBindingData bd = bindingStorage().bindingData(this); return bd!=null && bd.hasBinding(); } /** * Returns the binding expression that is associated with this property. * A default constructed {@link QIntPropertyBinding} will be returned if no such association exists. * @return binding */ @QtUninvokable public QIntPropertyBinding binding() { return new QIntPropertyBinding(this); } /** *

Disassociates the binding expression from this property and returns it.

*

After calling this function, the value of the property will only change if you assign a new value to it, or when a new binding is set.

* @return the removed binding */ @QtUninvokable public QIntPropertyBinding takeBinding() { return setBinding(new QIntPropertyBinding()); } /** *

Registers the given functor f as a callback that shall be called whenever the value of the property changes.

*

The returned property change handler object keeps track of the registration. * As long as the change handler is alive i.e. as long as a reference to the {@link QPropertyChangeHandler} instance exists, * the callback remains installed. When the garbage collection deletes the instance, the callback is de-registered.

* @param f * @return property change handler * @see QPropertyChangeHandler */ @QtUninvokable public QPropertyChangeHandler onValueChanged(Runnable f) { return new QPropertyChangeHandler(bindingData(), f); } /** * Subscribes the given functor f as a callback that is called immediately and whenever the value of the property changes in the future. * @param f * @return property change handler * @see QPropertyChangeHandler * @see #onValueChanged(Runnable) */ @QtUninvokable public QPropertyChangeHandler subscribe(Runnable f) { f.run(); return onValueChanged(f); } /** *

Registers the given functor f as a callback that shall be called whenever the value of the bindable changes.

*

The returned property notifier object keeps track of the registration. * As long as the notifier is alive i.e. as long as a reference to the {@link QPropertyNotifier} instance exists, * the callback remains installed. When the garbage collection deletes the instance, the callback is de-registered.

* @param f * @return property notifier * @see QPropertyNotifier */ @io.qt.QtUninvokable public QPropertyNotifier addNotifier(Runnable f) { return new QPropertyNotifier(bindingData(), f); } @QtUninvokable QPropertyBindingData bindingData() { return bindingStorage().bindingData(this, true); } @QtUninvokable private void notifyProperty(QPropertyBindingData binding){ if (binding!=null) binding.notifyObservers(this); emitSignal(); } @QtUninvokable public final void notifyProperty() { QPropertyBindingData bd = bindingStorage().bindingData(this); notifyProperty(bd); } private Runnable signal = () -> { io.qt.internal.QtJambiPropertyInfo result = QMetaObject.AbstractSignal.analyzeProperty(QObject.this, this); QMetaMethod notifySignal; if(result.property!=null) { notifySignal = result.notifySignal; }else { notifySignal = findNotifySignalByBindables(QObject.this, result.reflectedField, this); } if(notifySignal==null) { this.signal = NO_SIGNAL; }else{ if(notifySignal.parameterCount()==0) this.signal = new EmitSignal0(notifySignal.methodIndex(), notifySignal.enclosingMetaObject().metaObjectPointer); else this.signal = new EmitSignal1<>(notifySignal.methodIndex(), notifySignal.enclosingMetaObject().metaObjectPointer, this::getValueBypassingBindings); } this.signal.run(); }; @QtUninvokable private boolean hasSignal() { return this.signal != NO_SIGNAL; } @QtUninvokable private void emitSignal() { this.signal.run(); } } /** * QLongProperty is primitive-typed version of QProperty<Long>. * @see QProperty */ public class QLongProperty extends QLongPropertyData { /** * Constructs a long-typed property. */ public QLongProperty() { super(); } /** * Constructs a long-typed property with the provided initialValue. * @param initialValue */ public QLongProperty(long initialValue) { super(initialValue); } /** * Constructs a long-typed property with the provided binding. * @param binding */ public QLongProperty(QLongPropertyBinding binding) { super(); bindingData().setBinding(binding, this); } /** * Constructs a long-typed property with the provided binding. * @param binding */ public QLongProperty(QPropertyBinding<@QtPrimitiveType Long> binding) { super(); if(io.qt.core.QLongProperty.checkType(binding.valueMetaType())) bindingData().setBinding(binding, this); } /** *

Constructs a long-typed property bound to the provided functor.

* @param functor */ public QLongProperty(java.util.function.LongSupplier functor) { this(new QLongPropertyBinding(functor)); } /** * Returns the value of the property. This may evaluate a binding expression that is tied to this property, before returning the value. * @return value */ @QtUninvokable public long value() { bindingStorage().registerDependency(this); return this.getValueBypassingBindings(); } /** *

Assigns newValue to this property and removes the property's associated binding, if present.

* @param newValue */ @QtUninvokable public void setValue(long newValue) { QPropertyBindingData bd = bindingStorage().bindingData(this); if(bd!=null) bd.removeBinding(); if (this.setValueBypassingBindings(newValue)) notifyProperty(bd); } /** *

Associates the value of this property with the provided newBinding expression and returns the previously associated binding.

*

The first time the property value is read, the binding is evaluated. * Whenever a dependency of the binding changes, the binding will be re-evaluated the next time the value of this property is read.

* @param newBinding * @return oldBinding */ @QtUninvokable public QLongPropertyBinding setBinding(QLongPropertyBinding newBinding) { QPropertyBindingData bd = bindingData(); QUntypedPropertyBinding oldBinding = bd.setBinding(newBinding, this); notifyProperty(bd); if(oldBinding instanceof QLongPropertyBinding) return (QLongPropertyBinding)oldBinding; else return new QLongPropertyBinding(oldBinding); } /** *

Associates the value of this property with the provided newBinding expression and returns the previously associated binding.

*

The binding's value type ({@link QUntypedPropertyBinding#valueMetaType()}) has to be long, * otherwise the property remains unchanged.

*

The first time the property value is read, the binding is evaluated. * Whenever a dependency of the binding changes, the binding will be re-evaluated the next time the value of this property is read.

* @param newBinding * @return oldBinding */ @QtUninvokable public QLongPropertyBinding setBinding(QPropertyBinding<@QtPrimitiveType Long> newBinding) { if(!io.qt.core.QLongProperty.checkType(newBinding.valueMetaType())) return new QLongPropertyBinding(); QPropertyBindingData bd = bindingData(); QUntypedPropertyBinding oldBinding = bd.setBinding(newBinding, this); notifyProperty(bd); if(oldBinding instanceof QLongPropertyBinding) return (QLongPropertyBinding)oldBinding; else return new QLongPropertyBinding(oldBinding); } /** *

Associates the value of this property with the provided newBinding expression.

*

The binding's value type ({@link QUntypedPropertyBinding#valueMetaType()}) has to be long, * otherwise the property remains unchanged and the method returns false.

*

The first time the property value is read, the binding is evaluated. * Whenever a dependency of the binding changes, the binding will be re-evaluated the next time the value of this property is read.

*

Returns true if the type of this property is the same as the type the binding function returns; false otherwise.

* @param newBinding * @return true if types match, false otherwise. */ @QtUninvokable public boolean setBinding(QUntypedPropertyBinding newBinding) { if(io.qt.core.QLongProperty.checkType(newBinding.valueMetaType())) { QPropertyBindingData bd = bindingData(); bd.setBinding(newBinding, this); notifyProperty(bd); return true; }else { return false; } } /** *

Associates the value of this property with the provided functor and returns the previously associated binding.

*

The first time the property value is read, the binding is evaluated by invoking {@link java.util.function.LongSupplier#getAsLong()} of functor. * Whenever a dependency of the binding changes, the binding will be re-evaluated the next time the value of this property is read.

* @param functor * @return oldBinding */ @QtUninvokable public QLongPropertyBinding setBinding(java.util.function.LongSupplier functor) { return setBinding(new QLongPropertyBinding(functor)); } @QtUninvokable private QLongPropertyBinding makeBinding() { return new QLongPropertyBinding(this::value); } /** * Checks if the property has a binding. * @return true if the property has a binding, false otherwise. */ @QtUninvokable public boolean hasBinding() { QPropertyBindingData bd = bindingStorage().bindingData(this); return bd!=null && bd.hasBinding(); } /** * Returns the binding expression that is associated with this property. * A default constructed {@link QLongPropertyBinding} will be returned if no such association exists. * @return binding */ @QtUninvokable public QLongPropertyBinding binding() { return new QLongPropertyBinding(this); } /** *

Disassociates the binding expression from this property and returns it.

*

After calling this function, the value of the property will only change if you assign a new value to it, or when a new binding is set.

* @return the removed binding */ @QtUninvokable public QLongPropertyBinding takeBinding() { return setBinding(new QLongPropertyBinding()); } /** *

Registers the given functor f as a callback that shall be called whenever the value of the property changes.

*

The returned property change handler object keeps track of the registration. * As long as the change handler is alive i.e. as long as a reference to the {@link QPropertyChangeHandler} instance exists, * the callback remains installed. When the garbage collection deletes the instance, the callback is de-registered.

* @param f * @return property change handler * @see QPropertyChangeHandler */ @QtUninvokable public QPropertyChangeHandler onValueChanged(Runnable f) { return new QPropertyChangeHandler(bindingData(), f); } /** * Subscribes the given functor f as a callback that is called immediately and whenever the value of the property changes in the future. * @param f * @return property change handler * @see QPropertyChangeHandler * @see #onValueChanged(Runnable) */ @QtUninvokable public QPropertyChangeHandler subscribe(Runnable f) { f.run(); return onValueChanged(f); } /** *

Registers the given functor f as a callback that shall be called whenever the value of the bindable changes.

*

The returned property notifier object keeps track of the registration. * As long as the notifier is alive i.e. as long as a reference to the {@link QPropertyNotifier} instance exists, * the callback remains installed. When the garbage collection deletes the instance, the callback is de-registered.

* @param f * @return property notifier * @see QPropertyNotifier */ @io.qt.QtUninvokable public QPropertyNotifier addNotifier(Runnable f) { return new QPropertyNotifier(bindingData(), f); } @QtUninvokable QPropertyBindingData bindingData() { return bindingStorage().bindingData(this, true); } @QtUninvokable private void notifyProperty(QPropertyBindingData binding){ if (binding!=null) binding.notifyObservers(this); emitSignal(); } @QtUninvokable public final void notifyProperty() { QPropertyBindingData bd = bindingStorage().bindingData(this); notifyProperty(bd); } private Runnable signal = () -> { io.qt.internal.QtJambiPropertyInfo result = QMetaObject.AbstractSignal.analyzeProperty(QObject.this, this); QMetaMethod notifySignal; if(result.property!=null) { notifySignal = result.notifySignal; }else { notifySignal = findNotifySignalByBindables(QObject.this, result.reflectedField, this); } if(notifySignal==null) { this.signal = NO_SIGNAL; }else{ if(notifySignal.parameterCount()==0) this.signal = new EmitSignal0(notifySignal.methodIndex(), notifySignal.enclosingMetaObject().metaObjectPointer); else this.signal = new EmitSignal1<>(notifySignal.methodIndex(), notifySignal.enclosingMetaObject().metaObjectPointer, this::getValueBypassingBindings); } this.signal.run(); }; @QtUninvokable private boolean hasSignal() { return this.signal != NO_SIGNAL; } @QtUninvokable private void emitSignal() { this.signal.run(); } } /** * QFloatProperty is primitive-typed version of QProperty<Float>. * @see QProperty */ public class QFloatProperty extends QFloatPropertyData { /** * Constructs a float-typed property. */ public QFloatProperty() { super(); } /** * Constructs a float-typed property with the provided initialValue. * @param initialValue */ public QFloatProperty(float initialValue) { super(initialValue); } /** * Constructs a float-typed property with the provided binding. * @param binding */ public QFloatProperty(QFloatPropertyBinding binding) { super(); bindingData().setBinding(binding, this); } /** * Constructs a float-typed property with the provided binding. * @param binding */ public QFloatProperty(QPropertyBinding<@QtPrimitiveType Float> binding) { super(); if(io.qt.core.QFloatProperty.checkType(binding.valueMetaType())) bindingData().setBinding(binding, this); } /** *

Constructs a float-typed property bound to the provided functor.

* @param functor */ public QFloatProperty(io.qt.QtUtilities.FloatSupplier functor) { this(new QFloatPropertyBinding(functor)); } /** * Returns the value of the property. This may evaluate a binding expression that is tied to this property, before returning the value. * @return value */ @QtUninvokable public float value() { bindingStorage().registerDependency(this); return this.getValueBypassingBindings(); } /** *

Assigns newValue to this property and removes the property's associated binding, if present.

* @param newValue */ @QtUninvokable public void setValue(float newValue) { QPropertyBindingData bd = bindingStorage().bindingData(this); if(bd!=null) bd.removeBinding(); if (this.setValueBypassingBindings(newValue)) notifyProperty(bd); } /** *

Associates the value of this property with the provided newBinding expression and returns the previously associated binding.

*

The first time the property value is read, the binding is evaluated. * Whenever a dependency of the binding changes, the binding will be re-evaluated the next time the value of this property is read.

* @param newBinding * @return oldBinding */ @QtUninvokable public QFloatPropertyBinding setBinding(QFloatPropertyBinding newBinding) { QPropertyBindingData bd = bindingData(); QUntypedPropertyBinding oldBinding = bd.setBinding(newBinding, this); notifyProperty(bd); if(oldBinding instanceof QFloatPropertyBinding) return (QFloatPropertyBinding)oldBinding; else return new QFloatPropertyBinding(oldBinding); } /** *

Associates the value of this property with the provided newBinding expression and returns the previously associated binding.

*

The binding's value type ({@link QUntypedPropertyBinding#valueMetaType()}) has to be float, * otherwise the property remains unchanged.

*

The first time the property value is read, the binding is evaluated. * Whenever a dependency of the binding changes, the binding will be re-evaluated the next time the value of this property is read.

* @param newBinding * @return oldBinding */ @QtUninvokable public QFloatPropertyBinding setBinding(QPropertyBinding<@QtPrimitiveType Float> newBinding) { if(!io.qt.core.QFloatProperty.checkType(newBinding.valueMetaType())) return new QFloatPropertyBinding(); QPropertyBindingData bd = bindingData(); QUntypedPropertyBinding oldBinding = bd.setBinding(newBinding, this); notifyProperty(bd); if(oldBinding instanceof QFloatPropertyBinding) return (QFloatPropertyBinding)oldBinding; else return new QFloatPropertyBinding(oldBinding); } /** *

Associates the value of this property with the provided newBinding expression.

*

The binding's value type ({@link QUntypedPropertyBinding#valueMetaType()}) has to be float, * otherwise the property remains unchanged and the method returns false.

*

The first time the property value is read, the binding is evaluated. * Whenever a dependency of the binding changes, the binding will be re-evaluated the next time the value of this property is read.

*

Returns true if the type of this property is the same as the type the binding function returns; false otherwise.

* @param newBinding * @return true if types match, false otherwise. */ @QtUninvokable public boolean setBinding(QUntypedPropertyBinding newBinding) { if(io.qt.core.QFloatProperty.checkType(newBinding.valueMetaType())) { QPropertyBindingData bd = bindingData(); bd.setBinding(newBinding, this); notifyProperty(bd); return true; }else { return false; } } /** *

Associates the value of this property with the provided functor and returns the previously associated binding.

*

The first time the property value is read, the binding is evaluated by invoking {@link io.qt.QtUtilities.FloatSupplier#getAsFloat()} of functor. * Whenever a dependency of the binding changes, the binding will be re-evaluated the next time the value of this property is read.

* @param functor * @return oldBinding */ @QtUninvokable public QFloatPropertyBinding setBinding(io.qt.QtUtilities.FloatSupplier functor) { return setBinding(new QFloatPropertyBinding(functor)); } @QtUninvokable private QFloatPropertyBinding makeBinding() { return new QFloatPropertyBinding(this::value); } /** * Checks if the property has a binding. * @return true if the property has a binding, false otherwise. */ @QtUninvokable public boolean hasBinding() { QPropertyBindingData bd = bindingStorage().bindingData(this); return bd!=null && bd.hasBinding(); } /** * Returns the binding expression that is associated with this property. * A default constructed {@link QFloatPropertyBinding} will be returned if no such association exists. * @return binding */ @QtUninvokable public QFloatPropertyBinding binding() { return new QFloatPropertyBinding(this); } /** *

Disassociates the binding expression from this property and returns it.

*

After calling this function, the value of the property will only change if you assign a new value to it, or when a new binding is set.

* @return the removed binding */ @QtUninvokable public QFloatPropertyBinding takeBinding() { return setBinding(new QFloatPropertyBinding()); } /** *

Registers the given functor f as a callback that shall be called whenever the value of the property changes.

*

The returned property change handler object keeps track of the registration. * As long as the change handler is alive i.e. as long as a reference to the {@link QPropertyChangeHandler} instance exists, * the callback remains installed. When the garbage collection deletes the instance, the callback is de-registered.

* @param f * @return property change handler * @see QPropertyChangeHandler */ @QtUninvokable public QPropertyChangeHandler onValueChanged(Runnable f) { return new QPropertyChangeHandler(bindingData(), f); } /** * Subscribes the given functor f as a callback that is called immediately and whenever the value of the property changes in the future. * @param f * @return property change handler * @see QPropertyChangeHandler * @see #onValueChanged(Runnable) */ @QtUninvokable public QPropertyChangeHandler subscribe(Runnable f) { f.run(); return onValueChanged(f); } /** *

Registers the given functor f as a callback that shall be called whenever the value of the bindable changes.

*

The returned property notifier object keeps track of the registration. * As long as the notifier is alive i.e. as long as a reference to the {@link QPropertyNotifier} instance exists, * the callback remains installed. When the garbage collection deletes the instance, the callback is de-registered.

* @param f * @return property notifier * @see QPropertyNotifier */ @io.qt.QtUninvokable public QPropertyNotifier addNotifier(Runnable f) { return new QPropertyNotifier(bindingData(), f); } @QtUninvokable QPropertyBindingData bindingData() { return bindingStorage().bindingData(this, true); } @QtUninvokable private void notifyProperty(QPropertyBindingData binding){ if (binding!=null) binding.notifyObservers(this); emitSignal(); } @QtUninvokable public final void notifyProperty() { QPropertyBindingData bd = bindingStorage().bindingData(this); notifyProperty(bd); } private Runnable signal = () -> { io.qt.internal.QtJambiPropertyInfo result = QMetaObject.AbstractSignal.analyzeProperty(QObject.this, this); QMetaMethod notifySignal; if(result.property!=null) { notifySignal = result.notifySignal; }else { notifySignal = findNotifySignalByBindables(QObject.this, result.reflectedField, this); } if(notifySignal==null) { this.signal = NO_SIGNAL; }else{ if(notifySignal.parameterCount()==0) this.signal = new EmitSignal0(notifySignal.methodIndex(), notifySignal.enclosingMetaObject().metaObjectPointer); else this.signal = new EmitSignal1<>(notifySignal.methodIndex(), notifySignal.enclosingMetaObject().metaObjectPointer, this::getValueBypassingBindings); } this.signal.run(); }; @QtUninvokable private boolean hasSignal() { return this.signal != NO_SIGNAL; } @QtUninvokable private void emitSignal() { this.signal.run(); } } /** * QDoubleProperty is primitive-typed version of QProperty<Double>. * @see QProperty */ public class QDoubleProperty extends QDoublePropertyData { /** * Constructs a double-typed property. */ public QDoubleProperty() { super(); } /** * Constructs a double-typed property with the provided initialValue. * @param initialValue */ public QDoubleProperty(double initialValue) { super(initialValue); } /** * Constructs a double-typed property with the provided binding. * @param binding */ public QDoubleProperty(QDoublePropertyBinding binding) { super(); bindingData().setBinding(binding, this); } /** * Constructs a double-typed property with the provided binding. * @param binding */ public QDoubleProperty(QPropertyBinding<@QtPrimitiveType Double> binding) { super(); if(io.qt.core.QDoubleProperty.checkType(binding.valueMetaType())) bindingData().setBinding(binding, this); } /** *

Constructs a double-typed property bound to the provided functor.

* @param functor */ public QDoubleProperty(java.util.function.DoubleSupplier functor) { this(new QDoublePropertyBinding(functor)); } /** * Returns the value of the property. This may evaluate a binding expression that is tied to this property, before returning the value. * @return value */ @QtUninvokable public double value() { bindingStorage().registerDependency(this); return this.getValueBypassingBindings(); } /** *

Assigns newValue to this property and removes the property's associated binding, if present.

* @param newValue */ @QtUninvokable public void setValue(double newValue) { QPropertyBindingData bd = bindingStorage().bindingData(this); if(bd!=null) bd.removeBinding(); if (this.setValueBypassingBindings(newValue)) notifyProperty(bd); } /** *

Associates the value of this property with the provided newBinding expression and returns the previously associated binding.

*

The first time the property value is read, the binding is evaluated. * Whenever a dependency of the binding changes, the binding will be re-evaluated the next time the value of this property is read.

* @param newBinding * @return oldBinding */ @QtUninvokable public QDoublePropertyBinding setBinding(QDoublePropertyBinding newBinding) { QPropertyBindingData bd = bindingData(); QUntypedPropertyBinding oldBinding = bd.setBinding(newBinding, this); notifyProperty(bd); if(oldBinding instanceof QDoublePropertyBinding) return (QDoublePropertyBinding)oldBinding; else return new QDoublePropertyBinding(oldBinding); } /** *

Associates the value of this property with the provided newBinding expression and returns the previously associated binding.

*

The binding's value type ({@link QUntypedPropertyBinding#valueMetaType()}) has to be double, * otherwise the property remains unchanged.

*

The first time the property value is read, the binding is evaluated. * Whenever a dependency of the binding changes, the binding will be re-evaluated the next time the value of this property is read.

* @param newBinding * @return oldBinding */ @QtUninvokable public QDoublePropertyBinding setBinding(QPropertyBinding<@QtPrimitiveType Double> newBinding) { if(!io.qt.core.QDoubleProperty.checkType(newBinding.valueMetaType())) return new QDoublePropertyBinding(); QPropertyBindingData bd = bindingData(); QUntypedPropertyBinding oldBinding = bd.setBinding(newBinding, this); notifyProperty(bd); if(oldBinding instanceof QDoublePropertyBinding) return (QDoublePropertyBinding)oldBinding; else return new QDoublePropertyBinding(oldBinding); } /** *

Associates the value of this property with the provided newBinding expression.

*

The binding's value type ({@link QUntypedPropertyBinding#valueMetaType()}) has to be double, * otherwise the property remains unchanged and the method returns false.

*

The first time the property value is read, the binding is evaluated. * Whenever a dependency of the binding changes, the binding will be re-evaluated the next time the value of this property is read.

*

Returns true if the type of this property is the same as the type the binding function returns; false otherwise.

* @param newBinding * @return true if types match, false otherwise. */ @QtUninvokable public boolean setBinding(QUntypedPropertyBinding newBinding) { if(io.qt.core.QDoubleProperty.checkType(newBinding.valueMetaType())) { QPropertyBindingData bd = bindingData(); bd.setBinding(newBinding, this); notifyProperty(bd); return true; }else { return false; } } /** *

Associates the value of this property with the provided functor and returns the previously associated binding.

*

The first time the property value is read, the binding is evaluated by invoking {@link java.util.function.DoubleSupplier#getAsDouble()} of functor. * Whenever a dependency of the binding changes, the binding will be re-evaluated the next time the value of this property is read.

* @param functor * @return oldBinding */ @QtUninvokable public QDoublePropertyBinding setBinding(java.util.function.DoubleSupplier functor) { return setBinding(new QDoublePropertyBinding(functor)); } @QtUninvokable private QDoublePropertyBinding makeBinding() { return new QDoublePropertyBinding(this::value); } /** * Checks if the property has a binding. * @return true if the property has a binding, false otherwise. */ @QtUninvokable public boolean hasBinding() { QPropertyBindingData bd = bindingStorage().bindingData(this); return bd!=null && bd.hasBinding(); } /** * Returns the binding expression that is associated with this property. * A default constructed {@link QDoublePropertyBinding} will be returned if no such association exists. * @return binding */ @QtUninvokable public QDoublePropertyBinding binding() { return new QDoublePropertyBinding(this); } /** *

Disassociates the binding expression from this property and returns it.

*

After calling this function, the value of the property will only change if you assign a new value to it, or when a new binding is set.

* @return the removed binding */ @QtUninvokable public QDoublePropertyBinding takeBinding() { return setBinding(new QDoublePropertyBinding()); } /** *

Registers the given functor f as a callback that shall be called whenever the value of the property changes.

*

The returned property change handler object keeps track of the registration. * As long as the change handler is alive i.e. as long as a reference to the {@link QPropertyChangeHandler} instance exists, * the callback remains installed. When the garbage collection deletes the instance, the callback is de-registered.

* @param f * @return property change handler * @see QPropertyChangeHandler */ @QtUninvokable public QPropertyChangeHandler onValueChanged(Runnable f) { return new QPropertyChangeHandler(bindingData(), f); } /** * Subscribes the given functor f as a callback that is called immediately and whenever the value of the property changes in the future. * @param f * @return property change handler * @see QPropertyChangeHandler * @see #onValueChanged(Runnable) */ @QtUninvokable public QPropertyChangeHandler subscribe(Runnable f) { f.run(); return onValueChanged(f); } /** *

Registers the given functor f as a callback that shall be called whenever the value of the bindable changes.

*

The returned property notifier object keeps track of the registration. * As long as the notifier is alive i.e. as long as a reference to the {@link QPropertyNotifier} instance exists, * the callback remains installed. When the garbage collection deletes the instance, the callback is de-registered.

* @param f * @return property notifier * @see QPropertyNotifier */ @io.qt.QtUninvokable public QPropertyNotifier addNotifier(Runnable f) { return new QPropertyNotifier(bindingData(), f); } @QtUninvokable QPropertyBindingData bindingData() { return bindingStorage().bindingData(this, true); } @QtUninvokable private void notifyProperty(QPropertyBindingData binding){ if (binding!=null) binding.notifyObservers(this); emitSignal(); } @QtUninvokable public final void notifyProperty() { QPropertyBindingData bd = bindingStorage().bindingData(this); notifyProperty(bd); } private Runnable signal = () -> { io.qt.internal.QtJambiPropertyInfo result = QMetaObject.AbstractSignal.analyzeProperty(QObject.this, this); QMetaMethod notifySignal; if(result.property!=null) { notifySignal = result.notifySignal; }else { notifySignal = findNotifySignalByBindables(QObject.this, result.reflectedField, this); } if(notifySignal==null) { this.signal = NO_SIGNAL; }else{ if(notifySignal.parameterCount()==0) this.signal = new EmitSignal0(notifySignal.methodIndex(), notifySignal.enclosingMetaObject().metaObjectPointer); else this.signal = new EmitSignal1<>(notifySignal.methodIndex(), notifySignal.enclosingMetaObject().metaObjectPointer, this::getValueBypassingBindings); } this.signal.run(); }; @QtUninvokable private boolean hasSignal() { return this.signal != NO_SIGNAL; } @QtUninvokable private void emitSignal() { this.signal.run(); } } /** * QCharProperty is primitive-typed version of QProperty<Character>. * @see QProperty */ public class QCharProperty extends QCharPropertyData { /** * Constructs a char-typed property. */ public QCharProperty() { super(); } /** * Constructs a char-typed property with the provided initialValue. * @param initialValue */ public QCharProperty(char initialValue) { super(initialValue); } /** * Constructs a char-typed property with the provided binding. * @param binding */ public QCharProperty(QCharPropertyBinding binding) { super(); bindingData().setBinding(binding, this); } /** * Constructs a char-typed property with the provided binding. * @param binding */ public QCharProperty(QPropertyBinding<@QtPrimitiveType Character> binding) { super(); if(io.qt.core.QCharProperty.checkType(binding.valueMetaType())) bindingData().setBinding(binding, this); } /** *

Constructs a char-typed property bound to the provided functor.

* @param functor */ public QCharProperty(io.qt.QtUtilities.CharSupplier functor) { this(new QCharPropertyBinding(functor)); } /** * Returns the value of the property. This may evaluate a binding expression that is tied to this property, before returning the value. * @return value */ @QtUninvokable public char value() { bindingStorage().registerDependency(this); return this.getValueBypassingBindings(); } /** *

Assigns newValue to this property and removes the property's associated binding, if present.

* @param newValue */ @QtUninvokable public void setValue(char newValue) { QPropertyBindingData bd = bindingStorage().bindingData(this); if(bd!=null) bd.removeBinding(); if (this.setValueBypassingBindings(newValue)) notifyProperty(bd); } /** *

Associates the value of this property with the provided newBinding expression and returns the previously associated binding.

*

The first time the property value is read, the binding is evaluated. * Whenever a dependency of the binding changes, the binding will be re-evaluated the next time the value of this property is read.

* @param newBinding * @return oldBinding */ @QtUninvokable public QCharPropertyBinding setBinding(QCharPropertyBinding newBinding) { QPropertyBindingData bd = bindingData(); QUntypedPropertyBinding oldBinding = bd.setBinding(newBinding, this); notifyProperty(bd); if(oldBinding instanceof QCharPropertyBinding) return (QCharPropertyBinding)oldBinding; else return new QCharPropertyBinding(oldBinding); } /** *

Associates the value of this property with the provided newBinding expression and returns the previously associated binding.

*

The binding's value type ({@link QUntypedPropertyBinding#valueMetaType()}) has to be char, * otherwise the property remains unchanged.

*

The first time the property value is read, the binding is evaluated. * Whenever a dependency of the binding changes, the binding will be re-evaluated the next time the value of this property is read.

* @param newBinding * @return oldBinding */ @QtUninvokable public QCharPropertyBinding setBinding(QPropertyBinding<@QtPrimitiveType Character> newBinding) { if(!io.qt.core.QCharProperty.checkType(newBinding.valueMetaType())) return new QCharPropertyBinding(); QPropertyBindingData bd = bindingData(); QUntypedPropertyBinding oldBinding = bd.setBinding(newBinding, this); notifyProperty(bd); if(oldBinding instanceof QCharPropertyBinding) return (QCharPropertyBinding)oldBinding; else return new QCharPropertyBinding(oldBinding); } /** *

Associates the value of this property with the provided newBinding expression.

*

The binding's value type ({@link QUntypedPropertyBinding#valueMetaType()}) has to be char, * otherwise the property remains unchanged and the method returns false.

*

The first time the property value is read, the binding is evaluated. * Whenever a dependency of the binding changes, the binding will be re-evaluated the next time the value of this property is read.

*

Returns true if the type of this property is the same as the type the binding function returns; false otherwise.

* @param newBinding * @return true if types match, false otherwise. */ @QtUninvokable public boolean setBinding(QUntypedPropertyBinding newBinding) { if(io.qt.core.QCharProperty.checkType(newBinding.valueMetaType())) { QPropertyBindingData bd = bindingData(); bd.setBinding(newBinding, this); notifyProperty(bd); return true; }else { return false; } } /** *

Associates the value of this property with the provided functor and returns the previously associated binding.

*

The first time the property value is read, the binding is evaluated by invoking {@link io.qt.QtUtilities.CharSupplier#getAsChar()} of functor. * Whenever a dependency of the binding changes, the binding will be re-evaluated the next time the value of this property is read.

* @param functor * @return oldBinding */ @QtUninvokable public QCharPropertyBinding setBinding(io.qt.QtUtilities.CharSupplier functor) { return setBinding(new QCharPropertyBinding(functor)); } @QtUninvokable private QCharPropertyBinding makeBinding() { return new QCharPropertyBinding(this::value); } /** * Checks if the property has a binding. * @return true if the property has a binding, false otherwise. */ @QtUninvokable public boolean hasBinding() { QPropertyBindingData bd = bindingStorage().bindingData(this); return bd!=null && bd.hasBinding(); } /** * Returns the binding expression that is associated with this property. * A default constructed {@link QCharPropertyBinding} will be returned if no such association exists. * @return binding */ @QtUninvokable public QCharPropertyBinding binding() { return new QCharPropertyBinding(this); } /** *

Disassociates the binding expression from this property and returns it.

*

After calling this function, the value of the property will only change if you assign a new value to it, or when a new binding is set.

* @return the removed binding */ @QtUninvokable public QCharPropertyBinding takeBinding() { return setBinding(new QCharPropertyBinding()); } /** *

Registers the given functor f as a callback that shall be called whenever the value of the property changes.

*

The returned property change handler object keeps track of the registration. * As long as the change handler is alive i.e. as long as a reference to the {@link QPropertyChangeHandler} instance exists, * the callback remains installed. When the garbage collection deletes the instance, the callback is de-registered.

* @param f * @return property change handler * @see QPropertyChangeHandler */ @QtUninvokable public QPropertyChangeHandler onValueChanged(Runnable f) { return new QPropertyChangeHandler(bindingData(), f); } /** * Subscribes the given functor f as a callback that is called immediately and whenever the value of the property changes in the future. * @param f * @return property change handler * @see QPropertyChangeHandler * @see #onValueChanged(Runnable) */ @QtUninvokable public QPropertyChangeHandler subscribe(Runnable f) { f.run(); return onValueChanged(f); } /** *

Registers the given functor f as a callback that shall be called whenever the value of the bindable changes.

*

The returned property notifier object keeps track of the registration. * As long as the notifier is alive i.e. as long as a reference to the {@link QPropertyNotifier} instance exists, * the callback remains installed. When the garbage collection deletes the instance, the callback is de-registered.

* @param f * @return property notifier * @see QPropertyNotifier */ @io.qt.QtUninvokable public QPropertyNotifier addNotifier(Runnable f) { return new QPropertyNotifier(bindingData(), f); } @QtUninvokable QPropertyBindingData bindingData() { return bindingStorage().bindingData(this, true); } @QtUninvokable private void notifyProperty(QPropertyBindingData binding){ if (binding!=null) binding.notifyObservers(this); emitSignal(); } @QtUninvokable public final void notifyProperty() { QPropertyBindingData bd = bindingStorage().bindingData(this); notifyProperty(bd); } private Runnable signal = () -> { io.qt.internal.QtJambiPropertyInfo result = QMetaObject.AbstractSignal.analyzeProperty(QObject.this, this); QMetaMethod notifySignal; if(result.property!=null) { notifySignal = result.notifySignal; }else { notifySignal = findNotifySignalByBindables(QObject.this, result.reflectedField, this); } if(notifySignal==null) { this.signal = NO_SIGNAL; }else{ if(notifySignal.parameterCount()==0) this.signal = new EmitSignal0(notifySignal.methodIndex(), notifySignal.enclosingMetaObject().metaObjectPointer); else this.signal = new EmitSignal1<>(notifySignal.methodIndex(), notifySignal.enclosingMetaObject().metaObjectPointer, this::getValueBypassingBindings); } this.signal.run(); }; @QtUninvokable private boolean hasSignal() { return this.signal != NO_SIGNAL; } @QtUninvokable private void emitSignal() { this.signal.run(); } } private abstract class QAbstractComputedProperty extends QUntypedPropertyData { @QtUninvokable public final boolean hasBinding() { return false; } /** *

Registers the given functor f as a callback that shall be called whenever the value of the property changes.

*

The returned property change handler object keeps track of the registration. * As long as the change handler is alive i.e. as long as a reference to the {@link QPropertyChangeHandler} instance exists, * the callback remains installed. When the garbage collection deletes the instance, the callback is de-registered.

* @param f * @return property change handler * @see QPropertyChangeHandler */ @QtUninvokable public final QPropertyChangeHandler onValueChanged(Runnable f) { return new QPropertyChangeHandler(bindingData(), f); } /** * Subscribes the given functor f as a callback that is called immediately and whenever the value of the property changes in the future. * @param f * @return property change handler * @see QPropertyChangeHandler * @see #onValueChanged(Runnable) */ @QtUninvokable public final QPropertyChangeHandler subscribe(Runnable f) { f.run(); return onValueChanged(f); } /** *

Registers the given functor f as a callback that shall be called whenever the value of the bindable changes.

*

The returned property notifier object keeps track of the registration. * As long as the notifier is alive i.e. as long as a reference to the {@link QPropertyNotifier} instance exists, * the callback remains installed. When the garbage collection deletes the instance, the callback is de-registered.

* @param f * @return property notifier * @see QPropertyNotifier */ @io.qt.QtUninvokable public QPropertyNotifier addNotifier(Runnable f) { return new QPropertyNotifier(bindingData(), f); } @QtUninvokable final QPropertyBindingData bindingData() { return bindingStorage().bindingData(this, true); } @QtUninvokable public abstract QMetaType valueMetaType(); @QtUninvokable public final void notifyProperty() { // computed property can't store a binding, so there's nothing to mark io.qt.core.QBindingStorage storage = bindingStorage(); QPropertyBindingData bd = storage.bindingData(this, false); if (bd!=null) bd.notifyObservers(this, bindingStorage()); } } /** *

The QComputedProperty class is a template class for externally computed/stored values. * Create an instance of QComputedProperty by providing a value supplier.

*

Example:

* * private final QComputedProperty<QColor> color = new QComputedProperty<>(this::computeOptimalColor); * *

The Java type QComputedProperty corresponds to the C++ type QObjectComputedProperty.

*

For primitive-typed implementations see:

*
    *
  • {@link QComputedBooleanProperty}
  • *
  • {@link QComputedByteProperty}
  • *
  • {@link QComputedShortProperty}
  • *
  • {@link QComputedIntProperty}
  • *
  • {@link QComputedLongProperty}
  • *
  • {@link QComputedFloatProperty}
  • *
  • {@link QComputedDoubleProperty}
  • *
  • {@link QComputedCharProperty}
  • *
*/ public final class QComputedProperty extends QAbstractComputedProperty { private final QtUtilities.Supplier getter; /** * Constructs a computed-value property whose type corresponds to the given value supplier. * @param getter supplying the computed value */ public QComputedProperty(QtUtilities.Supplier getter) { super(); QPropertyBinding.analyzeMetaType(getter); this.getter = getter; } /** * Returns the value of the property computed by the given getter. * @return value */ @QtUninvokable public T value() { bindingStorage().registerDependency(this); return getter.get(); } @QtUninvokable public final QMetaType valueMetaType() { return QPropertyBinding.analyzeMetaType(getter); } } /** * QComputedBooleanProperty is primitive-typed version of QComputedProperty<Boolean>. * @see QComputedProperty */ public class QComputedBooleanProperty extends QAbstractComputedProperty { private final java.util.function.BooleanSupplier getter; /** * Constructs a boolean-typed computed-value property according to the given value supplier. * @param getter supplying the computed value */ public QComputedBooleanProperty(java.util.function.BooleanSupplier getter) { super(); this.getter = getter; } /** * Returns the value of the property computed by the given getter. * @return value */ @QtUninvokable public boolean value() { bindingStorage().registerDependency(this); return getter.getAsBoolean(); } @QtUninvokable public final QMetaType valueMetaType() { return new QMetaType(QMetaType.Type.Bool); } } /** * QComputedByteProperty is primitive-typed version of QComputedProperty<Byte>. * @see QComputedProperty */ public class QComputedByteProperty extends QAbstractComputedProperty { private final QtUtilities.ByteSupplier getter; /** * Constructs a byte-typed computed-value property according to the given value supplier. * @param getter supplying the computed value */ public QComputedByteProperty(QtUtilities.ByteSupplier getter) { super(); this.getter = getter; } /** * Returns the value of the property computed by the given getter. * @return value */ @QtUninvokable public byte value() { bindingStorage().registerDependency(this); return getter.getAsByte(); } @QtUninvokable private QBytePropertyBinding makeBinding() { return new QBytePropertyBinding(this::value); } @QtUninvokable public final QMetaType valueMetaType() { return new QMetaType(QMetaType.Type.SChar); } } /** * QComputedShortProperty is primitive-typed version of QComputedProperty<Short>. * @see QComputedProperty */ public class QComputedShortProperty extends QAbstractComputedProperty { private final QtUtilities.ShortSupplier getter; /** * Constructs a short-typed computed-value property according to the given value supplier. * @param getter supplying the computed value */ public QComputedShortProperty(QtUtilities.ShortSupplier getter) { super(); this.getter = getter; } /** * Returns the value of the property computed by the given getter. * @return value */ @QtUninvokable public short value() { bindingStorage().registerDependency(this); return getter.getAsShort(); } @QtUninvokable private QShortPropertyBinding makeBinding() { return new QShortPropertyBinding(this::value); } @QtUninvokable public final QMetaType valueMetaType() { return new QMetaType(QMetaType.Type.Short); } } /** * QComputedIntProperty is primitive-typed version of QComputedProperty<Integer>. * @see QComputedProperty */ public class QComputedIntProperty extends QAbstractComputedProperty { private final java.util.function.IntSupplier getter; /** * Constructs a int-typed computed-value property according to the given value supplier. * @param getter supplying the computed value */ public QComputedIntProperty(java.util.function.IntSupplier getter) { super(); this.getter = getter; } /** * Returns the value of the property computed by the given getter. * @return value */ @QtUninvokable public int value() { bindingStorage().registerDependency(this); return getter.getAsInt(); } @QtUninvokable private QIntPropertyBinding makeBinding() { return new QIntPropertyBinding(this::value); } @QtUninvokable public final QMetaType valueMetaType() { return new QMetaType(QMetaType.Type.Int); } } /** * QComputedLongProperty is primitive-typed version of QComputedProperty<Long>. * @see QComputedProperty */ public class QComputedLongProperty extends QAbstractComputedProperty { private final java.util.function.LongSupplier getter; /** * Constructs a long-typed computed-value property according to the given value supplier. * @param getter supplying the computed value */ public QComputedLongProperty(java.util.function.LongSupplier getter) { super(); this.getter = getter; } /** * Returns the value of the property computed by the given getter. * @return value */ @QtUninvokable public long value() { bindingStorage().registerDependency(this); return getter.getAsLong(); } @QtUninvokable private QLongPropertyBinding makeBinding() { return new QLongPropertyBinding(this::value); } @QtUninvokable public final QMetaType valueMetaType() { return new QMetaType(QMetaType.Type.LongLong); } } /** * QComputedFloatProperty is primitive-typed version of QComputedProperty<Float>. * @see QComputedProperty */ public class QComputedFloatProperty extends QAbstractComputedProperty { private final QtUtilities.FloatSupplier getter; /** * Constructs a float-typed computed-value property according to the given value supplier. * @param getter supplying the computed value */ public QComputedFloatProperty(QtUtilities.FloatSupplier getter) { super(); this.getter = getter; } /** * Returns the value of the property computed by the given getter. * @return value */ @QtUninvokable public float value() { bindingStorage().registerDependency(this); return getter.getAsFloat(); } @QtUninvokable private QFloatPropertyBinding makeBinding() { return new QFloatPropertyBinding(this::value); } @QtUninvokable public final QMetaType valueMetaType() { return new QMetaType(QMetaType.Type.Float); } } /** * QComputedDoubleProperty is primitive-typed version of QComputedProperty<Double>. * @see QComputedProperty */ public class QComputedDoubleProperty extends QAbstractComputedProperty { private final java.util.function.DoubleSupplier getter; /** * Constructs a double-typed computed-value property according to the given value supplier. * @param getter supplying the computed value */ public QComputedDoubleProperty(java.util.function.DoubleSupplier getter) { super(); this.getter = getter; } /** * Returns the value of the property computed by the given getter. * @return value */ @QtUninvokable public double value() { bindingStorage().registerDependency(this); return getter.getAsDouble(); } @QtUninvokable private QDoublePropertyBinding makeBinding() { return new QDoublePropertyBinding(this::value); } @QtUninvokable public final QMetaType valueMetaType() { return new QMetaType(QMetaType.Type.Double); } } /** * QComputedCharProperty is primitive-typed version of QComputedProperty<Character>. * @see QComputedProperty */ public class QComputedCharProperty extends QAbstractComputedProperty { private final QtUtilities.CharSupplier getter; /** * Constructs a char-typed computed-value property according to the given value supplier. * @param getter supplying the computed value */ public QComputedCharProperty(QtUtilities.CharSupplier getter) { super(); this.getter = getter; } /** * Returns the value of the property computed by the given getter. * @return value */ @QtUninvokable public char value() { bindingStorage().registerDependency(this); return getter.getAsChar(); } @QtUninvokable private QCharPropertyBinding makeBinding() { return new QCharPropertyBinding(this::value); } @QtUninvokable public final QMetaType valueMetaType() { return new QMetaType(QMetaType.Type.QChar); } } @Override @io.qt.QtUninvokable public String toString() { return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private static native String toString_native(long __this_nativeId); }









The QProperty class enables automatic property bindings. * The Java type QProperty corresponds to the C++ type QObjectBindableProperty.