OpenCoverage

qquickborderimage_p_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/items/qquickborderimage_p_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6class QNetworkReply;-
7-
8class QQuickBorderImagePrivate : public QQuickImageBasePrivate-
9{-
10 inline QQuickBorderImage* q_func() { return static_cast<QQuickBorderImage *>(q_ptr); } inline const QQuickBorderImage* q_func() const { return static_cast<const QQuickBorderImage *>(q_ptr); } friend class QQuickBorderImage;-
11-
12public:-
13 QQuickBorderImagePrivate()-
14 : border(0), horizontalTileMode(QQuickBorderImage::Stretch),-
15 verticalTileMode(QQuickBorderImage::Stretch), pixmapChanged(false)-
16-
17 , sciReply(0), redirectCount(0)-
18-
19 {-
20 }
executed 138 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickborderimage
138
21-
22 ~QQuickBorderImagePrivate()-
23 {-
24 }-
25-
26-
27 QQuickScaleGrid *getScaleGrid()-
28 {-
29 QQuickBorderImage * const q = q_func();-
30 if (!border
!borderDescription
TRUEevaluated 98 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickborderimage
FALSEevaluated 40 times by 1 test
Evaluated by:
  • tst_qquickborderimage
) {
40-98
31 border = new QQuickScaleGrid(q);-
32 { QQuickScaleGrid *sender = (border); QQuickBorderImage *receiver = (q); const char *signal = (qFlagLocation("2""borderChanged()" "\0" __FILE__ ":" "89")); const char *method = (qFlagLocation("1""doUpdate()" "\0" __FILE__ ":" "89")); static int signalIdx = -1; static int methodIdx = -1; if (signalIdx < 0
signalIdx < 0Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickborderimage
FALSEevaluated 94 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickborderimage
) { ((((int)(*signal) - '0') == 2) ? static_cast<void>(0) : qt_assert("((int)(*signal) - '0') == QSIGNAL_CODE",
4-94
33 __FILE__-
34 ,-
35 89-
36 )); signalIdx = QQuickScaleGrid::staticMetaObject.indexOfSignal(signal+1); }
executed 4 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickborderimage
if (methodIdx < 0
methodIdx < 0Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickborderimage
FALSEevaluated 94 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickborderimage
) { int code = ((int)(*method) - '0'); ((code == 1 || code == 2) ? static_cast<void>(0) : qt_assert("code == QSLOT_CODE || code == QSIGNAL_CODE",
4-94
37 __FILE__-
38 ,-
39 89-
40 )); if (code == 1
code == 1Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickborderimage
FALSEnever evaluated
) methodIdx = QQuickBorderImage::staticMetaObject.indexOfSlot(method+1);
executed 4 times by 2 tests: methodIdx = QQuickBorderImage::staticMetaObject.indexOfSlot(method+1);
Executed by:
  • tst_examples
  • tst_qquickborderimage
else methodIdx = QQuickBorderImage::staticMetaObject.indexOfSignal(method+1);
never executed: methodIdx = QQuickBorderImage::staticMetaObject.indexOfSignal(method+1);
} ((signalIdx != -1 && methodIdx != -1) ? static_cast<void>(0) : qt_assert("signalIdx != -1 && methodIdx != -1",
0-4
41 __FILE__-
42 ,-
43 89-
44 )); QMetaObject::connect(sender, signalIdx, receiver, methodIdx, Qt::DirectConnection); }-
45-
46 }
executed 98 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickborderimage
98
47 return
executed 138 times by 2 tests: return border;
Executed by:
  • tst_examples
  • tst_qquickborderimage
border;
executed 138 times by 2 tests: return border;
Executed by:
  • tst_examples
  • tst_qquickborderimage
138
48 }-
49-
50 static void calculateRects(const QQuickScaleGrid *border,-
51 const QSize &sourceSize,-
52 const QSizeF &targetSize,-
53 int horizontalTileMode,-
54 int verticalTileMode,-
55 qreal devicePixelRatio,-
56 QRectF *targetRect,-
57 QRectF *innerTargetRect,-
58 QRectF *innerSourceRect,-
59 QRectF *subSourceRect);-
60-
61 QQuickScaleGrid *border;-
62 QUrl sciurl;-
63 QQuickBorderImage::TileMode horizontalTileMode;-
64 QQuickBorderImage::TileMode verticalTileMode;-
65 bool pixmapChanged : 1;-
66-
67-
68 QNetworkReply *sciReply;-
69 int redirectCount;-
70-
71};-
72-
73-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0