javauis/eswt_qt/org.eclipse.swt/Eclipse SWT/qt/org/eclipse/swt/widgets/MenuItem.java
changeset 35 85266cc22c7f
parent 21 2a9601315dfc
equal deleted inserted replaced
26:dc7c549001d5 35:85266cc22c7f
   322 }
   322 }
   323 
   323 
   324 void hookEvents_pp () {
   324 void hookEvents_pp () {
   325     super.hookEvents_pp ();
   325     super.hookEvents_pp ();
   326     if ((style & SWT.CASCADE) == 0 ){
   326     if ((style & SWT.CASCADE) == 0 ){
   327         int triggeredProxy = OS.SignalHandler_new(handle, display, OS.QSIGNAL_TRIGGERED);
   327         int triggeredProxy = OS.SignalHandler_new(handle, OS.QSIGNAL_TRIGGERED);
   328         OS.QObject_connectOrThrow(handle, "triggered(bool)", triggeredProxy, "widgetSignal(bool)", OS.QT_AUTOCONNECTION);
   328         OS.QObject_connectOrThrow(handle, "triggered(bool)", triggeredProxy, "widgetSignal(bool)", OS.QT_AUTOCONNECTION);
   329     }
   329     }
   330     int hoveredProxy = OS.SignalHandler_new(handle, display, OS.QSIGNAL_HOVER );
   330     int hoveredProxy = OS.SignalHandler_new(handle, OS.QSIGNAL_HOVER );
   331     OS.QObject_connectOrThrow(handle, "hovered()", hoveredProxy, "widgetSignal()", OS.QT_AUTOCONNECTION);
   331     OS.QObject_connectOrThrow(handle, "hovered()", hoveredProxy, "widgetSignal()", OS.QT_AUTOCONNECTION);
   332 }
   332 }
   333 
   333 
   334 /**
   334 /**
   335  * Returns <code>true</code> if the receiver is enabled and all
   335  * Returns <code>true</code> if the receiver is enabled and all