qmargins.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qmargins.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4QDataStream &operator<<(QDataStream &s, const QMargins &m)-
5{-
6 s << m.left() << m.top() << m.right() << m.bottom();-
7 return
executed 1 time by 1 test: return s;
Executed by:
  • tst_QMargins
s;
executed 1 time by 1 test: return s;
Executed by:
  • tst_QMargins
1
8}-
9QDataStream &operator>>(QDataStream &s, QMargins &m)-
10{-
11 int left, top, right, bottom;-
12 s >> left; m.setLeft(left);-
13 s >> top; m.setTop(top);-
14 s >> right; m.setRight(right);-
15 s >> bottom; m.setBottom(bottom);-
16 return
executed 1 time by 1 test: return s;
Executed by:
  • tst_QMargins
s;
executed 1 time by 1 test: return s;
Executed by:
  • tst_QMargins
1
17}-
18-
19-
20-
21QDebug operator<<(QDebug dbg, const QMargins &m)-
22{-
23 QDebugStateSaver saver(dbg);-
24 dbg.nospace();-
25 dbg << "QMargins" << '(';-
26 QtDebugUtils::formatQMargins(dbg, m);-
27 dbg << ')';-
28 return
never executed: return dbg;
dbg;
never executed: return dbg;
0
29}-
30QDataStream &operator<<(QDataStream &s, const QMarginsF &m)-
31{-
32 s << double(m.left()) << double(m.top()) << double(m.right()) << double(m.bottom());-
33 return
executed 1 time by 1 test: return s;
Executed by:
  • tst_QMargins
s;
executed 1 time by 1 test: return s;
Executed by:
  • tst_QMargins
1
34}-
35QDataStream &operator>>(QDataStream &s, QMarginsF &m)-
36{-
37 double left, top, right, bottom;-
38 s >> left;-
39 s >> top;-
40 s >> right;-
41 s >> bottom;-
42 m = QMarginsF(qreal(left), qreal(top), qreal(right), qreal(bottom));-
43 return
executed 1 time by 1 test: return s;
Executed by:
  • tst_QMargins
s;
executed 1 time by 1 test: return s;
Executed by:
  • tst_QMargins
1
44}-
45-
46-
47-
48QDebug operator<<(QDebug dbg, const QMarginsF &m)-
49{-
50 QDebugStateSaver saver(dbg);-
51 dbg.nospace();-
52 dbg << "QMarginsF" << '(';-
53 QtDebugUtils::formatQMargins(dbg, m);-
54 dbg << ')';-
55 return
never executed: return dbg;
dbg;
never executed: return dbg;
0
56}-
57-
58-
59-
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial 4.3.0-BETA-master-30-08-2018-4cb69e9