kernel/qwidget_qpa.cpp

Switch to Source codePreprocessed file
LineSource CodeCoverage
1 -
2 -
3 -
4 -
5void q_createNativeChildrenAndSetParent(const QWidget *parentWidget) -
6{ -
7 QObjectList children = parentWidget->children(); -
8 for (int i = 0; i < children.size(); i++) {
evaluated: i < children.size()
TRUEFALSE
yes
Evaluation Count:18254
yes
Evaluation Count:12472
12472-18254
9 if (children.at(i)->isWidgetType()) {
evaluated: children.at(i)->isWidgetType()
TRUEFALSE
yes
Evaluation Count:10881
yes
Evaluation Count:7373
7373-10881
10 const QWidget *childWidget = qobject_cast<const QWidget *>(children.at(i)); -
11 if (childWidget) {
partially evaluated: childWidget
TRUEFALSE
yes
Evaluation Count:10881
no
Evaluation Count:0
0-10881
12 if (childWidget->testAttribute(Qt::WA_NativeWindow)) {
evaluated: childWidget->testAttribute(Qt::WA_NativeWindow)
TRUEFALSE
yes
Evaluation Count:3
yes
Evaluation Count:10878
3-10878
13 if (!childWidget->windowHandle())
partially evaluated: !childWidget->windowHandle()
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:3
0-3
14 childWidget->winId();
never executed: childWidget->winId();
0
15 if (childWidget->windowHandle()) {
partially evaluated: childWidget->windowHandle()
TRUEFALSE
yes
Evaluation Count:3
no
Evaluation Count:0
0-3
16 QWindow *parentWindow = childWidget->nativeParentWidget()->windowHandle(); -
17 if (childWidget->isWindow())
partially evaluated: childWidget->isWindow()
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:3
0-3
18 childWidget->windowHandle()->setTransientParent(parentWindow);
never executed: childWidget->windowHandle()->setTransientParent(parentWindow);
0
19 else -
20 childWidget->windowHandle()->setParent(parentWindow);
executed: childWidget->windowHandle()->setParent(parentWindow);
Execution Count:3
3
21 } -
22 } else {
executed: }
Execution Count:3
3
23 q_createNativeChildrenAndSetParent(childWidget); -
24 }
executed: }
Execution Count:10878
10878
25 } -
26 }
executed: }
Execution Count:10881
10881
27 }
executed: }
Execution Count:18254
18254
28 -
29}
executed: }
Execution Count:12472
12472
30 -
31void QWidgetPrivate::create_sys(WId window, bool initializeWindow, bool destroyOldWindow) -
32{ -
33 QWidget * const q = q_func(); -
34 -
35 (void)window;; -
36 (void)initializeWindow;; -
37 (void)destroyOldWindow;; -
38 -
39 Qt::WindowFlags flags = data.window_flags; -
40 -
41 if (!q->testAttribute(Qt::WA_NativeWindow) && !q->isWindow())
evaluated: !q->testAttribute(Qt::WA_NativeWindow)
TRUEFALSE
yes
Evaluation Count:7548
yes
Evaluation Count:5
evaluated: !q->isWindow()
TRUEFALSE
yes
Evaluation Count:5955
yes
Evaluation Count:1593
5-7548
42 return;
executed: return;
Execution Count:5955
5955
43 -
44 QWindow *win = topData()->window; -
45 -
46 -
47 if (!win) {
evaluated: !win
TRUEFALSE
yes
Evaluation Count:1
yes
Evaluation Count:1597
1-1597
48 createTLSysExtra(); -
49 win = topData()->window; -
50 }
executed: }
Execution Count:1
1
51 -
52 win->setFlags(data.window_flags); -
53 fixPosIncludesFrame(); -
54 win->setGeometry(q->geometry()); -
55 win->setScreen(QGuiApplication::screens().value(topData()->screenIndex, 0)); -
56 -
57 if (q->testAttribute(Qt::WA_TranslucentBackground)) {
evaluated: q->testAttribute(Qt::WA_TranslucentBackground)
TRUEFALSE
yes
Evaluation Count:3
yes
Evaluation Count:1595
3-1595
58 QSurfaceFormat format; -
59 format.setAlphaBufferSize(8); -
60 win->setFormat(format); -
61 }
executed: }
Execution Count:3
3
62 -
63 if (QWidget *nativeParent = q->nativeParentWidget()) {
evaluated: QWidget *nativeParent = q->nativeParentWidget()
TRUEFALSE
yes
Evaluation Count:90
yes
Evaluation Count:1508
90-1508
64 if (nativeParent->windowHandle()) {
partially evaluated: nativeParent->windowHandle()
TRUEFALSE
yes
Evaluation Count:90
no
Evaluation Count:0
0-90
65 if (flags & Qt::Window) {
evaluated: flags & Qt::Window
TRUEFALSE
yes
Evaluation Count:86
yes
Evaluation Count:4
4-86
66 win->setTransientParent(nativeParent->windowHandle()); -
67 win->setParent(0); -
68 } else {
executed: }
Execution Count:86
86
69 win->setTransientParent(0); -
70 win->setParent(nativeParent->windowHandle()); -
71 }
executed: }
Execution Count:4
4
72 } -
73 }
executed: }
Execution Count:90
90
74 -
75 qt_window_private(win)->positionPolicy = topData()->posIncludesFrame ?
evaluated: topData()->posIncludesFrame
TRUEFALSE
yes
Evaluation Count:193
yes
Evaluation Count:1405
193-1405
76 QWindowPrivate::WindowFrameInclusive : QWindowPrivate::WindowFrameExclusive; -
77 win->create(); -
78 -
79 data.window_flags = win->flags(); -
80 -
81 QBackingStore *store = q->backingStore(); -
82 -
83 if (!store) {
evaluated: !store
TRUEFALSE
yes
Evaluation Count:1587
yes
Evaluation Count:7
7-1587
84 if (win && q->windowType() != Qt::Desktop)
partially evaluated: win
TRUEFALSE
yes
Evaluation Count:1587
no
Evaluation Count:0
evaluated: q->windowType() != Qt::Desktop
TRUEFALSE
yes
Evaluation Count:1482
yes
Evaluation Count:105
0-1587
85 q->setBackingStore(new QBackingStore(win));
executed: q->setBackingStore(new QBackingStore(win));
Execution Count:1482
1482
86 else -
87 q->setAttribute(Qt::WA_PaintOnScreen, true);
executed: q->setAttribute(Qt::WA_PaintOnScreen, true);
Execution Count:105
105
88 } -
89 -
90 setWindowModified_helper(); -
91 setWinId(win->winId()); -
92 -
93 -
94 q_createNativeChildrenAndSetParent(q); -
95 -
96 if (extra && !extra->mask.isEmpty())
partially evaluated: extra
TRUEFALSE
yes
Evaluation Count:1594
no
Evaluation Count:0
evaluated: !extra->mask.isEmpty()
TRUEFALSE
yes
Evaluation Count:4
yes
Evaluation Count:1590
0-1594
97 setMask_sys(extra->mask);
executed: setMask_sys(extra->mask);
Execution Count:4
4
98 -
99 -
100 if (q->isVisible())
partially evaluated: q->isVisible()
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:1594
0-1594
101 win->setVisible(true);
never executed: win->setVisible(true);
0
102}
executed: }
Execution Count:1594
1594
103 -
104void QWidget::destroy(bool destroyWindow, bool destroySubWindows) -
105{ -
106 QWidgetPrivate * const d = d_func(); -
107 -
108 d->aboutToDestroy(); -
109 if (!isWindow() && parentWidget())
evaluated: !isWindow()
TRUEFALSE
yes
Evaluation Count:25605
yes
Evaluation Count:6497
partially evaluated: parentWidget()
TRUEFALSE
yes
Evaluation Count:25605
no
Evaluation Count:0
0-25605
110 parentWidget()->d_func()->invalidateBuffer(d->effectiveRectFor(geometry()));
executed: parentWidget()->d_func()->invalidateBuffer(d->effectiveRectFor(geometry()));
Execution Count:25605
25605
111 d->deactivateWidgetCleanup(); -
112 -
113 if ((windowType() == Qt::Popup))
evaluated: (windowType() == Qt::Popup)
TRUEFALSE
yes
Evaluation Count:553
yes
Evaluation Count:31549
553-31549
114 (static_cast<QApplication *>(QCoreApplication::instance()))->d_func()->closePopup(this);
executed: (static_cast<QApplication *>(QCoreApplication::instance()))->d_func()->closePopup(this);
Execution Count:553
553
115 -
116 if (this == QApplicationPrivate::active_window)
partially evaluated: this == QApplicationPrivate::active_window
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:32102
0-32102
117 QApplication::setActiveWindow(0);
never executed: QApplication::setActiveWindow(0);
0
118 if (QWidget::mouseGrabber() == this)
partially evaluated: QWidget::mouseGrabber() == this
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:32102
0-32102
119 releaseMouse();
never executed: releaseMouse();
0
120 if (QWidget::keyboardGrabber() == this)
evaluated: QWidget::keyboardGrabber() == this
TRUEFALSE
yes
Evaluation Count:1
yes
Evaluation Count:32101
1-32101
121 releaseKeyboard();
executed: releaseKeyboard();
Execution Count:1
1
122 -
123 setAttribute(Qt::WA_WState_Created, false); -
124 -
125 if (windowType() != Qt::Desktop) {
evaluated: windowType() != Qt::Desktop
TRUEFALSE
yes
Evaluation Count:31753
yes
Evaluation Count:349
349-31753
126 if (destroySubWindows) {
partially evaluated: destroySubWindows
TRUEFALSE
yes
Evaluation Count:31753
no
Evaluation Count:0
0-31753
127 QObjectList childList(children()); -
128 for (int i = 0; i < childList.size(); i++) {
evaluated: i < childList.size()
TRUEFALSE
yes
Evaluation Count:4314
yes
Evaluation Count:31753
4314-31753
129 QWidget *widget = qobject_cast<QWidget *>(childList.at(i)); -
130 if (widget && widget->testAttribute(Qt::WA_NativeWindow)) {
evaluated: widget
TRUEFALSE
yes
Evaluation Count:2855
yes
Evaluation Count:1459
partially evaluated: widget->testAttribute(Qt::WA_NativeWindow)
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:2855
0-2855
131 if (widget->windowHandle()) {
never evaluated: widget->windowHandle()
0
132 widget->destroy(); -
133 }
never executed: }
0
134 }
never executed: }
0
135 }
executed: }
Execution Count:4314
4314
136 }
executed: }
Execution Count:31753
31753
137 if (destroyWindow) {
partially evaluated: destroyWindow
TRUEFALSE
yes
Evaluation Count:31753
no
Evaluation Count:0
0-31753
138 d->deleteTLSysExtra(); -
139 } else {
executed: }
Execution Count:31753
31753
140 if (parentWidget() && parentWidget()->testAttribute(Qt::WA_WState_Created)) {
never evaluated: parentWidget()
never evaluated: parentWidget()->testAttribute(Qt::WA_WState_Created)
0
141 d->hide_sys(); -
142 }
never executed: }
0
143 }
never executed: }
0
144 -
145 d->setWinId(0); -
146 }
executed: }
Execution Count:31753
31753
147}
executed: }
Execution Count:32102
32102
148 -
149void QWidgetPrivate::setParent_sys(QWidget *newparent, Qt::WindowFlags f) -
150{ -
151 QWidget * const q = q_func(); -
152 -
153 Qt::WindowFlags oldFlags = data.window_flags; -
154 bool wasCreated = q->testAttribute(Qt::WA_WState_Created); -
155 -
156 int targetScreen = -1; -
157 -
158 if (newparent && newparent->windowType() == Qt::Desktop) {
evaluated: newparent
TRUEFALSE
yes
Evaluation Count:30397
yes
Evaluation Count:428
partially evaluated: newparent->windowType() == Qt::Desktop
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:30397
0-30397
159 -
160 -
161 -
162 -
163 targetScreen = newparent->window()->d_func()->topData()->screenIndex; -
164 newparent = 0; -
165 }
never executed: }
0
166 -
167 setWinId(0); -
168 -
169 if (parent != newparent) {
evaluated: parent != newparent
TRUEFALSE
yes
Evaluation Count:30468
yes
Evaluation Count:357
357-30468
170 QObjectPrivate::setParent_helper(newparent); -
171 if (q->windowHandle()) {
evaluated: q->windowHandle()
TRUEFALSE
yes
Evaluation Count:31
yes
Evaluation Count:30437
31-30437
172 q->windowHandle()->setFlags(f); -
173 QWidget *parentWithWindow = -
174 newparent ? (newparent->windowHandle() ? newparent : newparent->nativeParentWidget()) : 0;
evaluated: newparent
TRUEFALSE
yes
Evaluation Count:30
yes
Evaluation Count:1
1-30
175 if (parentWithWindow) {
evaluated: parentWithWindow
TRUEFALSE
yes
Evaluation Count:27
yes
Evaluation Count:4
4-27
176 if (f & Qt::Window) {
evaluated: f & Qt::Window
TRUEFALSE
yes
Evaluation Count:5
yes
Evaluation Count:22
5-22
177 q->windowHandle()->setTransientParent(parentWithWindow->windowHandle()); -
178 q->windowHandle()->setParent(0); -
179 } else {
executed: }
Execution Count:5
5
180 q->windowHandle()->setTransientParent(0); -
181 q->windowHandle()->setParent(parentWithWindow->windowHandle()); -
182 }
executed: }
Execution Count:22
22
183 } else { -
184 q->windowHandle()->setTransientParent(0); -
185 q->windowHandle()->setParent(0); -
186 }
executed: }
Execution Count:4
4
187 } -
188 }
executed: }
Execution Count:30468
30468
189 -
190 if (!newparent) {
evaluated: !newparent
TRUEFALSE
yes
Evaluation Count:428
yes
Evaluation Count:30397
428-30397
191 f |= Qt::Window; -
192 if (targetScreen == -1) {
partially evaluated: targetScreen == -1
TRUEFALSE
yes
Evaluation Count:428
no
Evaluation Count:0
0-428
193 if (parent)
partially evaluated: parent
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:428
0-428
194 targetScreen = q->parentWidget()->window()->d_func()->topData()->screenIndex;
never executed: targetScreen = q->parentWidget()->window()->d_func()->topData()->screenIndex;
0
195 }
executed: }
Execution Count:428
428
196 }
executed: }
Execution Count:428
428
197 -
198 bool explicitlyHidden = q->testAttribute(Qt::WA_WState_Hidden) && q->testAttribute(Qt::WA_WState_ExplicitShowHide);
evaluated: q->testAttribute(Qt::WA_WState_Hidden)
TRUEFALSE
yes
Evaluation Count:30612
yes
Evaluation Count:213
evaluated: q->testAttribute(Qt::WA_WState_ExplicitShowHide)
TRUEFALSE
yes
Evaluation Count:180
yes
Evaluation Count:30432
180-30612
199 -
200 -
201 if (!(f&Qt::Window) && (oldFlags&Qt::Window) && !q->testAttribute(Qt::WA_NativeWindow)) {
evaluated: !(f&Qt::Window)
TRUEFALSE
yes
Evaluation Count:29810
yes
Evaluation Count:1015
evaluated: (oldFlags&Qt::Window)
TRUEFALSE
yes
Evaluation Count:2262
yes
Evaluation Count:27548
partially evaluated: !q->testAttribute(Qt::WA_NativeWindow)
TRUEFALSE
yes
Evaluation Count:2262
no
Evaluation Count:0
0-29810
202 -
203 q->destroy(); -
204 }
executed: }
Execution Count:2262
2262
205 -
206 adjustFlags(f, q); -
207 data.window_flags = f; -
208 q->setAttribute(Qt::WA_WState_Created, false); -
209 q->setAttribute(Qt::WA_WState_Visible, false); -
210 q->setAttribute(Qt::WA_WState_Hidden, false); -
211 -
212 if (newparent && wasCreated && (q->testAttribute(Qt::WA_NativeWindow) || (f & Qt::Window)))
evaluated: newparent
TRUEFALSE
yes
Evaluation Count:30397
yes
Evaluation Count:428
evaluated: wasCreated
TRUEFALSE
yes
Evaluation Count:20
yes
Evaluation Count:30377
partially evaluated: q->testAttribute(Qt::WA_NativeWindow)
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:20
evaluated: (f & Qt::Window)
TRUEFALSE
yes
Evaluation Count:13
yes
Evaluation Count:7
0-30397
213 q->createWinId();
executed: q->createWinId();
Execution Count:13
13
214 -
215 if (q->isWindow() || (!newparent || newparent->isVisible()) || explicitlyHidden)
evaluated: q->isWindow()
TRUEFALSE
yes
Evaluation Count:1015
yes
Evaluation Count:29810
partially evaluated: !newparent
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:29810
evaluated: newparent->isVisible()
TRUEFALSE
yes
Evaluation Count:397
yes
Evaluation Count:29413
evaluated: explicitlyHidden
TRUEFALSE
yes
Evaluation Count:13
yes
Evaluation Count:29400
0-29810
216 q->setAttribute(Qt::WA_WState_Hidden);
executed: q->setAttribute(Qt::WA_WState_Hidden);
Execution Count:1425
1425
217 q->setAttribute(Qt::WA_WState_ExplicitShowHide, explicitlyHidden); -
218 -
219 -
220 if (!newparent && targetScreen != -1) {
evaluated: !newparent
TRUEFALSE
yes
Evaluation Count:428
yes
Evaluation Count:30397
partially evaluated: targetScreen != -1
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:428
0-30397
221 if (maybeTopData())
never evaluated: maybeTopData()
0
222 maybeTopData()->screenIndex = targetScreen;
never executed: maybeTopData()->screenIndex = targetScreen;
0
223 -
224 if (q->testAttribute(Qt::WA_WState_Created)) {
never evaluated: q->testAttribute(Qt::WA_WState_Created)
0
225 q->windowHandle()->setScreen(QGuiApplication::screens().value(targetScreen, 0)); -
226 }
never executed: }
0
227 }
never executed: }
0
228}
executed: }
Execution Count:30825
30825
229 -
230QPoint QWidget::mapToGlobal(const QPoint &pos) const -
231{ -
232 int x = pos.x(), y = pos.y(); -
233 const QWidget *w = this; -
234 while (w) {
evaluated: w
TRUEFALSE
yes
Evaluation Count:27485
yes
Evaluation Count:137
137-27485
235 QWindow *window = w->windowHandle(); -
236 if (window && window->handle())
evaluated: window
TRUEFALSE
yes
Evaluation Count:13543
yes
Evaluation Count:13942
partially evaluated: window->handle()
TRUEFALSE
yes
Evaluation Count:13543
no
Evaluation Count:0
0-13942
237 return window->mapToGlobal(QPoint(x, y));
executed: return window->mapToGlobal(QPoint(x, y));
Execution Count:13543
13543
238 -
239 x += w->data->crect.x(); -
240 y += w->data->crect.y(); -
241 w = w->isWindow() ? 0 : w->parentWidget();
evaluated: w->isWindow()
TRUEFALSE
yes
Evaluation Count:137
yes
Evaluation Count:13805
137-13805
242 }
executed: }
Execution Count:13942
13942
243 return QPoint(x, y);
executed: return QPoint(x, y);
Execution Count:137
137
244} -
245 -
246QPoint QWidget::mapFromGlobal(const QPoint &pos) const -
247{ -
248 int x = pos.x(), y = pos.y(); -
249 const QWidget *w = this; -
250 while (w) {
evaluated: w
TRUEFALSE
yes
Evaluation Count:8586
yes
Evaluation Count:41
41-8586
251 QWindow *window = w->windowHandle(); -
252 if (window && window->handle())
evaluated: window
TRUEFALSE
yes
Evaluation Count:4705
yes
Evaluation Count:3881
evaluated: window->handle()
TRUEFALSE
yes
Evaluation Count:4684
yes
Evaluation Count:21
21-4705
253 return window->mapFromGlobal(QPoint(x, y));
executed: return window->mapFromGlobal(QPoint(x, y));
Execution Count:4684
4684
254 -
255 x -= w->data->crect.x(); -
256 y -= w->data->crect.y(); -
257 w = w->isWindow() ? 0 : w->parentWidget();
evaluated: w->isWindow()
TRUEFALSE
yes
Evaluation Count:41
yes
Evaluation Count:3861
41-3861
258 }
executed: }
Execution Count:3902
3902
259 return QPoint(x, y);
executed: return QPoint(x, y);
Execution Count:41
41
260} -
261 -
262void QWidgetPrivate::updateSystemBackground() {} -
263 -
264 -
265void QWidgetPrivate::setCursor_sys(const QCursor &cursor) -
266{ -
267 (void)cursor;; -
268 QWidget * const q = q_func(); -
269 qt_qpa_set_cursor(q, false); -
270}
executed: }
Execution Count:1905
1905
271 -
272void QWidgetPrivate::unsetCursor_sys() -
273{ -
274 QWidget * const q = q_func(); -
275 qt_qpa_set_cursor(q, false); -
276}
executed: }
Execution Count:57
57
277 -
278 -
279 -
280void QWidgetPrivate::setWindowTitle_sys(const QString &caption) -
281{ -
282 QWidget * const q = q_func(); -
283 if (!q->isWindow())
evaluated: !q->isWindow()
TRUEFALSE
yes
Evaluation Count:8
yes
Evaluation Count:1971
8-1971
284 return;
executed: return;
Execution Count:8
8
285 -
286 if (QWindow *window = q->windowHandle())
partially evaluated: QWindow *window = q->windowHandle()
TRUEFALSE
yes
Evaluation Count:1971
no
Evaluation Count:0
0-1971
287 window->setTitle(caption);
executed: window->setTitle(caption);
Execution Count:1971
1971
288 -
289}
executed: }
Execution Count:1971
1971
290 -
291void QWidgetPrivate::setWindowFilePath_sys(const QString &filePath) -
292{ -
293 QWidget * const q = q_func(); -
294 if (!q->isWindow())
never evaluated: !q->isWindow()
0
295 return;
never executed: return;
0
296 -
297 if (QWindow *window = q->windowHandle())
never evaluated: QWindow *window = q->windowHandle()
0
298 window->setFilePath(filePath);
never executed: window->setFilePath(filePath);
0
299}
never executed: }
0
300 -
301void QWidgetPrivate::setWindowIcon_sys() -
302{ -
303 QWidget * const q = q_func(); -
304 if (QWindow *window = q->windowHandle())
partially evaluated: QWindow *window = q->windowHandle()
TRUEFALSE
yes
Evaluation Count:1609
no
Evaluation Count:0
0-1609
305 window->setIcon(q->windowIcon());
executed: window->setIcon(q->windowIcon());
Execution Count:1609
1609
306}
executed: }
Execution Count:1609
1609
307 -
308void QWidgetPrivate::setWindowIconText_sys(const QString &iconText) -
309{ -
310 (void)iconText;; -
311}
executed: }
Execution Count:1776
1776
312 -
313QWidget *qt_pressGrab = 0; -
314QWidget *qt_mouseGrb = 0; -
315static QWidget *keyboardGrb = 0; -
316 -
317static inline QWindow *grabberWindow(const QWidget *w) -
318{ -
319 QWindow *window = w->windowHandle(); -
320 if (!window)
evaluated: !window
TRUEFALSE
yes
Evaluation Count:4
yes
Evaluation Count:287
4-287
321 if (const QWidget *nativeParent = w->nativeParentWidget())
partially evaluated: const QWidget *nativeParent = w->nativeParentWidget()
TRUEFALSE
yes
Evaluation Count:4
no
Evaluation Count:0
0-4
322 window = nativeParent->windowHandle();
executed: window = nativeParent->windowHandle();
Execution Count:4
4
323 return window;
executed: return window;
Execution Count:291
291
324} -
325 -
326void QWidget::grabMouse() -
327{ -
328 if (qt_mouseGrb)
partially evaluated: qt_mouseGrb
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:2
0-2
329 qt_mouseGrb->releaseMouse();
never executed: qt_mouseGrb->releaseMouse();
0
330 -
331 if (QWindow *window = grabberWindow(this))
partially evaluated: QWindow *window = grabberWindow(this)
TRUEFALSE
yes
Evaluation Count:2
no
Evaluation Count:0
0-2
332 window->setMouseGrabEnabled(true);
executed: window->setMouseGrabEnabled(true);
Execution Count:2
2
333 -
334 qt_mouseGrb = this; -
335 qt_pressGrab = 0; -
336}
executed: }
Execution Count:2
2
337 -
338 -
339void QWidget::grabMouse(const QCursor &cursor) -
340{ -
341 (void)cursor;; -
342 grabMouse(); -
343}
never executed: }
0
344 -
345 -
346bool QWidgetPrivate::stealMouseGrab(bool grab) -
347{ -
348 -
349 -
350 QWidget * const q = q_func(); -
351 QWindow *window = grabberWindow(q); -
352 return window ? window->setMouseGrabEnabled(grab) : false;
executed: return window ? window->setMouseGrabEnabled(grab) : false;
Execution Count:142
142
353} -
354 -
355void QWidget::releaseMouse() -
356{ -
357 if (qt_mouseGrb == this) {
partially evaluated: qt_mouseGrb == this
TRUEFALSE
yes
Evaluation Count:2
no
Evaluation Count:0
0-2
358 if (QWindow *window = grabberWindow(this))
partially evaluated: QWindow *window = grabberWindow(this)
TRUEFALSE
yes
Evaluation Count:2
no
Evaluation Count:0
0-2
359 window->setMouseGrabEnabled(false);
executed: window->setMouseGrabEnabled(false);
Execution Count:2
2
360 qt_mouseGrb = 0; -
361 }
executed: }
Execution Count:2
2
362}
executed: }
Execution Count:2
2
363 -
364void QWidget::grabKeyboard() -
365{ -
366 if (keyboardGrb)
partially evaluated: keyboardGrb
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:1
0-1
367 keyboardGrb->releaseKeyboard();
never executed: keyboardGrb->releaseKeyboard();
0
368 if (QWindow *window = grabberWindow(this))
partially evaluated: QWindow *window = grabberWindow(this)
TRUEFALSE
yes
Evaluation Count:1
no
Evaluation Count:0
0-1
369 window->setKeyboardGrabEnabled(true);
executed: window->setKeyboardGrabEnabled(true);
Execution Count:1
1
370 keyboardGrb = this; -
371}
executed: }
Execution Count:1
1
372 -
373bool QWidgetPrivate::stealKeyboardGrab(bool grab) -
374{ -
375 -
376 -
377 QWidget * const q = q_func(); -
378 QWindow *window = grabberWindow(q); -
379 return window ? window->setKeyboardGrabEnabled(grab) : false;
executed: return window ? window->setKeyboardGrabEnabled(grab) : false;
Execution Count:143
143
380} -
381 -
382void QWidget::releaseKeyboard() -
383{ -
384 if (keyboardGrb == this) {
partially evaluated: keyboardGrb == this
TRUEFALSE
yes
Evaluation Count:1
no
Evaluation Count:0
0-1
385 if (QWindow *window = grabberWindow(this))
partially evaluated: QWindow *window = grabberWindow(this)
TRUEFALSE
yes
Evaluation Count:1
no
Evaluation Count:0
0-1
386 window->setKeyboardGrabEnabled(false);
executed: window->setKeyboardGrabEnabled(false);
Execution Count:1
1
387 keyboardGrb = 0; -
388 }
executed: }
Execution Count:1
1
389}
executed: }
Execution Count:1
1
390 -
391QWidget *QWidget::mouseGrabber() -
392{ -
393 if (qt_mouseGrb)
partially evaluated: qt_mouseGrb
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:33995
0-33995
394 return qt_mouseGrb;
never executed: return qt_mouseGrb;
0
395 return qt_pressGrab;
executed: return qt_pressGrab;
Execution Count:33995
33995
396} -
397 -
398QWidget *QWidget::keyboardGrabber() -
399{ -
400 return keyboardGrb;
executed: return keyboardGrb;
Execution Count:32253
32253
401} -
402 -
403void QWidget::activateWindow() -
404{ -
405 QWindow *const wnd = window()->windowHandle(); -
406 -
407 if (wnd)
partially evaluated: wnd
TRUEFALSE
yes
Evaluation Count:123
no
Evaluation Count:0
0-123
408 wnd->requestActivate();
executed: wnd->requestActivate();
Execution Count:123
123
409}
executed: }
Execution Count:123
123
410 -
411 -
412 -
413static inline QRect positionTopLevelWindow(QRect geometry, const QScreen *screen) -
414{ -
415 if (screen && geometry.x() == 0 && geometry.y() == 0) {
partially evaluated: screen
TRUEFALSE
yes
Evaluation Count:1450
no
Evaluation Count:0
evaluated: geometry.x() == 0
TRUEFALSE
yes
Evaluation Count:1221
yes
Evaluation Count:229
partially evaluated: geometry.y() == 0
TRUEFALSE
yes
Evaluation Count:1221
no
Evaluation Count:0
0-1450
416 const QRect availableGeometry = screen->availableGeometry(); -
417 if (availableGeometry.width() > geometry.width()
evaluated: availableGeometry.width() > geometry.width()
TRUEFALSE
yes
Evaluation Count:1214
yes
Evaluation Count:7
7-1214
418 && availableGeometry.height() > geometry.height())
evaluated: availableGeometry.height() > geometry.height()
TRUEFALSE
yes
Evaluation Count:1212
yes
Evaluation Count:2
2-1212
419 geometry.moveCenter(availableGeometry.center());
executed: geometry.moveCenter(availableGeometry.center());
Execution Count:1212
1212
420 }
executed: }
Execution Count:1221
1221
421 return geometry;
executed: return geometry;
Execution Count:1450
1450
422} -
423 -
424 -
425 -
426 -
427void QWidgetPrivate::fixPosIncludesFrame() -
428{ -
429 QWidget * const q = q_func(); -
430 if (QTLWExtra *te = maybeTopData()) {
evaluated: QTLWExtra *te = maybeTopData()
TRUEFALSE
yes
Evaluation Count:5182
yes
Evaluation Count:515
515-5182
431 if (te->posIncludesFrame) {
evaluated: te->posIncludesFrame
TRUEFALSE
yes
Evaluation Count:568
yes
Evaluation Count:4614
568-4614
432 -
433 -
434 if (q->testAttribute(Qt::WA_DontShowOnScreen)) {
partially evaluated: q->testAttribute(Qt::WA_DontShowOnScreen)
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:568
0-568
435 te->posIncludesFrame = 0; -
436 } else {
never executed: }
0
437 if (q->windowHandle()) {
partially evaluated: q->windowHandle()
TRUEFALSE
yes
Evaluation Count:568
no
Evaluation Count:0
0-568
438 updateFrameStrut(); -
439 if (!q->data->fstrut_dirty) {
partially evaluated: !q->data->fstrut_dirty
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:568
0-568
440 data.crect.translate(te->frameStrut.x(), te->frameStrut.y()); -
441 te->posIncludesFrame = 0; -
442 }
never executed: }
0
443 }
executed: }
Execution Count:568
568
444 }
executed: }
Execution Count:568
568
445 } -
446 }
executed: }
Execution Count:5182
5182
447}
executed: }
Execution Count:5697
5697
448 -
449void QWidgetPrivate::show_sys() -
450{ -
451 QWidget * const q = q_func(); -
452 -
453 QWindow *window = q->windowHandle(); -
454 -
455 if (q->testAttribute(Qt::WA_DontShowOnScreen)) {
evaluated: q->testAttribute(Qt::WA_DontShowOnScreen)
TRUEFALSE
yes
Evaluation Count:3
yes
Evaluation Count:10803
3-10803
456 invalidateBuffer(q->rect()); -
457 q->setAttribute(Qt::WA_Mapped); -
458 if (q->isWindow() && q->windowModality() != Qt::NonModal && window) {
partially evaluated: q->isWindow()
TRUEFALSE
yes
Evaluation Count:3
no
Evaluation Count:0
partially evaluated: q->windowModality() != Qt::NonModal
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:3
never evaluated: window
0-3
459 -
460 QGuiApplicationPrivate::showModalWindow(window); -
461 }
never executed: }
0
462 return;
executed: return;
Execution Count:3
3
463 } -
464 -
465 QApplication::postEvent(q, new QUpdateLaterEvent(q->rect())); -
466 -
467 if (!q->isWindow() && !q->testAttribute(Qt::WA_NativeWindow))
evaluated: !q->isWindow()
TRUEFALSE
yes
Evaluation Count:9256
yes
Evaluation Count:1547
evaluated: !q->testAttribute(Qt::WA_NativeWindow)
TRUEFALSE
yes
Evaluation Count:9252
yes
Evaluation Count:4
4-9256
468 return;
executed: return;
Execution Count:9252
9252
469 -
470 if (window) {
partially evaluated: window
TRUEFALSE
yes
Evaluation Count:1551
no
Evaluation Count:0
0-1551
471 if (q->isWindow())
evaluated: q->isWindow()
TRUEFALSE
yes
Evaluation Count:1547
yes
Evaluation Count:4
4-1547
472 fixPosIncludesFrame();
executed: fixPosIncludesFrame();
Execution Count:1547
1547
473 QRect geomRect = q->geometry(); -
474 if (q->isWindow()) {
evaluated: q->isWindow()
TRUEFALSE
yes
Evaluation Count:1547
yes
Evaluation Count:4
4-1547
475 if (!q->testAttribute(Qt::WA_Moved))
evaluated: !q->testAttribute(Qt::WA_Moved)
TRUEFALSE
yes
Evaluation Count:1450
yes
Evaluation Count:97
97-1450
476 geomRect = positionTopLevelWindow(geomRect, window->screen());
executed: geomRect = positionTopLevelWindow(geomRect, window->screen());
Execution Count:1450
1450
477 } else {
executed: }
Execution Count:1547
1547
478 QPoint topLeftOfWindow = q->mapTo(q->nativeParentWidget(),QPoint()); -
479 geomRect.moveTopLeft(topLeftOfWindow); -
480 }
executed: }
Execution Count:4
4
481 const QRect windowRect = window->geometry(); -
482 if (windowRect != geomRect) {
evaluated: windowRect != geomRect
TRUEFALSE
yes
Evaluation Count:1222
yes
Evaluation Count:329
329-1222
483 window->setGeometry(geomRect); -
484 }
executed: }
Execution Count:1222
1222
485 -
486 if (QBackingStore *store = q->backingStore()) {
partially evaluated: QBackingStore *store = q->backingStore()
TRUEFALSE
yes
Evaluation Count:1551
no
Evaluation Count:0
0-1551
487 if (store->size() != geomRect.size()) {
evaluated: store->size() != geomRect.size()
TRUEFALSE
yes
Evaluation Count:1439
yes
Evaluation Count:112
112-1439
488 store->resize(geomRect.size()); -
489 }
executed: }
Execution Count:1439
1439
490 }
executed: }
Execution Count:1551
1551
491 -
492 -
493 qt_qpa_set_cursor(q, false); -
494 -
495 invalidateBuffer(q->rect()); -
496 window->setVisible(true); -
497 }
executed: }
Execution Count:1551
1551
498}
executed: }
Execution Count:1551
1551
499 -
500 -
501void QWidgetPrivate::hide_sys() -
502{ -
503 QWidget * const q = q_func(); -
504 -
505 QWindow *window = q->windowHandle(); -
506 -
507 if (q->testAttribute(Qt::WA_DontShowOnScreen)) {
partially evaluated: q->testAttribute(Qt::WA_DontShowOnScreen)
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:2733
0-2733
508 q->setAttribute(Qt::WA_Mapped, false); -
509 if (q->isWindow() && q->windowModality() != Qt::NonModal && window) {
never evaluated: q->isWindow()
never evaluated: q->windowModality() != Qt::NonModal
never evaluated: window
0
510 -
511 QGuiApplicationPrivate::hideModalWindow(window); -
512 }
never executed: }
0
513 -
514 }
never executed: }
0
515 -
516 deactivateWidgetCleanup(); -
517 -
518 if (!q->isWindow()) {
evaluated: !q->isWindow()
TRUEFALSE
yes
Evaluation Count:1248
yes
Evaluation Count:1485
1248-1485
519 QWidget *p = q->parentWidget(); -
520 if (p &&p->isVisible()) {
partially evaluated: p
TRUEFALSE
yes
Evaluation Count:1248
no
Evaluation Count:0
evaluated: p->isVisible()
TRUEFALSE
yes
Evaluation Count:901
yes
Evaluation Count:347
0-1248
521 invalidateBuffer(q->rect()); -
522 }
executed: }
Execution Count:901
901
523 } else {
executed: }
Execution Count:1248
1248
524 invalidateBuffer(q->rect()); -
525 }
executed: }
Execution Count:1485
1485
526 -
527 if (window)
evaluated: window
TRUEFALSE
yes
Evaluation Count:1485
yes
Evaluation Count:1248
1248-1485
528 window->setVisible(false);
executed: window->setVisible(false);
Execution Count:1485
1485
529}
executed: }
Execution Count:2733
2733
530 -
531Qt::WindowState effectiveState(Qt::WindowStates state) -
532 { -
533 if (state & Qt::WindowMinimized)
evaluated: state & Qt::WindowMinimized
TRUEFALSE
yes
Evaluation Count:54
yes
Evaluation Count:304
54-304
534 return Qt::WindowMinimized;
executed: return Qt::WindowMinimized;
Execution Count:54
54
535 else if (state & Qt::WindowFullScreen)
evaluated: state & Qt::WindowFullScreen
TRUEFALSE
yes
Evaluation Count:9
yes
Evaluation Count:295
9-295
536 return Qt::WindowFullScreen;
executed: return Qt::WindowFullScreen;
Execution Count:9
9
537 else if (state & Qt::WindowMaximized)
evaluated: state & Qt::WindowMaximized
TRUEFALSE
yes
Evaluation Count:120
yes
Evaluation Count:175
120-175
538 return Qt::WindowMaximized;
executed: return Qt::WindowMaximized;
Execution Count:120
120
539 return Qt::WindowNoState;
executed: return Qt::WindowNoState;
Execution Count:175
175
540 } -
541 -
542void QWidget::setWindowState(Qt::WindowStates newstate) -
543{ -
544 QWidgetPrivate * const d = d_func(); -
545 Qt::WindowStates oldstate = windowState(); -
546 if (oldstate == newstate)
evaluated: oldstate == newstate
TRUEFALSE
yes
Evaluation Count:14
yes
Evaluation Count:176
14-176
547 return;
executed: return;
Execution Count:14
14
548 if (isWindow() && !testAttribute(Qt::WA_WState_Created))
evaluated: isWindow()
TRUEFALSE
yes
Evaluation Count:29
yes
Evaluation Count:147
evaluated: !testAttribute(Qt::WA_WState_Created)
TRUEFALSE
yes
Evaluation Count:9
yes
Evaluation Count:20
9-147
549 create();
executed: create();
Execution Count:9
9
550 -
551 data->window_state = newstate; -
552 data->in_set_window_state = 1; -
553 Qt::WindowState newEffectiveState = effectiveState(newstate); -
554 Qt::WindowState oldEffectiveState = effectiveState(oldstate); -
555 if (isWindow() && newEffectiveState != oldEffectiveState) {
evaluated: isWindow()
TRUEFALSE
yes
Evaluation Count:29
yes
Evaluation Count:147
partially evaluated: newEffectiveState != oldEffectiveState
TRUEFALSE
yes
Evaluation Count:29
no
Evaluation Count:0
0-147
556 -
557 if (!testAttribute(Qt::WA_Resized) && !isVisible())
evaluated: !testAttribute(Qt::WA_Resized)
TRUEFALSE
yes
Evaluation Count:17
yes
Evaluation Count:12
evaluated: !isVisible()
TRUEFALSE
yes
Evaluation Count:7
yes
Evaluation Count:10
7-17
558 adjustSize();
executed: adjustSize();
Execution Count:7
7
559 -
560 d->createTLExtra(); -
561 if (oldEffectiveState == Qt::WindowNoState)
evaluated: oldEffectiveState == Qt::WindowNoState
TRUEFALSE
yes
Evaluation Count:18
yes
Evaluation Count:11
11-18
562 d->topData()->normalGeometry = geometry();
executed: d->topData()->normalGeometry = geometry();
Execution Count:18
18
563 -
564 qt_noop(); -
565 windowHandle()->setWindowState(newEffectiveState); -
566 }
executed: }
Execution Count:29
29
567 data->in_set_window_state = 0; -
568 -
569 if (newstate & Qt::WindowActive)
evaluated: newstate & Qt::WindowActive
TRUEFALSE
yes
Evaluation Count:83
yes
Evaluation Count:93
83-93
570 activateWindow();
executed: activateWindow();
Execution Count:83
83
571 -
572 QWindowStateChangeEvent e(oldstate); -
573 QApplication::sendEvent(this, &e); -
574}
executed: }
Execution Count:176
176
575 -
576void QWidgetPrivate::setFocus_sys() -
577{ -
578 QWidget * const q = q_func(); -
579 -
580 const QWidget *topLevel = q->window(); -
581 if (topLevel->windowType() != Qt::Popup) {
evaluated: topLevel->windowType() != Qt::Popup
TRUEFALSE
yes
Evaluation Count:827
yes
Evaluation Count:14
14-827
582 if (QWindow *nativeWindow = q->window()->windowHandle()) {
partially evaluated: QWindow *nativeWindow = q->window()->windowHandle()
TRUEFALSE
yes
Evaluation Count:827
no
Evaluation Count:0
0-827
583 if (nativeWindow != QGuiApplication::focusWindow()
evaluated: nativeWindow != QGuiApplication::focusWindow()
TRUEFALSE
yes
Evaluation Count:85
yes
Evaluation Count:742
85-742
584 && q->testAttribute(Qt::WA_WState_Created)) {
partially evaluated: q->testAttribute(Qt::WA_WState_Created)
TRUEFALSE
yes
Evaluation Count:85
no
Evaluation Count:0
0-85
585 nativeWindow->requestActivate(); -
586 }
executed: }
Execution Count:85
85
587 }
executed: }
Execution Count:827
827
588 }
executed: }
Execution Count:827
827
589}
executed: }
Execution Count:841
841
590 -
591void QWidgetPrivate::raise_sys() -
592{ -
593 QWidget * const q = q_func(); -
594 if (q->isWindow() || q->testAttribute(Qt::WA_NativeWindow)) {
evaluated: q->isWindow()
TRUEFALSE
yes
Evaluation Count:92
yes
Evaluation Count:1864
partially evaluated: q->testAttribute(Qt::WA_NativeWindow)
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:1864
0-1864
595 q->windowHandle()->raise(); -
596 }
executed: }
Execution Count:92
92
597}
executed: }
Execution Count:1956
1956
598 -
599void QWidgetPrivate::lower_sys() -
600{ -
601 QWidget * const q = q_func(); -
602 if (q->isWindow() || q->testAttribute(Qt::WA_NativeWindow)) {
partially evaluated: q->isWindow()
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:37
partially evaluated: q->testAttribute(Qt::WA_NativeWindow)
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:37
0-37
603 qt_noop(); -
604 q->windowHandle()->lower(); -
605 } else if (QWidget *p = q->parentWidget()) {
never executed: }
partially evaluated: QWidget *p = q->parentWidget()
TRUEFALSE
yes
Evaluation Count:37
no
Evaluation Count:0
0-37
606 setDirtyOpaqueRegion(); -
607 p->d_func()->invalidateBuffer(effectiveRectFor(q->geometry())); -
608 }
executed: }
Execution Count:37
37
609} -
610 -
611void QWidgetPrivate::stackUnder_sys(QWidget*) -
612{ -
613 QWidget * const q = q_func(); -
614 if (QWidget *p = q->parentWidget()) {
partially evaluated: QWidget *p = q->parentWidget()
TRUEFALSE
yes
Evaluation Count:1
no
Evaluation Count:0
0-1
615 setDirtyOpaqueRegion(); -
616 p->d_func()->invalidateBuffer(effectiveRectFor(q->geometry())); -
617 }
executed: }
Execution Count:1
1
618}
executed: }
Execution Count:1
1
619 -
620void QWidgetPrivate::setGeometry_sys(int x, int y, int w, int h, bool isMove) -
621{ -
622 QWidget * const q = q_func(); -
623 if (extra) {
evaluated: extra
TRUEFALSE
yes
Evaluation Count:15628
yes
Evaluation Count:6972
6972-15628
624 w = qMin(w,extra->maxw); -
625 h = qMin(h,extra->maxh); -
626 w = qMax(w,extra->minw); -
627 h = qMax(h,extra->minh); -
628 }
executed: }
Execution Count:15628
15628
629 -
630 QPoint oldp = q->geometry().topLeft(); -
631 QSize olds = q->size(); -
632 QRect r(x, y, w, h); -
633 -
634 bool isResize = olds != r.size(); -
635 isMove = oldp != r.topLeft(); -
636 -
637 -
638 -
639 -
640 if (r.size() == olds && oldp == r.topLeft())
evaluated: r.size() == olds
TRUEFALSE
yes
Evaluation Count:16340
yes
Evaluation Count:6260
evaluated: oldp == r.topLeft()
TRUEFALSE
yes
Evaluation Count:15684
yes
Evaluation Count:656
656-16340
641 return;
executed: return;
Execution Count:15684
15684
642 -
643 if (!data.in_set_window_state) {
evaluated: !data.in_set_window_state
TRUEFALSE
yes
Evaluation Count:6910
yes
Evaluation Count:6
6-6910
644 q->data->window_state &= ~Qt::WindowMaximized; -
645 q->data->window_state &= ~Qt::WindowFullScreen; -
646 if (q->isWindow())
evaluated: q->isWindow()
TRUEFALSE
yes
Evaluation Count:1575
yes
Evaluation Count:5335
1575-5335
647 topData()->normalGeometry = QRect(0, 0, -1, -1);
executed: topData()->normalGeometry = QRect(0, 0, -1, -1);
Execution Count:1575
1575
648 }
executed: }
Execution Count:6910
6910
649 -
650 QPoint oldPos = q->pos(); -
651 data.crect = r; -
652 -
653 bool needsShow = false; -
654 -
655 if (!(data.window_state & Qt::WindowFullScreen) && (w == 0 || h == 0)) {
evaluated: !(data.window_state & Qt::WindowFullScreen)
TRUEFALSE
yes
Evaluation Count:6915
yes
Evaluation Count:1
evaluated: w == 0
TRUEFALSE
yes
Evaluation Count:129
yes
Evaluation Count:6786
evaluated: h == 0
TRUEFALSE
yes
Evaluation Count:118
yes
Evaluation Count:6668
1-6915
656 q->setAttribute(Qt::WA_OutsideWSRange, true); -
657 if (q->isVisible() && q->testAttribute(Qt::WA_Mapped))
evaluated: q->isVisible()
TRUEFALSE
yes
Evaluation Count:179
yes
Evaluation Count:68
partially evaluated: q->testAttribute(Qt::WA_Mapped)
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:179
0-179
658 hide_sys();
never executed: hide_sys();
0
659 data.crect = QRect(x, y, w, h); -
660 } else if (q->isVisible() && q->testAttribute(Qt::WA_OutsideWSRange)) {
executed: }
Execution Count:247
evaluated: q->isVisible()
TRUEFALSE
yes
Evaluation Count:3932
yes
Evaluation Count:2737
evaluated: q->testAttribute(Qt::WA_OutsideWSRange)
TRUEFALSE
yes
Evaluation Count:168
yes
Evaluation Count:3764
168-3932
661 q->setAttribute(Qt::WA_OutsideWSRange, false); -
662 needsShow = true; -
663 }
executed: }
Execution Count:168
168
664 -
665 if (q->isVisible()) {
evaluated: q->isVisible()
TRUEFALSE
yes
Evaluation Count:4111
yes
Evaluation Count:2805
2805-4111
666 if (!q->testAttribute(Qt::WA_DontShowOnScreen) && !q->testAttribute(Qt::WA_OutsideWSRange)) {
partially evaluated: !q->testAttribute(Qt::WA_DontShowOnScreen)
TRUEFALSE
yes
Evaluation Count:4111
no
Evaluation Count:0
evaluated: !q->testAttribute(Qt::WA_OutsideWSRange)
TRUEFALSE
yes
Evaluation Count:3932
yes
Evaluation Count:179
0-4111
667 if (q->windowHandle()) {
evaluated: q->windowHandle()
TRUEFALSE
yes
Evaluation Count:290
yes
Evaluation Count:3642
290-3642
668 if (q->isWindow()) {
partially evaluated: q->isWindow()
TRUEFALSE
yes
Evaluation Count:290
no
Evaluation Count:0
0-290
669 q->windowHandle()->setGeometry(q->geometry()); -
670 } else {
executed: }
Execution Count:290
290
671 QPoint posInNativeParent = q->mapTo(q->nativeParentWidget(),QPoint()); -
672 q->windowHandle()->setGeometry(QRect(posInNativeParent,r.size())); -
673 }
never executed: }
0
674 const QWidgetBackingStore *bs = maybeBackingStore(); -
675 if (bs->store) {
partially evaluated: bs->store
TRUEFALSE
yes
Evaluation Count:290
no
Evaluation Count:0
0-290
676 if (isResize)
evaluated: isResize
TRUEFALSE
yes
Evaluation Count:147
yes
Evaluation Count:143
143-147
677 bs->store->resize(r.size());
executed: bs->store->resize(r.size());
Execution Count:147
147
678 }
executed: }
Execution Count:290
290
679 -
680 if (needsShow)
evaluated: needsShow
TRUEFALSE
yes
Evaluation Count:17
yes
Evaluation Count:273
17-273
681 show_sys();
executed: show_sys();
Execution Count:17
17
682 }
executed: }
Execution Count:290
290
683 -
684 if (!q->isWindow()) {
evaluated: !q->isWindow()
TRUEFALSE
yes
Evaluation Count:3642
yes
Evaluation Count:290
290-3642
685 if (isMove && !isResize)
evaluated: isMove
TRUEFALSE
yes
Evaluation Count:800
yes
Evaluation Count:2842
evaluated: !isResize
TRUEFALSE
yes
Evaluation Count:369
yes
Evaluation Count:431
369-2842
686 moveRect(QRect(oldPos, olds), x - oldPos.x(), y - oldPos.y());
executed: moveRect(QRect(oldPos, olds), x - oldPos.x(), y - oldPos.y());
Execution Count:369
369
687 else -
688 invalidateBuffer_resizeHelper(oldPos, olds);
executed: invalidateBuffer_resizeHelper(oldPos, olds);
Execution Count:3273
3273
689 } -
690 }
executed: }
Execution Count:3932
3932
691 -
692 if (isMove) {
evaluated: isMove
TRUEFALSE
yes
Evaluation Count:1014
yes
Evaluation Count:3097
1014-3097
693 QMoveEvent e(q->pos(), oldPos); -
694 QApplication::sendEvent(q, &e); -
695 }
executed: }
Execution Count:1014
1014
696 if (isResize) {
evaluated: isResize
TRUEFALSE
yes
Evaluation Count:3599
yes
Evaluation Count:512
512-3599
697 QResizeEvent e(r.size(), olds); -
698 QApplication::sendEvent(q, &e); -
699 if (q->windowHandle())
evaluated: q->windowHandle()
TRUEFALSE
yes
Evaluation Count:148
yes
Evaluation Count:3451
148-3451
700 q->update();
executed: q->update();
Execution Count:148
148
701 }
executed: }
Execution Count:3599
3599
702 } else {
executed: }
Execution Count:4111
4111
703 if (isMove && q->pos() != oldPos)
evaluated: isMove
TRUEFALSE
yes
Evaluation Count:842
yes
Evaluation Count:1963
partially evaluated: q->pos() != oldPos
TRUEFALSE
yes
Evaluation Count:842
no
Evaluation Count:0
0-1963
704 q->setAttribute(Qt::WA_PendingMoveEvent, true);
executed: q->setAttribute(Qt::WA_PendingMoveEvent, true);
Execution Count:842
842
705 if (isResize)
evaluated: isResize
TRUEFALSE
yes
Evaluation Count:2661
yes
Evaluation Count:144
144-2661
706 q->setAttribute(Qt::WA_PendingResizeEvent, true);
executed: q->setAttribute(Qt::WA_PendingResizeEvent, true);
Execution Count:2661
2661
707 }
executed: }
Execution Count:2805
2805
708 -
709} -
710 -
711void QWidgetPrivate::setConstraints_sys() -
712{ -
713 QWidget * const q = q_func(); -
714 if (extra && q->windowHandle()) {
partially evaluated: extra
TRUEFALSE
yes
Evaluation Count:1821
no
Evaluation Count:0
evaluated: q->windowHandle()
TRUEFALSE
yes
Evaluation Count:573
yes
Evaluation Count:1248
0-1821
715 QWindow *win = q->windowHandle(); -
716 QWindowPrivate *winp = qt_window_private(win); -
717 -
718 winp->minimumSize = QSize(extra->minw, extra->minh); -
719 winp->maximumSize = QSize(extra->maxw, extra->maxh); -
720 -
721 if (extra->topextra) {
partially evaluated: extra->topextra
TRUEFALSE
yes
Evaluation Count:573
no
Evaluation Count:0
0-573
722 winp->baseSize = QSize(extra->topextra->basew, extra->topextra->baseh); -
723 winp->sizeIncrement = QSize(extra->topextra->incw, extra->topextra->inch); -
724 }
executed: }
Execution Count:573
573
725 -
726 if (winp->platformWindow) {
evaluated: winp->platformWindow
TRUEFALSE
yes
Evaluation Count:568
yes
Evaluation Count:5
5-568
727 fixPosIncludesFrame(); -
728 winp->platformWindow->propagateSizeHints(); -
729 }
executed: }
Execution Count:568
568
730 }
executed: }
Execution Count:573
573
731}
executed: }
Execution Count:1821
1821
732 -
733void QWidgetPrivate::scroll_sys(int dx, int dy) -
734{ -
735 QWidget * const q = q_func(); -
736 scrollChildren(dx, dy); -
737 scrollRect(q->rect(), dx, dy); -
738}
executed: }
Execution Count:1111
1111
739 -
740void QWidgetPrivate::scroll_sys(int dx, int dy, const QRect &r) -
741{ -
742 scrollRect(r, dx, dy); -
743}
never executed: }
0
744 -
745int QWidget::metric(PaintDeviceMetric m) const -
746{ -
747 const QWidgetPrivate * const d = d_func(); -
748 -
749 QScreen *screen = 0; -
750 if (QWidget *topLevel = window())
partially evaluated: QWidget *topLevel = window()
TRUEFALSE
yes
Evaluation Count:116993
no
Evaluation Count:0
0-116993
751 if (QWindow *topLevelWindow = topLevel->windowHandle()) {
evaluated: QWindow *topLevelWindow = topLevel->windowHandle()
TRUEFALSE
yes
Evaluation Count:37012
yes
Evaluation Count:79981
37012-79981
752 QPlatformScreen *platformScreen = QPlatformScreen::platformScreenForWindow(topLevelWindow); -
753 if (platformScreen)
partially evaluated: platformScreen
TRUEFALSE
yes
Evaluation Count:37012
no
Evaluation Count:0
0-37012
754 screen = platformScreen->screen();
executed: screen = platformScreen->screen();
Execution Count:37012
37012
755 }
executed: }
Execution Count:37012
37012
756 if (!screen && QGuiApplication::primaryScreen())
evaluated: !screen
TRUEFALSE
yes
Evaluation Count:79981
yes
Evaluation Count:37012
partially evaluated: QGuiApplication::primaryScreen()
TRUEFALSE
yes
Evaluation Count:79981
no
Evaluation Count:0
0-79981
757 screen = QGuiApplication::primaryScreen();
executed: screen = QGuiApplication::primaryScreen();
Execution Count:79981
79981
758 -
759 if (!screen) {
partially evaluated: !screen
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:116993
0-116993
760 if (m == PdmDpiX || m == PdmDpiY)
never evaluated: m == PdmDpiX
never evaluated: m == PdmDpiY
0
761 return 72;
never executed: return 72;
0
762 return QPaintDevice::metric(m);
never executed: return QPaintDevice::metric(m);
0
763 } -
764 int val; -
765 if (m == PdmWidth) {
evaluated: m == PdmWidth
TRUEFALSE
yes
Evaluation Count:6
yes
Evaluation Count:116987
6-116987
766 val = data->crect.width(); -
767 } else if (m == PdmWidthMM) {
executed: }
Execution Count:6
partially evaluated: m == PdmWidthMM
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:116987
0-116987
768 val = data->crect.width() * screen->physicalSize().width() / screen->geometry().width(); -
769 } else if (m == PdmHeight) {
never executed: }
evaluated: m == PdmHeight
TRUEFALSE
yes
Evaluation Count:6
yes
Evaluation Count:116981
0-116981
770 val = data->crect.height(); -
771 } else if (m == PdmHeightMM) {
executed: }
Execution Count:6
partially evaluated: m == PdmHeightMM
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:116981
0-116981
772 val = data->crect.height() * screen->physicalSize().height() / screen->geometry().height(); -
773 } else if (m == PdmDepth) {
never executed: }
evaluated: m == PdmDepth
TRUEFALSE
yes
Evaluation Count:3
yes
Evaluation Count:116978
0-116978
774 return screen->depth();
executed: return screen->depth();
Execution Count:3
3
775 } else if (m == PdmDpiX) {
evaluated: m == PdmDpiX
TRUEFALSE
yes
Evaluation Count:10
yes
Evaluation Count:116968
10-116968
776 if (d->extra && d->extra->customDpiX)
partially evaluated: d->extra
TRUEFALSE
yes
Evaluation Count:10
no
Evaluation Count:0
partially evaluated: d->extra->customDpiX
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:10
0-10
777 return d->extra->customDpiX;
never executed: return d->extra->customDpiX;
0
778 else if (d->parent)
partially evaluated: d->parent
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:10
0-10
779 return static_cast<QWidget *>(d->parent)->metric(m);
never executed: return static_cast<QWidget *>(d->parent)->metric(m);
0
780 return qRound(screen->logicalDotsPerInchX());
executed: return qRound(screen->logicalDotsPerInchX());
Execution Count:10
10
781 } else if (m == PdmDpiY) {
evaluated: m == PdmDpiY
TRUEFALSE
yes
Evaluation Count:116936
yes
Evaluation Count:32
32-116936
782 if (d->extra && d->extra->customDpiY)
evaluated: d->extra
TRUEFALSE
yes
Evaluation Count:29073
yes
Evaluation Count:87863
partially evaluated: d->extra->customDpiY
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:29073
0-87863
783 return d->extra->customDpiY;
never executed: return d->extra->customDpiY;
0
784 else if (d->parent)
evaluated: d->parent
TRUEFALSE
yes
Evaluation Count:69862
yes
Evaluation Count:47074
47074-69862
785 return static_cast<QWidget *>(d->parent)->metric(m);
executed: return static_cast<QWidget *>(d->parent)->metric(m);
Execution Count:69862
69862
786 return qRound(screen->logicalDotsPerInchY());
executed: return qRound(screen->logicalDotsPerInchY());
Execution Count:47074
47074
787 } else if (m == PdmPhysicalDpiX) {
evaluated: m == PdmPhysicalDpiX
TRUEFALSE
yes
Evaluation Count:16
yes
Evaluation Count:16
16
788 return qRound(screen->physicalDotsPerInchX());
executed: return qRound(screen->physicalDotsPerInchX());
Execution Count:16
16
789 } else if (m == PdmPhysicalDpiY) {
partially evaluated: m == PdmPhysicalDpiY
TRUEFALSE
yes
Evaluation Count:16
no
Evaluation Count:0
0-16
790 return qRound(screen->physicalDotsPerInchY());
executed: return qRound(screen->physicalDotsPerInchY());
Execution Count:16
16
791 } else { -
792 val = QPaintDevice::metric(m); -
793 }
never executed: }
0
794 return val;
executed: return val;
Execution Count:12
12
795} -
796 -
797 -
798 -
799 -
800 -
801 -
802QWindow *QWidget::windowHandle() const -
803{ -
804 const QWidgetPrivate * const d = d_func(); -
805 QTLWExtra *extra = d->maybeTopData(); -
806 if (extra)
evaluated: extra
TRUEFALSE
yes
Evaluation Count:232649
yes
Evaluation Count:275921
232649-275921
807 return extra->window;
executed: return extra->window;
Execution Count:232649
232649
808 -
809 return 0;
executed: return 0;
Execution Count:275921
275921
810} -
811 -
812void QWidgetPrivate::createSysExtra() -
813{ -
814} -
815 -
816void QWidgetPrivate::deleteSysExtra() -
817{ -
818 -
819} -
820 -
821void QWidgetPrivate::createTLSysExtra() -
822{ -
823 QWidget * const q = q_func(); -
824 extra->topextra->screenIndex = 0; -
825 extra->topextra->window = 0; -
826 if (q->testAttribute(Qt::WA_NativeWindow) || q->isWindow()) {
evaluated: q->testAttribute(Qt::WA_NativeWindow)
TRUEFALSE
yes
Evaluation Count:4
yes
Evaluation Count:2245
evaluated: q->isWindow()
TRUEFALSE
yes
Evaluation Count:2216
yes
Evaluation Count:29
4-2245
827 extra->topextra->window = new QWidgetWindow(q); -
828 if (extra->minw || extra->minh)
evaluated: extra->minw
TRUEFALSE
yes
Evaluation Count:184
yes
Evaluation Count:2036
evaluated: extra->minh
TRUEFALSE
yes
Evaluation Count:1
yes
Evaluation Count:2035
1-2036
829 extra->topextra->window->setMinimumSize(QSize(extra->minw, extra->minh));
executed: extra->topextra->window->setMinimumSize(QSize(extra->minw, extra->minh));
Execution Count:185
185
830 if (extra->maxw != ((1<<24)-1) || extra->maxh != ((1<<24)-1))
evaluated: extra->maxw != ((1<<24)-1)
TRUEFALSE
yes
Evaluation Count:180
yes
Evaluation Count:2040
evaluated: extra->maxh != ((1<<24)-1)
TRUEFALSE
yes
Evaluation Count:1
yes
Evaluation Count:2039
1-2040
831 extra->topextra->window->setMaximumSize(QSize(extra->maxw, extra->maxh));
executed: extra->topextra->window->setMaximumSize(QSize(extra->maxw, extra->maxh));
Execution Count:181
181
832 }
executed: }
Execution Count:2220
2220
833}
executed: }
Execution Count:2249
2249
834 -
835void QWidgetPrivate::deleteTLSysExtra() -
836{ -
837 if (extra && extra->topextra) {
evaluated: extra
TRUEFALSE
yes
Evaluation Count:12208
yes
Evaluation Count:21702
evaluated: extra->topextra
TRUEFALSE
yes
Evaluation Count:4200
yes
Evaluation Count:8008
4200-21702
838 -
839 -
840 -
841 -
842 if (extra->topextra->window) {
evaluated: extra->topextra->window
TRUEFALSE
yes
Evaluation Count:2152
yes
Evaluation Count:2048
2048-2152
843 extra->topextra->window->destroy(); -
844 }
executed: }
Execution Count:2152
2152
845 setWinId(0); -
846 delete extra->topextra->window; -
847 extra->topextra->window = 0; -
848 -
849 extra->topextra->backingStoreTracker.destroy(); -
850 delete extra->topextra->backingStore; -
851 extra->topextra->backingStore = 0; -
852 -
853 }
executed: }
Execution Count:4200
4200
854}
executed: }
Execution Count:33910
33910
855 -
856void QWidgetPrivate::registerDropSite(bool on) -
857{ -
858 (void)on;; -
859}
executed: }
Execution Count:35351
35351
860 -
861void QWidgetPrivate::setMask_sys(const QRegion &region) -
862{ -
863 if (!QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::WindowMasks)) {
partially evaluated: !QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::WindowMasks)
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:25
0-25
864 QMessageLogger("kernel/qwidget_qpa.cpp", 922, __PRETTY_FUNCTION__).warning("%s: Not supported on %s.", __PRETTY_FUNCTION__, QString(QGuiApplication::platformName()).toLocal8Bit().constData()); -
865 return;
never executed: return;
0
866 } -
867 QWidget * const q = q_func(); -
868 if (const QWindow *window = q->windowHandle())
evaluated: const QWindow *window = q->windowHandle()
TRUEFALSE
yes
Evaluation Count:4
yes
Evaluation Count:21
4-21
869 if (QPlatformWindow *platformWindow = window->handle())
partially evaluated: QPlatformWindow *platformWindow = window->handle()
TRUEFALSE
yes
Evaluation Count:4
no
Evaluation Count:0
0-4
870 platformWindow->setMask(region);
executed: platformWindow->setMask(region);
Execution Count:4
4
871}
executed: }
Execution Count:25
25
872 -
873void QWidgetPrivate::updateFrameStrut() -
874{ -
875 QWidget * const q = q_func(); -
876 if (q->data->fstrut_dirty) {
evaluated: q->data->fstrut_dirty
TRUEFALSE
yes
Evaluation Count:10021
yes
Evaluation Count:3
3-10021
877 if (QTLWExtra *te = maybeTopData()) {
evaluated: QTLWExtra *te = maybeTopData()
TRUEFALSE
yes
Evaluation Count:4132
yes
Evaluation Count:5889
4132-5889
878 if (te->window) {
evaluated: te->window
TRUEFALSE
yes
Evaluation Count:4067
yes
Evaluation Count:65
65-4067
879 if (const QPlatformWindow *pw = te->window->handle()) {
evaluated: const QPlatformWindow *pw = te->window->handle()
TRUEFALSE
yes
Evaluation Count:3874
yes
Evaluation Count:193
193-3874
880 const QMargins margins = pw->frameMargins(); -
881 if (!margins.isNull()) {
evaluated: !margins.isNull()
TRUEFALSE
yes
Evaluation Count:2
yes
Evaluation Count:3872
2-3872
882 te->frameStrut.setCoords(margins.left(), margins.top(), margins.right(), margins.bottom()); -
883 q->data->fstrut_dirty = false; -
884 }
executed: }
Execution Count:2
2
885 }
executed: }
Execution Count:3874
3874
886 }
executed: }
Execution Count:4067
4067
887 }
executed: }
Execution Count:4132
4132
888 }
executed: }
Execution Count:10021
10021
889}
executed: }
Execution Count:10024
10024
890 -
891void QWidgetPrivate::setWindowOpacity_sys(qreal level) -
892{ -
893 QWidget * const q = q_func(); -
894 if (q->windowHandle())
partially evaluated: q->windowHandle()
TRUEFALSE
yes
Evaluation Count:274
no
Evaluation Count:0
0-274
895 q->windowHandle()->setOpacity(level);
executed: q->windowHandle()->setOpacity(level);
Execution Count:274
274
896}
executed: }
Execution Count:274
274
897 -
898void QWidgetPrivate::setWSGeometry(bool dontShow, const QRect &oldRect) -
899{ -
900 (void)dontShow;; -
901 (void)oldRect;; -
902 -
903}
executed: }
Execution Count:3
3
904 -
905QPaintEngine *QWidget::paintEngine() const -
906{ -
907 QMessageLogger("kernel/qwidget_qpa.cpp", 965, __PRETTY_FUNCTION__).warning("QWidget::paintEngine: Should no longer be called"); -
908 return 0;
never executed: return 0;
0
909} -
910 -
911void QWidgetPrivate::setModal_sys() -
912{ -
913 QWidget * const q = q_func(); -
914 if (q->windowHandle())
evaluated: q->windowHandle()
TRUEFALSE
yes
Evaluation Count:1639
yes
Evaluation Count:5955
1639-5955
915 q->windowHandle()->setModality(q->windowModality());
executed: q->windowHandle()->setModality(q->windowModality());
Execution Count:1639
1639
916}
executed: }
Execution Count:7594
7594
917 -
918 -
919static inline void applyCursor(QWidget *w, QCursor c) -
920{ -
921 if (QWindow *window = w->windowHandle())
partially evaluated: QWindow *window = w->windowHandle()
TRUEFALSE
yes
Evaluation Count:2029
no
Evaluation Count:0
0-2029
922 window->setCursor(c);
executed: window->setCursor(c);
Execution Count:2029
2029
923}
executed: }
Execution Count:2029
2029
924 -
925void qt_qpa_set_cursor(QWidget *w, bool force) -
926{ -
927 if (!w->testAttribute(Qt::WA_WState_Created))
evaluated: !w->testAttribute(Qt::WA_WState_Created)
TRUEFALSE
yes
Evaluation Count:1931
yes
Evaluation Count:2110
1931-2110
928 return;
executed: return;
Execution Count:1931
1931
929 -
930 static QPointer<QWidget> lastUnderMouse = 0; -
931 if (force) {
evaluated: force
TRUEFALSE
yes
Evaluation Count:458
yes
Evaluation Count:1652
458-1652
932 lastUnderMouse = w; -
933 } else if (lastUnderMouse) {
executed: }
Execution Count:458
evaluated: lastUnderMouse
TRUEFALSE
yes
Evaluation Count:57
yes
Evaluation Count:1595
57-1595
934 const WId lastWinId = lastUnderMouse->effectiveWinId(); -
935 const WId winId = w->effectiveWinId(); -
936 if (lastWinId && lastWinId == winId)
partially evaluated: lastWinId
TRUEFALSE
yes
Evaluation Count:57
no
Evaluation Count:0
evaluated: lastWinId == winId
TRUEFALSE
yes
Evaluation Count:15
yes
Evaluation Count:42
0-57
937 w = lastUnderMouse;
executed: w = lastUnderMouse;
Execution Count:15
15
938 } else if (!w->internalWinId()) {
executed: }
Execution Count:57
evaluated: !w->internalWinId()
TRUEFALSE
yes
Evaluation Count:81
yes
Evaluation Count:1514
57-1514
939 return;
executed: return;
Execution Count:81
81
940 } -
941 -
942 while (!w->internalWinId() && w->parentWidget() && !w->isWindow()
evaluated: !w->internalWinId()
TRUEFALSE
yes
Evaluation Count:766
yes
Evaluation Count:2019
partially evaluated: w->parentWidget()
TRUEFALSE
yes
Evaluation Count:766
no
Evaluation Count:0
partially evaluated: !w->isWindow()
TRUEFALSE
yes
Evaluation Count:766
no
Evaluation Count:0
0-2019
943 && !w->testAttribute(Qt::WA_SetCursor))
evaluated: !w->testAttribute(Qt::WA_SetCursor)
TRUEFALSE
yes
Evaluation Count:756
yes
Evaluation Count:10
10-756
944 w = w->parentWidget();
executed: w = w->parentWidget();
Execution Count:756
756
945 -
946 QWidget *nativeParent = w; -
947 if (!w->internalWinId())
evaluated: !w->internalWinId()
TRUEFALSE
yes
Evaluation Count:10
yes
Evaluation Count:2019
10-2019
948 nativeParent = w->nativeParentWidget();
executed: nativeParent = w->nativeParentWidget();
Execution Count:10
10
949 if (!nativeParent || !nativeParent->internalWinId())
partially evaluated: !nativeParent
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:2029
partially evaluated: !nativeParent->internalWinId()
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:2029
0-2029
950 return;
never executed: return;
0
951 -
952 if (w->isWindow() || w->testAttribute(Qt::WA_SetCursor)) {
evaluated: w->isWindow()
TRUEFALSE
yes
Evaluation Count:2015
yes
Evaluation Count:14
evaluated: w->testAttribute(Qt::WA_SetCursor)
TRUEFALSE
yes
Evaluation Count:10
yes
Evaluation Count:4
4-2015
953 if (w->isEnabled())
evaluated: w->isEnabled()
TRUEFALSE
yes
Evaluation Count:2019
yes
Evaluation Count:6
6-2019
954 applyCursor(nativeParent, w->cursor());
executed: applyCursor(nativeParent, w->cursor());
Execution Count:2019
2019
955 else -
956 -
957 -
958 applyCursor(nativeParent, Qt::ArrowCursor);
executed: applyCursor(nativeParent, Qt::ArrowCursor);
Execution Count:6
6
959 } else { -
960 applyCursor(nativeParent, Qt::ArrowCursor); -
961 }
executed: }
Execution Count:4
4
962} -
963 -
964 -
965 -
966 -
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial