Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/widgets/statemachine/qguistatemachine.cpp |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | - | |
5 | - | |
6 | - | |
7 | __attribute__((visibility("default"))) const QStateMachinePrivate::Handler *qcoreStateMachineHandler(); | - |
8 | - | |
9 | static QEvent *cloneEvent(QEvent *e) | - |
10 | { | - |
11 | switch (e->type()) { | - |
12 | case never executed: QEvent::MouseButtonPress:case QEvent::MouseButtonPress: never executed: case QEvent::MouseButtonPress: | 0 |
13 | case never executed: QEvent::MouseButtonRelease:case QEvent::MouseButtonRelease: never executed: case QEvent::MouseButtonRelease: | 0 |
14 | case never executed: QEvent::MouseButtonDblClick:case QEvent::MouseButtonDblClick: never executed: case QEvent::MouseButtonDblClick: | 0 |
15 | case never executed: QEvent::MouseMove:case QEvent::MouseMove: never executed: case QEvent::MouseMove: | 0 |
16 | return never executed: new QMouseEvent(*static_cast<QMouseEvent*>(e));return new QMouseEvent(*static_cast<QMouseEvent*>(e)); never executed: return new QMouseEvent(*static_cast<QMouseEvent*>(e)); | 0 |
17 | case never executed: QEvent::KeyPress:case QEvent::KeyPress: never executed: case QEvent::KeyPress: | 0 |
18 | case never executed: QEvent::KeyRelease:case QEvent::KeyRelease: never executed: case QEvent::KeyRelease: | 0 |
19 | return never executed: new QKeyEvent(*static_cast<QKeyEvent*>(e));return new QKeyEvent(*static_cast<QKeyEvent*>(e)); never executed: return new QKeyEvent(*static_cast<QKeyEvent*>(e)); | 0 |
20 | case never executed: QEvent::FocusIn:case QEvent::FocusIn: never executed: case QEvent::FocusIn: | 0 |
21 | case never executed: QEvent::FocusOut:case QEvent::FocusOut: never executed: case QEvent::FocusOut: | 0 |
22 | return never executed: new QFocusEvent(*static_cast<QFocusEvent*>(e));return new QFocusEvent(*static_cast<QFocusEvent*>(e)); never executed: return new QFocusEvent(*static_cast<QFocusEvent*>(e)); | 0 |
23 | case never executed: QEvent::Enter:case QEvent::Enter: never executed: case QEvent::Enter: | 0 |
24 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
25 | case never executed: QEvent::Leave:case QEvent::Leave: never executed: case QEvent::Leave: | 0 |
26 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
27 | case never executed: QEvent::Paint:case QEvent::Paint: never executed: case QEvent::Paint: | 0 |
28 | ((!(false)) ? qt_assert_x("cloneEvent()", "not implemented",__FILE__,71) : qt_noop()); | - |
29 | break; never executed: break; | 0 |
30 | case never executed: QEvent::Move:case QEvent::Move: never executed: case QEvent::Move: | 0 |
31 | return never executed: new QMoveEvent(*static_cast<QMoveEvent*>(e));return new QMoveEvent(*static_cast<QMoveEvent*>(e)); never executed: return new QMoveEvent(*static_cast<QMoveEvent*>(e)); | 0 |
32 | case never executed: QEvent::Resize:case QEvent::Resize: never executed: case QEvent::Resize: | 0 |
33 | return never executed: new QResizeEvent(*static_cast<QResizeEvent*>(e));return new QResizeEvent(*static_cast<QResizeEvent*>(e)); never executed: return new QResizeEvent(*static_cast<QResizeEvent*>(e)); | 0 |
34 | case never executed: QEvent::Create:case QEvent::Create: never executed: case QEvent::Create: | 0 |
35 | ((!(false)) ? qt_assert_x("cloneEvent()", "not implemented",__FILE__,78) : qt_noop()); | - |
36 | break; never executed: break; | 0 |
37 | case never executed: QEvent::Destroy:case QEvent::Destroy: never executed: case QEvent::Destroy: | 0 |
38 | ((!(false)) ? qt_assert_x("cloneEvent()", "not implemented",__FILE__,81) : qt_noop()); | - |
39 | break; never executed: break; | 0 |
40 | case never executed: QEvent::Show:case QEvent::Show: never executed: case QEvent::Show: | 0 |
41 | return never executed: new QShowEvent(*static_cast<QShowEvent*>(e));return new QShowEvent(*static_cast<QShowEvent*>(e)); never executed: return new QShowEvent(*static_cast<QShowEvent*>(e)); | 0 |
42 | case never executed: QEvent::Hide:case QEvent::Hide: never executed: case QEvent::Hide: | 0 |
43 | return never executed: new QHideEvent(*static_cast<QHideEvent*>(e));return new QHideEvent(*static_cast<QHideEvent*>(e)); never executed: return new QHideEvent(*static_cast<QHideEvent*>(e)); | 0 |
44 | case never executed: QEvent::Close:case QEvent::Close: never executed: case QEvent::Close: | 0 |
45 | return never executed: new QCloseEvent(*static_cast<QCloseEvent*>(e));return new QCloseEvent(*static_cast<QCloseEvent*>(e)); never executed: return new QCloseEvent(*static_cast<QCloseEvent*>(e)); | 0 |
46 | case never executed: QEvent::Quit:case QEvent::Quit: never executed: case QEvent::Quit: | 0 |
47 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
48 | case never executed: QEvent::ParentChange:case QEvent::ParentChange: never executed: case QEvent::ParentChange: | 0 |
49 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
50 | case never executed: QEvent::ParentAboutToChange:case QEvent::ParentAboutToChange: never executed: case QEvent::ParentAboutToChange: | 0 |
51 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
52 | case never executed: QEvent::ThreadChange:case QEvent::ThreadChange: never executed: case QEvent::ThreadChange: | 0 |
53 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
54 | - | |
55 | case never executed: QEvent::WindowActivate:case QEvent::WindowActivate: never executed: case QEvent::WindowActivate: | 0 |
56 | case never executed: QEvent::WindowDeactivate:case QEvent::WindowDeactivate: never executed: case QEvent::WindowDeactivate: | 0 |
57 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
58 | - | |
59 | case never executed: QEvent::ShowToParent:case QEvent::ShowToParent: never executed: case QEvent::ShowToParent: | 0 |
60 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
61 | case never executed: QEvent::HideToParent:case QEvent::HideToParent: never executed: case QEvent::HideToParent: | 0 |
62 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
63 | - | |
64 | case never executed: QEvent::Wheel:case QEvent::Wheel: never executed: case QEvent::Wheel: | 0 |
65 | return never executed: new QWheelEvent(*static_cast<QWheelEvent*>(e));return new QWheelEvent(*static_cast<QWheelEvent*>(e)); never executed: return new QWheelEvent(*static_cast<QWheelEvent*>(e)); | 0 |
66 | - | |
67 | case never executed: QEvent::WindowTitleChange:case QEvent::WindowTitleChange: never executed: case QEvent::WindowTitleChange: | 0 |
68 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
69 | case never executed: QEvent::WindowIconChange:case QEvent::WindowIconChange: never executed: case QEvent::WindowIconChange: | 0 |
70 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
71 | case never executed: QEvent::ApplicationWindowIconChange:case QEvent::ApplicationWindowIconChange: never executed: case QEvent::ApplicationWindowIconChange: | 0 |
72 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
73 | case never executed: QEvent::ApplicationFontChange:case QEvent::ApplicationFontChange: never executed: case QEvent::ApplicationFontChange: | 0 |
74 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
75 | case never executed: QEvent::ApplicationLayoutDirectionChange:case QEvent::ApplicationLayoutDirectionChange: never executed: case QEvent::ApplicationLayoutDirectionChange: | 0 |
76 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
77 | case never executed: QEvent::ApplicationPaletteChange:case QEvent::ApplicationPaletteChange: never executed: case QEvent::ApplicationPaletteChange: | 0 |
78 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
79 | case never executed: QEvent::PaletteChange:case QEvent::PaletteChange: never executed: case QEvent::PaletteChange: | 0 |
80 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
81 | case never executed: QEvent::Clipboard:case QEvent::Clipboard: never executed: case QEvent::Clipboard: | 0 |
82 | ((!(false)) ? qt_assert_x("cloneEvent()", "not implemented",__FILE__,125) : qt_noop()); | - |
83 | break; never executed: break; | 0 |
84 | case never executed: QEvent::Speech:case QEvent::Speech: never executed: case QEvent::Speech: | 0 |
85 | ((!(false)) ? qt_assert_x("cloneEvent()", "not implemented",__FILE__,128) : qt_noop()); | - |
86 | break; never executed: break; | 0 |
87 | case never executed: QEvent::MetaCall:case QEvent::MetaCall: never executed: case QEvent::MetaCall: | 0 |
88 | ((!(false)) ? qt_assert_x("cloneEvent()", "not implemented",__FILE__,131) : qt_noop()); | - |
89 | break; never executed: break; | 0 |
90 | case never executed: QEvent::SockAct:case QEvent::SockAct: never executed: case QEvent::SockAct: | 0 |
91 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
92 | case never executed: QEvent::WinEventAct:case QEvent::WinEventAct: never executed: case QEvent::WinEventAct: | 0 |
93 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
94 | case never executed: QEvent::DeferredDelete:case QEvent::DeferredDelete: never executed: case QEvent::DeferredDelete: | 0 |
95 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
96 | - | |
97 | case never executed: QEvent::DragEnter:case QEvent::DragEnter: never executed: case QEvent::DragEnter: | 0 |
98 | return never executed: new QDragEnterEvent(*static_cast<QDragEnterEvent*>(e));return new QDragEnterEvent(*static_cast<QDragEnterEvent*>(e)); never executed: return new QDragEnterEvent(*static_cast<QDragEnterEvent*>(e)); | 0 |
99 | case never executed: QEvent::DragMove:case QEvent::DragMove: never executed: case QEvent::DragMove: | 0 |
100 | return never executed: new QDragMoveEvent(*static_cast<QDragMoveEvent*>(e));return new QDragMoveEvent(*static_cast<QDragMoveEvent*>(e)); never executed: return new QDragMoveEvent(*static_cast<QDragMoveEvent*>(e)); | 0 |
101 | case never executed: QEvent::DragLeave:case QEvent::DragLeave: never executed: case QEvent::DragLeave: | 0 |
102 | return never executed: new QDragLeaveEvent(*static_cast<QDragLeaveEvent*>(e));return new QDragLeaveEvent(*static_cast<QDragLeaveEvent*>(e)); never executed: return new QDragLeaveEvent(*static_cast<QDragLeaveEvent*>(e)); | 0 |
103 | case never executed: QEvent::Drop:case QEvent::Drop: never executed: case QEvent::Drop: | 0 |
104 | return never executed: new QDropEvent(*static_cast<QDragMoveEvent*>(e));return new QDropEvent(*static_cast<QDragMoveEvent*>(e)); never executed: return new QDropEvent(*static_cast<QDragMoveEvent*>(e)); | 0 |
105 | - | |
106 | case never executed: QEvent::ChildAdded:case QEvent::ChildAdded: never executed: case QEvent::ChildAdded: | 0 |
107 | return never executed: new QChildEvent(*static_cast<QChildEvent*>(e));return new QChildEvent(*static_cast<QChildEvent*>(e)); never executed: return new QChildEvent(*static_cast<QChildEvent*>(e)); | 0 |
108 | case never executed: QEvent::ChildPolished:case QEvent::ChildPolished: never executed: case QEvent::ChildPolished: | 0 |
109 | return never executed: new QChildEvent(*static_cast<QChildEvent*>(e));return new QChildEvent(*static_cast<QChildEvent*>(e)); never executed: return new QChildEvent(*static_cast<QChildEvent*>(e)); | 0 |
110 | case never executed: QEvent::ChildRemoved:case QEvent::ChildRemoved: never executed: case QEvent::ChildRemoved: | 0 |
111 | return never executed: new QChildEvent(*static_cast<QChildEvent*>(e));return new QChildEvent(*static_cast<QChildEvent*>(e)); never executed: return new QChildEvent(*static_cast<QChildEvent*>(e)); | 0 |
112 | case never executed: QEvent::ShowWindowRequest:case QEvent::ShowWindowRequest: never executed: case QEvent::ShowWindowRequest: | 0 |
113 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
114 | case never executed: QEvent::PolishRequest:case QEvent::PolishRequest: never executed: case QEvent::PolishRequest: | 0 |
115 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
116 | case never executed: QEvent::Polish:case QEvent::Polish: never executed: case QEvent::Polish: | 0 |
117 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
118 | case never executed: QEvent::LayoutRequest:case QEvent::LayoutRequest: never executed: case QEvent::LayoutRequest: | 0 |
119 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
120 | case never executed: QEvent::UpdateRequest:case QEvent::UpdateRequest: never executed: case QEvent::UpdateRequest: | 0 |
121 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
122 | case never executed: QEvent::UpdateLater:case QEvent::UpdateLater: never executed: case QEvent::UpdateLater: | 0 |
123 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
124 | - | |
125 | case never executed: QEvent::EmbeddingControl:case QEvent::EmbeddingControl: never executed: case QEvent::EmbeddingControl: | 0 |
126 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
127 | case never executed: QEvent::ActivateControl:case QEvent::ActivateControl: never executed: case QEvent::ActivateControl: | 0 |
128 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
129 | case never executed: QEvent::DeactivateControl:case QEvent::DeactivateControl: never executed: case QEvent::DeactivateControl: | 0 |
130 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
131 | - | |
132 | - | |
133 | case never executed: QEvent::ContextMenu:case QEvent::ContextMenu: never executed: case QEvent::ContextMenu: | 0 |
134 | return never executed: new QContextMenuEvent(*static_cast<QContextMenuEvent*>(e));return new QContextMenuEvent(*static_cast<QContextMenuEvent*>(e)); never executed: return new QContextMenuEvent(*static_cast<QContextMenuEvent*>(e)); | 0 |
135 | - | |
136 | case never executed: QEvent::InputMethod:case QEvent::InputMethod: never executed: case QEvent::InputMethod: | 0 |
137 | return never executed: new QInputMethodEvent(*static_cast<QInputMethodEvent*>(e));return new QInputMethodEvent(*static_cast<QInputMethodEvent*>(e)); never executed: return new QInputMethodEvent(*static_cast<QInputMethodEvent*>(e)); | 0 |
138 | case never executed: QEvent::LocaleChange:case QEvent::LocaleChange: never executed: case QEvent::LocaleChange: | 0 |
139 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
140 | case never executed: QEvent::LanguageChange:case QEvent::LanguageChange: never executed: case QEvent::LanguageChange: | 0 |
141 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
142 | case never executed: QEvent::LayoutDirectionChange:case QEvent::LayoutDirectionChange: never executed: case QEvent::LayoutDirectionChange: | 0 |
143 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
144 | case never executed: QEvent::Style:case QEvent::Style: never executed: case QEvent::Style: | 0 |
145 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
146 | - | |
147 | case never executed: QEvent::TabletMove:case QEvent::TabletMove: never executed: case QEvent::TabletMove: | 0 |
148 | case never executed: QEvent::TabletPress:case QEvent::TabletPress: never executed: case QEvent::TabletPress: | 0 |
149 | case never executed: QEvent::TabletRelease:case QEvent::TabletRelease: never executed: case QEvent::TabletRelease: | 0 |
150 | return never executed: new QTabletEvent(*static_cast<QTabletEvent*>(e));return new QTabletEvent(*static_cast<QTabletEvent*>(e)); never executed: return new QTabletEvent(*static_cast<QTabletEvent*>(e)); | 0 |
151 | - | |
152 | case never executed: QEvent::OkRequest:case QEvent::OkRequest: never executed: case QEvent::OkRequest: | 0 |
153 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
154 | case never executed: QEvent::HelpRequest:case QEvent::HelpRequest: never executed: case QEvent::HelpRequest: | 0 |
155 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
156 | - | |
157 | case never executed: QEvent::IconDrag:case QEvent::IconDrag: never executed: case QEvent::IconDrag: | 0 |
158 | return never executed: new QIconDragEvent(*static_cast<QIconDragEvent*>(e));return new QIconDragEvent(*static_cast<QIconDragEvent*>(e)); never executed: return new QIconDragEvent(*static_cast<QIconDragEvent*>(e)); | 0 |
159 | - | |
160 | case never executed: QEvent::FontChange:case QEvent::FontChange: never executed: case QEvent::FontChange: | 0 |
161 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
162 | case never executed: QEvent::EnabledChange:case QEvent::EnabledChange: never executed: case QEvent::EnabledChange: | 0 |
163 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
164 | case never executed: QEvent::ActivationChange:case QEvent::ActivationChange: never executed: case QEvent::ActivationChange: | 0 |
165 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
166 | case never executed: QEvent::StyleChange:case QEvent::StyleChange: never executed: case QEvent::StyleChange: | 0 |
167 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
168 | case never executed: QEvent::IconTextChange:case QEvent::IconTextChange: never executed: case QEvent::IconTextChange: | 0 |
169 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
170 | case never executed: QEvent::ModifiedChange:case QEvent::ModifiedChange: never executed: case QEvent::ModifiedChange: | 0 |
171 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
172 | case never executed: QEvent::MouseTrackingChange:case QEvent::MouseTrackingChange: never executed: case QEvent::MouseTrackingChange: | 0 |
173 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
174 | - | |
175 | case never executed: QEvent::WindowBlocked:case QEvent::WindowBlocked: never executed: case QEvent::WindowBlocked: | 0 |
176 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
177 | case never executed: QEvent::WindowUnblocked:case QEvent::WindowUnblocked: never executed: case QEvent::WindowUnblocked: | 0 |
178 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
179 | case never executed: QEvent::WindowStateChange:case QEvent::WindowStateChange: never executed: case QEvent::WindowStateChange: | 0 |
180 | return never executed: new QWindowStateChangeEvent(*static_cast<QWindowStateChangeEvent*>(e));return new QWindowStateChangeEvent(*static_cast<QWindowStateChangeEvent*>(e)); never executed: return new QWindowStateChangeEvent(*static_cast<QWindowStateChangeEvent*>(e)); | 0 |
181 | - | |
182 | case never executed: QEvent::ToolTip:case QEvent::ToolTip: never executed: case QEvent::ToolTip: | 0 |
183 | return never executed: new QHelpEvent(*static_cast<QHelpEvent*>(e));return new QHelpEvent(*static_cast<QHelpEvent*>(e)); never executed: return new QHelpEvent(*static_cast<QHelpEvent*>(e)); | 0 |
184 | case never executed: QEvent::WhatsThis:case QEvent::WhatsThis: never executed: case QEvent::WhatsThis: | 0 |
185 | return never executed: new QHelpEvent(*static_cast<QHelpEvent*>(e));return new QHelpEvent(*static_cast<QHelpEvent*>(e)); never executed: return new QHelpEvent(*static_cast<QHelpEvent*>(e)); | 0 |
186 | - | |
187 | case never executed: QEvent::StatusTip:case QEvent::StatusTip: never executed: case QEvent::StatusTip: | 0 |
188 | return never executed: new QStatusTipEvent(*static_cast<QStatusTipEvent*>(e));return new QStatusTipEvent(*static_cast<QStatusTipEvent*>(e)); never executed: return new QStatusTipEvent(*static_cast<QStatusTipEvent*>(e)); | 0 |
189 | - | |
190 | - | |
191 | case never executed: QEvent::ActionChanged:case QEvent::ActionChanged: never executed: case QEvent::ActionChanged: | 0 |
192 | case never executed: QEvent::ActionAdded:case QEvent::ActionAdded: never executed: case QEvent::ActionAdded: | 0 |
193 | case never executed: QEvent::ActionRemoved:case QEvent::ActionRemoved: never executed: case QEvent::ActionRemoved: | 0 |
194 | return never executed: new QActionEvent(*static_cast<QActionEvent*>(e));return new QActionEvent(*static_cast<QActionEvent*>(e)); never executed: return new QActionEvent(*static_cast<QActionEvent*>(e)); | 0 |
195 | - | |
196 | case never executed: QEvent::FileOpen:case QEvent::FileOpen: never executed: case QEvent::FileOpen: | 0 |
197 | return never executed: new QFileOpenEvent(*static_cast<QFileOpenEvent*>(e));return new QFileOpenEvent(*static_cast<QFileOpenEvent*>(e)); never executed: return new QFileOpenEvent(*static_cast<QFileOpenEvent*>(e)); | 0 |
198 | - | |
199 | - | |
200 | case never executed: QEvent::Shortcut:case QEvent::Shortcut: never executed: case QEvent::Shortcut: | 0 |
201 | return never executed: new QShortcutEvent(*static_cast<QShortcutEvent*>(e));return new QShortcutEvent(*static_cast<QShortcutEvent*>(e)); never executed: return new QShortcutEvent(*static_cast<QShortcutEvent*>(e)); | 0 |
202 | - | |
203 | case never executed: QEvent::ShortcutOverride:case QEvent::ShortcutOverride: never executed: case QEvent::ShortcutOverride: | 0 |
204 | return never executed: new QKeyEvent(*static_cast<QKeyEvent*>(e));return new QKeyEvent(*static_cast<QKeyEvent*>(e)); never executed: return new QKeyEvent(*static_cast<QKeyEvent*>(e)); | 0 |
205 | - | |
206 | - | |
207 | case never executed: QEvent::WhatsThisClicked:case QEvent::WhatsThisClicked: never executed: case QEvent::WhatsThisClicked: | 0 |
208 | return never executed: new QWhatsThisClickedEvent(*static_cast<QWhatsThisClickedEvent*>(e));return new QWhatsThisClickedEvent(*static_cast<QWhatsThisClickedEvent*>(e)); never executed: return new QWhatsThisClickedEvent(*static_cast<QWhatsThisClickedEvent*>(e)); | 0 |
209 | - | |
210 | - | |
211 | - | |
212 | case never executed: QEvent::ToolBarChange:case QEvent::ToolBarChange: never executed: case QEvent::ToolBarChange: | 0 |
213 | return never executed: new QToolBarChangeEvent(*static_cast<QToolBarChangeEvent*>(e));return new QToolBarChangeEvent(*static_cast<QToolBarChangeEvent*>(e)); never executed: return new QToolBarChangeEvent(*static_cast<QToolBarChangeEvent*>(e)); | 0 |
214 | - | |
215 | - | |
216 | case never executed: QEvent::ApplicationActivate:case QEvent::ApplicationActivate: never executed: case QEvent::ApplicationActivate: | 0 |
217 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
218 | case never executed: QEvent::ApplicationDeactivate:case QEvent::ApplicationDeactivate: never executed: case QEvent::ApplicationDeactivate: | 0 |
219 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
220 | - | |
221 | case never executed: QEvent::QueryWhatsThis:case QEvent::QueryWhatsThis: never executed: case QEvent::QueryWhatsThis: | 0 |
222 | return never executed: new QHelpEvent(*static_cast<QHelpEvent*>(e));return new QHelpEvent(*static_cast<QHelpEvent*>(e)); never executed: return new QHelpEvent(*static_cast<QHelpEvent*>(e)); | 0 |
223 | case never executed: QEvent::EnterWhatsThisMode:case QEvent::EnterWhatsThisMode: never executed: case QEvent::EnterWhatsThisMode: | 0 |
224 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
225 | case never executed: QEvent::LeaveWhatsThisMode:case QEvent::LeaveWhatsThisMode: never executed: case QEvent::LeaveWhatsThisMode: | 0 |
226 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
227 | - | |
228 | case never executed: QEvent::ZOrderChange:case QEvent::ZOrderChange: never executed: case QEvent::ZOrderChange: | 0 |
229 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
230 | - | |
231 | case never executed: QEvent::HoverEnter:case QEvent::HoverEnter: never executed: case QEvent::HoverEnter: | 0 |
232 | case never executed: QEvent::HoverLeave:case QEvent::HoverLeave: never executed: case QEvent::HoverLeave: | 0 |
233 | case never executed: QEvent::HoverMove:case QEvent::HoverMove: never executed: case QEvent::HoverMove: | 0 |
234 | return never executed: new QHoverEvent(*static_cast<QHoverEvent*>(e));return new QHoverEvent(*static_cast<QHoverEvent*>(e)); never executed: return new QHoverEvent(*static_cast<QHoverEvent*>(e)); | 0 |
235 | - | |
236 | - | |
237 | - | |
238 | - | |
239 | - | |
240 | - | |
241 | - | |
242 | case never executed: QEvent::AcceptDropsChange:case QEvent::AcceptDropsChange: never executed: case QEvent::AcceptDropsChange: | 0 |
243 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
244 | - | |
245 | case never executed: QEvent::ZeroTimerEvent:case QEvent::ZeroTimerEvent: never executed: case QEvent::ZeroTimerEvent: | 0 |
246 | ((!(false)) ? qt_assert_x("cloneEvent()", "not implemented",__FILE__,289) : qt_noop()); | - |
247 | break; never executed: break; | 0 |
248 | - | |
249 | case never executed: QEvent::GraphicsSceneMouseMove:case QEvent::GraphicsSceneMouseMove: never executed: case QEvent::GraphicsSceneMouseMove: | 0 |
250 | case never executed: QEvent::GraphicsSceneMousePress:case QEvent::GraphicsSceneMousePress: never executed: case QEvent::GraphicsSceneMousePress: | 0 |
251 | case never executed: QEvent::GraphicsSceneMouseRelease:case QEvent::GraphicsSceneMouseRelease: never executed: case QEvent::GraphicsSceneMouseRelease: | 0 |
252 | case never executed: QEvent::GraphicsSceneMouseDoubleClick:case QEvent::GraphicsSceneMouseDoubleClick: never executed: {case QEvent::GraphicsSceneMouseDoubleClick: | 0 |
253 | QGraphicsSceneMouseEvent *me = static_cast<QGraphicsSceneMouseEvent*>(e); | - |
254 | QGraphicsSceneMouseEvent *me2 = new QGraphicsSceneMouseEvent(me->type()); | - |
255 | me2->setWidget(me->widget()); | - |
256 | me2->setPos(me->pos()); | - |
257 | me2->setScenePos(me->scenePos()); | - |
258 | me2->setScreenPos(me->screenPos()); | - |
259 | - | |
260 | me2->setButtonDownPos(Qt::LeftButton, me->buttonDownPos(Qt::LeftButton)); | - |
261 | me2->setButtonDownPos(Qt::RightButton, me->buttonDownPos(Qt::RightButton)); | - |
262 | me2->setButtonDownScreenPos(Qt::LeftButton, me->buttonDownScreenPos(Qt::LeftButton)); | - |
263 | me2->setButtonDownScreenPos(Qt::RightButton, me->buttonDownScreenPos(Qt::RightButton)); | - |
264 | me2->setLastPos(me->lastPos()); | - |
265 | me2->setLastScenePos(me->lastScenePos()); | - |
266 | me2->setLastScreenPos(me->lastScreenPos()); | - |
267 | me2->setButtons(me->buttons()); | - |
268 | me2->setButton(me->button()); | - |
269 | me2->setModifiers(me->modifiers()); | - |
270 | me2->setSource(me->source()); | - |
271 | me2->setFlags(me->flags()); | - |
272 | return never executed: me2;return me2; never executed: return me2; | 0 |
273 | } | - |
274 | - | |
275 | case never executed: QEvent::GraphicsSceneContextMenu:case QEvent::GraphicsSceneContextMenu: never executed: {case QEvent::GraphicsSceneContextMenu: | 0 |
276 | QGraphicsSceneContextMenuEvent *me = static_cast<QGraphicsSceneContextMenuEvent*>(e); | - |
277 | QGraphicsSceneContextMenuEvent *me2 = new QGraphicsSceneContextMenuEvent(me->type()); | - |
278 | me2->setWidget(me->widget()); | - |
279 | me2->setPos(me->pos()); | - |
280 | me2->setScenePos(me->scenePos()); | - |
281 | me2->setScreenPos(me->screenPos()); | - |
282 | me2->setModifiers(me->modifiers()); | - |
283 | me2->setReason(me->reason()); | - |
284 | return never executed: me2;return me2; never executed: return me2; | 0 |
285 | } | - |
286 | - | |
287 | case never executed: QEvent::GraphicsSceneHoverEnter:case QEvent::GraphicsSceneHoverEnter: never executed: case QEvent::GraphicsSceneHoverEnter: | 0 |
288 | case never executed: QEvent::GraphicsSceneHoverMove:case QEvent::GraphicsSceneHoverMove: never executed: case QEvent::GraphicsSceneHoverMove: | 0 |
289 | case never executed: QEvent::GraphicsSceneHoverLeave:case QEvent::GraphicsSceneHoverLeave: never executed: {case QEvent::GraphicsSceneHoverLeave: | 0 |
290 | QGraphicsSceneHoverEvent *he = static_cast<QGraphicsSceneHoverEvent*>(e); | - |
291 | QGraphicsSceneHoverEvent *he2 = new QGraphicsSceneHoverEvent(he->type()); | - |
292 | he2->setPos(he->pos()); | - |
293 | he2->setScenePos(he->scenePos()); | - |
294 | he2->setScreenPos(he->screenPos()); | - |
295 | he2->setLastPos(he->lastPos()); | - |
296 | he2->setLastScenePos(he->lastScenePos()); | - |
297 | he2->setLastScreenPos(he->lastScreenPos()); | - |
298 | he2->setModifiers(he->modifiers()); | - |
299 | return never executed: he2;return he2; never executed: return he2; | 0 |
300 | } | - |
301 | case never executed: QEvent::GraphicsSceneHelp:case QEvent::GraphicsSceneHelp: never executed: case QEvent::GraphicsSceneHelp: | 0 |
302 | return never executed: new QHelpEvent(*static_cast<QHelpEvent*>(e));return new QHelpEvent(*static_cast<QHelpEvent*>(e)); never executed: return new QHelpEvent(*static_cast<QHelpEvent*>(e)); | 0 |
303 | case never executed: QEvent::GraphicsSceneDragEnter:case QEvent::GraphicsSceneDragEnter: never executed: case QEvent::GraphicsSceneDragEnter: | 0 |
304 | case never executed: QEvent::GraphicsSceneDragMove:case QEvent::GraphicsSceneDragMove: never executed: case QEvent::GraphicsSceneDragMove: | 0 |
305 | case never executed: QEvent::GraphicsSceneDragLeave:case QEvent::GraphicsSceneDragLeave: never executed: case QEvent::GraphicsSceneDragLeave: | 0 |
306 | case never executed: QEvent::GraphicsSceneDrop:case QEvent::GraphicsSceneDrop: never executed: {case QEvent::GraphicsSceneDrop: | 0 |
307 | QGraphicsSceneDragDropEvent *dde = static_cast<QGraphicsSceneDragDropEvent*>(e); | - |
308 | QGraphicsSceneDragDropEvent *dde2 = new QGraphicsSceneDragDropEvent(dde->type()); | - |
309 | dde2->setPos(dde->pos()); | - |
310 | dde2->setScenePos(dde->scenePos()); | - |
311 | dde2->setScreenPos(dde->screenPos()); | - |
312 | dde2->setButtons(dde->buttons()); | - |
313 | dde2->setModifiers(dde->modifiers()); | - |
314 | return never executed: dde2;return dde2; never executed: return dde2; | 0 |
315 | } | - |
316 | case never executed: QEvent::GraphicsSceneWheel:case QEvent::GraphicsSceneWheel: never executed: {case QEvent::GraphicsSceneWheel: | 0 |
317 | QGraphicsSceneWheelEvent *we = static_cast<QGraphicsSceneWheelEvent*>(e); | - |
318 | QGraphicsSceneWheelEvent *we2 = new QGraphicsSceneWheelEvent(we->type()); | - |
319 | we2->setPos(we->pos()); | - |
320 | we2->setScenePos(we->scenePos()); | - |
321 | we2->setScreenPos(we->screenPos()); | - |
322 | we2->setButtons(we->buttons()); | - |
323 | we2->setModifiers(we->modifiers()); | - |
324 | we2->setOrientation(we->orientation()); | - |
325 | we2->setDelta(we->delta()); | - |
326 | return never executed: we2;return we2; never executed: return we2; | 0 |
327 | } | - |
328 | - | |
329 | case never executed: QEvent::KeyboardLayoutChange:case QEvent::KeyboardLayoutChange: never executed: case QEvent::KeyboardLayoutChange: | 0 |
330 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
331 | - | |
332 | case never executed: QEvent::DynamicPropertyChange:case QEvent::DynamicPropertyChange: never executed: case QEvent::DynamicPropertyChange: | 0 |
333 | return never executed: new QDynamicPropertyChangeEvent(*static_cast<QDynamicPropertyChangeEvent*>(e));return new QDynamicPropertyChangeEvent(*static_cast<QDynamicPropertyChangeEvent*>(e)); never executed: return new QDynamicPropertyChangeEvent(*static_cast<QDynamicPropertyChangeEvent*>(e)); | 0 |
334 | - | |
335 | - | |
336 | case never executed: QEvent::TabletEnterProximity:case QEvent::TabletEnterProximity: never executed: case QEvent::TabletEnterProximity: | 0 |
337 | case never executed: QEvent::TabletLeaveProximity:case QEvent::TabletLeaveProximity: never executed: case QEvent::TabletLeaveProximity: | 0 |
338 | return never executed: new QTabletEvent(*static_cast<QTabletEvent*>(e));return new QTabletEvent(*static_cast<QTabletEvent*>(e)); never executed: return new QTabletEvent(*static_cast<QTabletEvent*>(e)); | 0 |
339 | - | |
340 | - | |
341 | case never executed: QEvent::NonClientAreaMouseMove:case QEvent::NonClientAreaMouseMove: never executed: case QEvent::NonClientAreaMouseMove: | 0 |
342 | case never executed: QEvent::NonClientAreaMouseButtonPress:case QEvent::NonClientAreaMouseButtonPress: never executed: case QEvent::NonClientAreaMouseButtonPress: | 0 |
343 | case never executed: QEvent::NonClientAreaMouseButtonRelease:case QEvent::NonClientAreaMouseButtonRelease: never executed: case QEvent::NonClientAreaMouseButtonRelease: | 0 |
344 | case never executed: QEvent::NonClientAreaMouseButtonDblClick:case QEvent::NonClientAreaMouseButtonDblClick: never executed: case QEvent::NonClientAreaMouseButtonDblClick: | 0 |
345 | return never executed: new QMouseEvent(*static_cast<QMouseEvent*>(e));return new QMouseEvent(*static_cast<QMouseEvent*>(e)); never executed: return new QMouseEvent(*static_cast<QMouseEvent*>(e)); | 0 |
346 | - | |
347 | case never executed: QEvent::MacSizeChange:case QEvent::MacSizeChange: never executed: case QEvent::MacSizeChange: | 0 |
348 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
349 | - | |
350 | case never executed: QEvent::ContentsRectChange:case QEvent::ContentsRectChange: never executed: case QEvent::ContentsRectChange: | 0 |
351 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
352 | - | |
353 | case never executed: QEvent::MacGLWindowChange:case QEvent::MacGLWindowChange: never executed: case QEvent::MacGLWindowChange: | 0 |
354 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
355 | - | |
356 | case never executed: QEvent::FutureCallOut:case QEvent::FutureCallOut: never executed: case QEvent::FutureCallOut: | 0 |
357 | ((!(false)) ? qt_assert_x("cloneEvent()", "not implemented",__FILE__,400) : qt_noop()); | - |
358 | break; never executed: break; | 0 |
359 | - | |
360 | case never executed: QEvent::GraphicsSceneResize:case QEvent::GraphicsSceneResize: never executed: {case QEvent::GraphicsSceneResize: | 0 |
361 | QGraphicsSceneResizeEvent *re = static_cast<QGraphicsSceneResizeEvent*>(e); | - |
362 | QGraphicsSceneResizeEvent *re2 = new QGraphicsSceneResizeEvent(); | - |
363 | re2->setOldSize(re->oldSize()); | - |
364 | re2->setNewSize(re->newSize()); | - |
365 | return never executed: re2;return re2; never executed: return re2; | 0 |
366 | } | - |
367 | case never executed: QEvent::GraphicsSceneMove:case QEvent::GraphicsSceneMove: never executed: {case QEvent::GraphicsSceneMove: | 0 |
368 | QGraphicsSceneMoveEvent *me = static_cast<QGraphicsSceneMoveEvent*>(e); | - |
369 | QGraphicsSceneMoveEvent *me2 = new QGraphicsSceneMoveEvent(); | - |
370 | me2->setWidget(me->widget()); | - |
371 | me2->setNewPos(me->newPos()); | - |
372 | me2->setOldPos(me->oldPos()); | - |
373 | return never executed: me2;return me2; never executed: return me2; | 0 |
374 | } | - |
375 | - | |
376 | case never executed: QEvent::CursorChange:case QEvent::CursorChange: never executed: case QEvent::CursorChange: | 0 |
377 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
378 | case never executed: QEvent::ToolTipChange:case QEvent::ToolTipChange: never executed: case QEvent::ToolTipChange: | 0 |
379 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
380 | - | |
381 | case never executed: QEvent::NetworkReplyUpdated:case QEvent::NetworkReplyUpdated: never executed: case QEvent::NetworkReplyUpdated: | 0 |
382 | ((!(false)) ? qt_assert_x("cloneEvent()", "not implemented",__FILE__,425) : qt_noop()); | - |
383 | break; never executed: break; | 0 |
384 | - | |
385 | case never executed: QEvent::GrabMouse:case QEvent::GrabMouse: never executed: case QEvent::GrabMouse: | 0 |
386 | case never executed: QEvent::UngrabMouse:case QEvent::UngrabMouse: never executed: case QEvent::UngrabMouse: | 0 |
387 | case never executed: QEvent::GrabKeyboard:case QEvent::GrabKeyboard: never executed: case QEvent::GrabKeyboard: | 0 |
388 | case never executed: QEvent::UngrabKeyboard:case QEvent::UngrabKeyboard: never executed: case QEvent::UngrabKeyboard: | 0 |
389 | return never executed: new QEvent(*e);return new QEvent(*e); never executed: return new QEvent(*e); | 0 |
390 | - | |
391 | case never executed: QEvent::TouchBegin:case QEvent::TouchBegin: never executed: case QEvent::TouchBegin: | 0 |
392 | case never executed: QEvent::TouchUpdate:case QEvent::TouchUpdate: never executed: case QEvent::TouchUpdate: | 0 |
393 | case never executed: QEvent::TouchEnd:case QEvent::TouchEnd: never executed: case QEvent::TouchEnd: | 0 |
394 | return never executed: new QTouchEvent(*static_cast<QTouchEvent*>(e));return new QTouchEvent(*static_cast<QTouchEvent*>(e)); never executed: return new QTouchEvent(*static_cast<QTouchEvent*>(e)); | 0 |
395 | - | |
396 | - | |
397 | case never executed: QEvent::NativeGesture:case QEvent::NativeGesture: never executed: case QEvent::NativeGesture: | 0 |
398 | ((!(false)) ? qt_assert_x("cloneEvent()", "not implemented",__FILE__,441) : qt_noop()); | - |
399 | break; never executed: break; | 0 |
400 | - | |
401 | - | |
402 | case never executed: QEvent::User:case QEvent::User: never executed: case QEvent::User: | 0 |
403 | case never executed: QEvent::MaxUser:case QEvent::MaxUser: never executed: case QEvent::MaxUser: | 0 |
404 | ((!(false)) ? qt_assert_x("cloneEvent()", "not implemented",__FILE__,447) : qt_noop()); | - |
405 | break; never executed: break; | 0 |
406 | default never executed: :default: never executed: default: | 0 |
407 | ; | - |
408 | } never executed: end of block | 0 |
409 | return never executed: qcoreStateMachineHandler()->cloneEvent(e);return qcoreStateMachineHandler()->cloneEvent(e); never executed: return qcoreStateMachineHandler()->cloneEvent(e); | 0 |
410 | } | - |
411 | - | |
412 | const QStateMachinePrivate::Handler qt_gui_statemachine_handler = { | - |
413 | cloneEvent | - |
414 | }; | - |
415 | - | |
416 | static const QStateMachinePrivate::Handler *qt_guistatemachine_last_handler = 0; | - |
417 | void qRegisterGuiStateMachine() | - |
418 | { | - |
419 | qt_guistatemachine_last_handler = QStateMachinePrivate::handler; | - |
420 | QStateMachinePrivate::handler = &qt_gui_statemachine_handler; | - |
421 | } never executed: end of block | 0 |
422 | namespace { static const struct qRegisterGuiStateMachine_ctor_class_ { inline qRegisterGuiStateMachine_ctor_class_() { qRegisterGuiStateMachine(); } never executed: } qRegisterGuiStateMachine_ctor_instance_; }end of block | 0 |
423 | - | |
424 | void qUnregisterGuiStateMachine() | - |
425 | { | - |
426 | QStateMachinePrivate::handler = qt_guistatemachine_last_handler; | - |
427 | } never executed: end of block | 0 |
428 | namespace { static const struct qUnregisterGuiStateMachine_dtor_class_ { inline qUnregisterGuiStateMachine_dtor_class_() { } inline ~ qUnregisterGuiStateMachine_dtor_class_() { qUnregisterGuiStateMachine(); } never executed: } qUnregisterGuiStateMachine_dtor_instance_; }end of block | 0 |
429 | - | |
430 | - | |
Switch to Source code | Preprocessed file |