tools/qmargins.cpp

Switch to Source codePreprocessed file
LineSource CodeCoverage
1 -
2 -
3QDataStream &operator<<(QDataStream &s, const QMargins &m) -
4{ -
5 s << m.left() << m.top() << m.right() << m.bottom(); -
6 return s;
executed: return s;
Execution Count:1
1
7} -
8QDataStream &operator>>(QDataStream &s, QMargins &m) -
9{ -
10 int left, top, right, bottom; -
11 s >> left; m.setLeft(left); -
12 s >> top; m.setTop(top); -
13 s >> right; m.setRight(right); -
14 s >> bottom; m.setBottom(bottom); -
15 return s;
executed: return s;
Execution Count:1
1
16} -
17 -
18 -
19 -
20QDebug operator<<(QDebug dbg, const QMargins &m) { -
21 dbg.nospace() << "QMargins(" << m.left() << ", " -
22 << m.top() << ", " << m.right() << ", " << m.bottom() << ')'; -
23 return dbg.space();
never executed: return dbg.space();
0
24} -
25 -
26 -
27 -
28 -
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial