| Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qmargins.cpp |
| Switch to Source code | Preprocessed file |
| Line | Source | Count |
|---|---|---|
| 1 | - | |
| 2 | - | |
| 3 | - | |
| 4 | QDataStream &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: s;return s;Executed by:
executed 1 time by 1 test: return s;Executed by:
| 1 |
| 8 | } | - |
| 9 | QDataStream &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: s;return s;Executed by:
executed 1 time by 1 test: return s;Executed by:
| 1 |
| 17 | } | - |
| 18 | - | |
| 19 | - | |
| 20 | - | |
| 21 | QDebug 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: dbg;return dbg;never executed: return dbg; | 0 |
| 29 | } | - |
| 30 | QDataStream &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: s;return s;Executed by:
executed 1 time by 1 test: return s;Executed by:
| 1 |
| 34 | } | - |
| 35 | QDataStream &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: s;return s;Executed by:
executed 1 time by 1 test: return s;Executed by:
| 1 |
| 44 | } | - |
| 45 | - | |
| 46 | - | |
| 47 | - | |
| 48 | QDebug 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: dbg;return dbg;never executed: return dbg; | 0 |
| 56 | } | - |
| 57 | - | |
| 58 | - | |
| 59 | - | |
| Switch to Source code | Preprocessed file |