104 |
104 |
105 case QEvent::ShowToParent: |
105 case QEvent::ShowToParent: |
106 return new QEvent(*e); |
106 return new QEvent(*e); |
107 case QEvent::HideToParent: |
107 case QEvent::HideToParent: |
108 return new QEvent(*e); |
108 return new QEvent(*e); |
|
109 #ifndef QT_NO_WHEELEVENT |
109 case QEvent::Wheel: |
110 case QEvent::Wheel: |
110 return new QWheelEvent(*static_cast<QWheelEvent*>(e)); |
111 return new QWheelEvent(*static_cast<QWheelEvent*>(e)); |
|
112 #endif //QT_NO_WHEELEVENT |
111 case QEvent::WindowTitleChange: |
113 case QEvent::WindowTitleChange: |
112 return new QEvent(*e); |
114 return new QEvent(*e); |
113 case QEvent::WindowIconChange: |
115 case QEvent::WindowIconChange: |
114 return new QEvent(*e); |
116 return new QEvent(*e); |
115 case QEvent::ApplicationWindowIconChange: |
117 case QEvent::ApplicationWindowIconChange: |
188 return new QContextMenuEvent(*static_cast<QContextMenuEvent*>(e)); |
190 return new QContextMenuEvent(*static_cast<QContextMenuEvent*>(e)); |
189 case QEvent::InputMethod: |
191 case QEvent::InputMethod: |
190 return new QInputMethodEvent(*static_cast<QInputMethodEvent*>(e)); |
192 return new QInputMethodEvent(*static_cast<QInputMethodEvent*>(e)); |
191 case QEvent::AccessibilityPrepare: |
193 case QEvent::AccessibilityPrepare: |
192 return new QEvent(*e); |
194 return new QEvent(*e); |
|
195 #ifndef QT_NO_TABLETEVENT |
193 case QEvent::TabletMove: |
196 case QEvent::TabletMove: |
194 return new QTabletEvent(*static_cast<QTabletEvent*>(e)); |
197 return new QTabletEvent(*static_cast<QTabletEvent*>(e)); |
|
198 #endif //QT_NO_TABLETEVENT |
195 case QEvent::LocaleChange: |
199 case QEvent::LocaleChange: |
196 return new QEvent(*e); |
200 return new QEvent(*e); |
197 case QEvent::LanguageChange: |
201 case QEvent::LanguageChange: |
198 return new QEvent(*e); |
202 return new QEvent(*e); |
199 case QEvent::LayoutDirectionChange: |
203 case QEvent::LayoutDirectionChange: |
200 return new QEvent(*e); |
204 return new QEvent(*e); |
201 case QEvent::Style: |
205 case QEvent::Style: |
202 return new QEvent(*e); |
206 return new QEvent(*e); |
|
207 #ifndef QT_NO_TABLETEVENT |
203 case QEvent::TabletPress: |
208 case QEvent::TabletPress: |
204 return new QTabletEvent(*static_cast<QTabletEvent*>(e)); |
209 return new QTabletEvent(*static_cast<QTabletEvent*>(e)); |
205 case QEvent::TabletRelease: |
210 case QEvent::TabletRelease: |
206 return new QTabletEvent(*static_cast<QTabletEvent*>(e)); |
211 return new QTabletEvent(*static_cast<QTabletEvent*>(e)); |
|
212 #endif //QT_NO_TABLETEVENT |
207 case QEvent::OkRequest: |
213 case QEvent::OkRequest: |
208 return new QEvent(*e); |
214 return new QEvent(*e); |
209 case QEvent::HelpRequest: |
215 case QEvent::HelpRequest: |
210 return new QEvent(*e); |
216 return new QEvent(*e); |
211 |
217 |
236 |
242 |
237 case QEvent::ToolTip: |
243 case QEvent::ToolTip: |
238 return new QHelpEvent(*static_cast<QHelpEvent*>(e)); |
244 return new QHelpEvent(*static_cast<QHelpEvent*>(e)); |
239 case QEvent::WhatsThis: |
245 case QEvent::WhatsThis: |
240 return new QHelpEvent(*static_cast<QHelpEvent*>(e)); |
246 return new QHelpEvent(*static_cast<QHelpEvent*>(e)); |
|
247 #ifndef QT_NO_STATUSTIP |
241 case QEvent::StatusTip: |
248 case QEvent::StatusTip: |
242 return new QStatusTipEvent(*static_cast<QStatusTipEvent*>(e)); |
249 return new QStatusTipEvent(*static_cast<QStatusTipEvent*>(e)); |
|
250 #endif //QT_NO_STATUSTIP |
243 #ifndef QT_NO_ACTION |
251 #ifndef QT_NO_ACTION |
244 case QEvent::ActionChanged: |
252 case QEvent::ActionChanged: |
245 case QEvent::ActionAdded: |
253 case QEvent::ActionAdded: |
246 case QEvent::ActionRemoved: |
254 case QEvent::ActionRemoved: |
247 return new QActionEvent(*static_cast<QActionEvent*>(e)); |
255 return new QActionEvent(*static_cast<QActionEvent*>(e)); |
248 #endif |
256 #endif |
249 case QEvent::FileOpen: |
257 case QEvent::FileOpen: |
250 return new QFileOpenEvent(*static_cast<QFileOpenEvent*>(e)); |
258 return new QFileOpenEvent(*static_cast<QFileOpenEvent*>(e)); |
251 |
259 |
|
260 #ifndef QT_NO_SHORTCUT |
252 case QEvent::Shortcut: |
261 case QEvent::Shortcut: |
253 return new QShortcutEvent(*static_cast<QShortcutEvent*>(e)); |
262 return new QShortcutEvent(*static_cast<QShortcutEvent*>(e)); |
|
263 #endif //QT_NO_SHORTCUT |
254 case QEvent::ShortcutOverride: |
264 case QEvent::ShortcutOverride: |
255 return new QKeyEvent(*static_cast<QKeyEvent*>(e)); |
265 return new QKeyEvent(*static_cast<QKeyEvent*>(e)); |
256 |
266 |
257 #ifdef QT3_SUPPORT |
267 #ifdef QT3_SUPPORT |
258 case QEvent::Accel: |
268 case QEvent::Accel: |
261 case QEvent::AccelAvailable: |
271 case QEvent::AccelAvailable: |
262 Q_ASSERT_X(false, "cloneEvent()", "not implemented"); |
272 Q_ASSERT_X(false, "cloneEvent()", "not implemented"); |
263 break; |
273 break; |
264 #endif |
274 #endif |
265 |
275 |
|
276 #ifndef QT_NO_WHATSTHIS |
266 case QEvent::WhatsThisClicked: |
277 case QEvent::WhatsThisClicked: |
267 return new QWhatsThisClickedEvent(*static_cast<QWhatsThisClickedEvent*>(e)); |
278 return new QWhatsThisClickedEvent(*static_cast<QWhatsThisClickedEvent*>(e)); |
268 |
279 #endif //QT_NO_WHATSTHIS |
|
280 |
|
281 #ifndef QT_NO_TOOLBAR |
269 case QEvent::ToolBarChange: |
282 case QEvent::ToolBarChange: |
270 return new QToolBarChangeEvent(*static_cast<QToolBarChangeEvent*>(e)); |
283 return new QToolBarChangeEvent(*static_cast<QToolBarChangeEvent*>(e)); |
|
284 #endif //QT_NO_TOOLBAR |
271 |
285 |
272 case QEvent::ApplicationActivate: |
286 case QEvent::ApplicationActivate: |
273 return new QEvent(*e); |
287 return new QEvent(*e); |
274 case QEvent::ApplicationDeactivate: |
288 case QEvent::ApplicationDeactivate: |
275 return new QEvent(*e); |
289 return new QEvent(*e); |
395 return new QEvent(*e); |
409 return new QEvent(*e); |
396 |
410 |
397 case QEvent::DynamicPropertyChange: |
411 case QEvent::DynamicPropertyChange: |
398 return new QDynamicPropertyChangeEvent(*static_cast<QDynamicPropertyChangeEvent*>(e)); |
412 return new QDynamicPropertyChangeEvent(*static_cast<QDynamicPropertyChangeEvent*>(e)); |
399 |
413 |
|
414 #ifndef QT_NO_TABLETEVENT |
400 case QEvent::TabletEnterProximity: |
415 case QEvent::TabletEnterProximity: |
401 case QEvent::TabletLeaveProximity: |
416 case QEvent::TabletLeaveProximity: |
402 return new QTabletEvent(*static_cast<QTabletEvent*>(e)); |
417 return new QTabletEvent(*static_cast<QTabletEvent*>(e)); |
|
418 #endif //QT_NO_TABLETEVENT |
403 |
419 |
404 case QEvent::NonClientAreaMouseMove: |
420 case QEvent::NonClientAreaMouseMove: |
405 case QEvent::NonClientAreaMouseButtonPress: |
421 case QEvent::NonClientAreaMouseButtonPress: |
406 case QEvent::NonClientAreaMouseButtonRelease: |
422 case QEvent::NonClientAreaMouseButtonRelease: |
407 case QEvent::NonClientAreaMouseButtonDblClick: |
423 case QEvent::NonClientAreaMouseButtonDblClick: |