javauis/eswt_qt/org.eclipse.swt/Eclipse SWT/qt/org/eclipse/swt/widgets/Composite.java
equal
deleted
inserted
replaced
112 void checkNoBackground() { |
112 void checkNoBackground() { |
113 if((style & SWT.NO_BACKGROUND) != 0) { |
113 if((style & SWT.NO_BACKGROUND) != 0) { |
114 if(handle != 0) { |
114 if(handle != 0) { |
115 OS.QWidget_setAttribute(handle, OS.QT_WA_NOSYSTEMBACKGROUND, true); |
115 OS.QWidget_setAttribute(handle, OS.QT_WA_NOSYSTEMBACKGROUND, true); |
116 } |
116 } |
|
117 if(topHandle != 0) { |
|
118 OS.QWidget_setAttribute(topHandle, OS.QT_WA_NOSYSTEMBACKGROUND, true); |
|
119 } |
117 } |
120 } |
118 } |
121 } |
119 |
122 |
120 void checkNoFocus() { |
123 void checkNoFocus() { |
121 if((style & SWT.NO_FOCUS) != 0) { |
124 if((style & SWT.NO_FOCUS) != 0) { |
191 handle = OS.QAbstractScrollArea_viewPort(scrollAreaHandle); |
194 handle = OS.QAbstractScrollArea_viewPort(scrollAreaHandle); |
192 |
195 |
193 // Composite by itself must not by default accept focus by clicking. |
196 // Composite by itself must not by default accept focus by clicking. |
194 int policy = OS.QWidget_focusPolicy(topHandle) & ~OS.QT_FOCUSPOLICY_CLICKFOCUS; |
197 int policy = OS.QWidget_focusPolicy(topHandle) & ~OS.QT_FOCUSPOLICY_CLICKFOCUS; |
195 OS.QWidget_setFocusPolicy(topHandle, policy); |
198 OS.QWidget_setFocusPolicy(topHandle, policy); |
|
199 policy = OS.QWidget_focusPolicy(handle) & ~OS.QT_FOCUSPOLICY_CLICKFOCUS; |
|
200 OS.QWidget_setFocusPolicy(handle, policy); |
196 |
201 |
197 // Stand-alone Composites, Shells, Canvases set the CANVAS flag |
202 // Stand-alone Composites, Shells, Canvases set the CANVAS flag |
198 state |= (WidgetState.HANDLE | WidgetState.CANVAS); |
203 state |= (WidgetState.HANDLE | WidgetState.CANVAS); |
199 } |
204 } |
200 |
205 |