Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qpoint.cpp |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||
---|---|---|---|---|---|---|---|---|
1 | - | |||||||
2 | - | |||||||
3 | - | |||||||
4 | QDataStream &operator<<(QDataStream &s, const QPoint &p) | - | ||||||
5 | { | - | ||||||
6 | if (s.version() == 1
| 0-159 | ||||||
7 | s << (qint16)p.x() << (qint16)p.y(); never executed: s << (qint16)p.x() << (qint16)p.y(); | 0 | ||||||
8 | else | - | ||||||
9 | s << (qint32)p.x() << (qint32)p.y(); executed 159 times by 6 tests: s << (qint32)p.x() << (qint32)p.y(); Executed by:
| 159 | ||||||
10 | return executed 159 times by 6 tests: s;return s; Executed by:
executed 159 times by 6 tests: return s; Executed by:
| 159 | ||||||
11 | } | - | ||||||
12 | QDataStream &operator>>(QDataStream &s, QPoint &p) | - | ||||||
13 | { | - | ||||||
14 | if (s.version() == 1
| 0-171 | ||||||
15 | qint16 x, y; | - | ||||||
16 | s >> x; p.rx() = x; | - | ||||||
17 | s >> y; p.ry() = y; | - | ||||||
18 | } never executed: end of block | 0 | ||||||
19 | else { | - | ||||||
20 | qint32 x, y; | - | ||||||
21 | s >> x; p.rx() = x; | - | ||||||
22 | s >> y; p.ry() = y; | - | ||||||
23 | } executed 171 times by 6 tests: end of block Executed by:
| 171 | ||||||
24 | return executed 171 times by 6 tests: s;return s; Executed by:
executed 171 times by 6 tests: return s; Executed by:
| 171 | ||||||
25 | } | - | ||||||
26 | QDebug operator<<(QDebug dbg, const QPoint &p) | - | ||||||
27 | { | - | ||||||
28 | QDebugStateSaver saver(dbg); | - | ||||||
29 | dbg.nospace(); | - | ||||||
30 | dbg << "QPoint" << '('; | - | ||||||
31 | QtDebugUtils::formatQPoint(dbg, p); | - | ||||||
32 | dbg << ')'; | - | ||||||
33 | return executed 34 times by 5 tests: dbg;return dbg; Executed by:
executed 34 times by 5 tests: return dbg; Executed by:
| 34 | ||||||
34 | } | - | ||||||
35 | - | |||||||
36 | QDebug operator<<(QDebug dbg, const QPointF &p) | - | ||||||
37 | { | - | ||||||
38 | QDebugStateSaver saver(dbg); | - | ||||||
39 | dbg.nospace(); | - | ||||||
40 | dbg << "QPointF" << '('; | - | ||||||
41 | QtDebugUtils::formatQPoint(dbg, p); | - | ||||||
42 | dbg << ')'; | - | ||||||
43 | return executed 6 times by 2 tests: dbg;return dbg; Executed by:
executed 6 times by 2 tests: return dbg; Executed by:
| 6 | ||||||
44 | } | - | ||||||
45 | QDataStream &operator<<(QDataStream &s, const QPointF &p) | - | ||||||
46 | { | - | ||||||
47 | s << double(p.x()) << double(p.y()); | - | ||||||
48 | return executed 256 times by 10 tests: s;return s; Executed by:
executed 256 times by 10 tests: return s; Executed by:
| 256 | ||||||
49 | } | - | ||||||
50 | QDataStream &operator>>(QDataStream &s, QPointF &p) | - | ||||||
51 | { | - | ||||||
52 | double x, y; | - | ||||||
53 | s >> x; | - | ||||||
54 | s >> y; | - | ||||||
55 | p.setX(qreal(x)); | - | ||||||
56 | p.setY(qreal(y)); | - | ||||||
57 | return executed 136 times by 9 tests: s;return s; Executed by:
executed 136 times by 9 tests: return s; Executed by:
| 136 | ||||||
58 | } | - | ||||||
59 | - | |||||||
60 | - | |||||||
61 | - | |||||||
Switch to Source code | Preprocessed file |