javauis/eswt_qt/org.eclipse.swt/Eclipse SWT/qt/org/eclipse/swt/widgets/TableItem.java
changeset 76 4ad59aaee882
parent 35 85266cc22c7f
equal deleted inserted replaced
69:773449708c84 76:4ad59aaee882
   210             OS.QTableWidget_setItem(parent.topHandle, index, 0, checkBoxHandle);        
   210             OS.QTableWidget_setItem(parent.topHandle, index, 0, checkBoxHandle);        
   211         }  else if(radioButtonHandle == 0 && (parent.style & SWT.RADIO ) != 0 && (parent.style & SWT.SINGLE ) != 0){
   211         }  else if(radioButtonHandle == 0 && (parent.style & SWT.RADIO ) != 0 && (parent.style & SWT.SINGLE ) != 0){
   212             radioButtonHandle = OS.QRadioButton_new();
   212             radioButtonHandle = OS.QRadioButton_new();
   213             OS.QObject_setProperty(radioButtonHandle, "swt_obj_idx", OS.QObject_property(parent.topHandle, "swt_obj_idx"));
   213             OS.QObject_setProperty(radioButtonHandle, "swt_obj_idx", OS.QObject_property(parent.topHandle, "swt_obj_idx"));
   214             
   214             
   215             int signalProxy = OS.SignalHandler_new(radioButtonHandle, OS.QSIGNAL_RELEASED);
       
   216             OS.QObject_connectOrThrow(radioButtonHandle, "released()", signalProxy, "widgetSignal()", OS.QT_AUTOCONNECTION);
       
   217             
       
   218             OS.QWidget_setFocusPolicy(radioButtonHandle, OS.QT_FOCUSPOLICY_NOFOCUS);
   215             OS.QWidget_setFocusPolicy(radioButtonHandle, OS.QT_FOCUSPOLICY_NOFOCUS);
   219             OS.QTableWidget_setCellWidget(parent.topHandle, index, 0, radioButtonHandle);
   216             OS.QTableWidget_setCellWidget(parent.topHandle, index, 0, radioButtonHandle);
   220         }
   217         }
   221         
   218         
   222         for (int i = 0; i < columnCount; i++) {
   219         for (int i = 0; i < columnCount; i++) {