javauis/eswt_qt/org.eclipse.swt/Eclipse SWT/qt/org/eclipse/swt/widgets/Composite.java
changeset 47 f40128debb5d
parent 35 85266cc22c7f
child 61 bf7ee68962da
equal deleted inserted replaced
35:85266cc22c7f 47:f40128debb5d
   508         height = Math.max (height, rect.y + rect.height);
   508         height = Math.max (height, rect.y + rect.height);
   509     }
   509     }
   510     return new Point (width, height);
   510     return new Point (width, height);
   511 }
   511 }
   512 
   512 
   513 void qt_swt_event_widgetResized_pp(int widgetHandle, int oldWidth, int oldHeight, int width, int height) {
   513 void qt_swt_event_widgetResized_pp(int widgetHandle, int oldWidth, int oldHeight, int width, int height, boolean sendResizeEvent) {
   514     if (isDisposed ()) return;
   514     if (isDisposed ()) return;
   515     if((widgetHandle == handle) && isMirrored()) {
   515     if((widgetHandle == handle) && isMirrored()) {
   516         // In real coordinate system the children need to be moved so that they
   516         // In real coordinate system the children need to be moved so that they
   517         // appear stationary in the emulated mirrored coordinate system. 
   517         // appear stationary in the emulated mirrored coordinate system. 
   518         final int dx = width - oldWidth;
   518         final int dx = width - oldWidth;
   531             } finally {
   531             } finally {
   532                 Display.blockedQtEventType = OS.QEVENT_NONE;
   532                 Display.blockedQtEventType = OS.QEVENT_NONE;
   533             }
   533             }
   534         }
   534         }
   535     }
   535     }
   536     super.qt_swt_event_widgetResized_pp(widgetHandle, oldWidth, oldHeight, width, height);
   536     super.qt_swt_event_widgetResized_pp(widgetHandle, oldWidth, oldHeight, width, height, sendResizeEvent);
   537     if (layout != null) {
   537     if (layout != null) {
   538         markLayout (false, false);
   538         markLayout (false, false);
   539         updateLayout (false);
   539         updateLayout (false);
   540     }
   540     }
   541 }
   541 }