kernel/qdesktopwidget.cpp

Switch to Source codePreprocessed file
LineSource CodeCoverage
1 -
2 -
3 -
4const QRect QDesktopWidget::screenGeometry(const QWidget *widget) const -
5{ -
6 if (!widget) {
evaluated: !widget
TRUEFALSE
yes
Evaluation Count:1
yes
Evaluation Count:2
1-2
7 QMessageLogger("kernel/qdesktopwidget.cpp", 51, __PRETTY_FUNCTION__).warning("QDesktopWidget::screenGeometry(): Attempt " -
8 "to get the screen geometry of a null widget"); -
9 return QRect();
executed: return QRect();
Execution Count:1
1
10 } -
11 QRect rect = QWidgetPrivate::screenGeometry(widget); -
12 if (rect.isNull())
partially evaluated: rect.isNull()
TRUEFALSE
yes
Evaluation Count:2
no
Evaluation Count:0
0-2
13 return screenGeometry(screenNumber(widget));
executed: return screenGeometry(screenNumber(widget));
Execution Count:2
2
14 else return rect;
never executed: return rect;
0
15} -
16 -
17const QRect QDesktopWidget::availableGeometry(const QWidget *widget) const -
18{ -
19 if (!widget) {
evaluated: !widget
TRUEFALSE
yes
Evaluation Count:1
yes
Evaluation Count:864
1-864
20 QMessageLogger("kernel/qdesktopwidget.cpp", 64, __PRETTY_FUNCTION__).warning("QDesktopWidget::availableGeometry(): Attempt " -
21 "to get the available geometry of a null widget"); -
22 return QRect();
executed: return QRect();
Execution Count:1
1
23 } -
24 QRect rect = QWidgetPrivate::screenGeometry(widget); -
25 if (rect.isNull())
partially evaluated: rect.isNull()
TRUEFALSE
yes
Evaluation Count:864
no
Evaluation Count:0
0-864
26 return availableGeometry(screenNumber(widget));
executed: return availableGeometry(screenNumber(widget));
Execution Count:864
864
27 else -
28 return rect;
never executed: return rect;
0
29} -
30 -
31 -
32 -
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial