void hookEvents_pp() { super.hookEvents_pp(); if ((style & SWT.BAR) == 0) { int aboutToHideProxy = OS.SignalHandler_new(handle, OS.QSIGNAL_ABOUTTOHIDE); OS.QObject_connectOrThrow( handle, "aboutToHide()", aboutToHideProxy, "widgetSignal()", OS.QT_AUTOCONNECTION); int aboutToShowProxy = OS.SignalHandler_new(handle, OS.QSIGNAL_ABOUTTOSHOW); OS.QObject_connectOrThrow( handle, "aboutToShow()", aboutToShowProxy, "widgetSignal()", OS.QT_AUTOCONNECTION); } }
void hookEvents_pp() { super.hookEvents_pp(); int textChangedProxy = OS.SignalHandler_new(topHandle, OS.QSIGNAL_TEXT_CHANGED); if (variant == TextUtils.LINE_EDIT) { OS.QObject_connectOrThrow( topHandle, "textChanged(const QString&)", textChangedProxy, "widgetSignal(const QString&)", OS.QT_AUTOCONNECTION); int returnPressedProxy = OS.SignalHandler_new(topHandle, OS.QSIGNAL_RETURN_PRESSED); OS.QObject_connectOrThrow( topHandle, "returnPressed()", returnPressedProxy, "widgetSignal()", OS.QT_AUTOCONNECTION); } else { OS.QObject_connectOrThrow( topHandle, "textChanged()", textChangedProxy, "widgetSignal()", OS.QT_AUTOCONNECTION); } }