Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/items/qquickborderimage_p_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||
---|---|---|---|---|---|---|---|---|
1 | - | |||||||
2 | - | |||||||
3 | - | |||||||
4 | - | |||||||
5 | - | |||||||
6 | class QNetworkReply; | - | ||||||
7 | - | |||||||
8 | class 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 | - | |||||||
12 | public: | - | ||||||
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:
| 138 | ||||||
21 | - | |||||||
22 | ~QQuickBorderImagePrivate() | - | ||||||
23 | { | - | ||||||
24 | } | - | ||||||
25 | - | |||||||
26 | - | |||||||
27 | QQuickScaleGrid *getScaleGrid() | - | ||||||
28 | { | - | ||||||
29 | QQuickBorderImage * const q = q_func(); | - | ||||||
30 | if (!border
| 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
| 4-94 | ||||||
33 | __FILE__ | - | ||||||
34 | , | - | ||||||
35 | 89 | - | ||||||
36 | )); signalIdx = QQuickScaleGrid::staticMetaObject.indexOfSignal(signal+1); } executed 4 times by 2 tests: if (methodIdx < 0end of block Executed by:
| 4-94 | ||||||
37 | __FILE__ | - | ||||||
38 | , | - | ||||||
39 | 89 | - | ||||||
40 | )); if (code == 1
executed 4 times by 2 tests: else methodIdx = QQuickBorderImage::staticMetaObject.indexOfSignal(method+1);methodIdx = QQuickBorderImage::staticMetaObject.indexOfSlot(method+1); Executed by:
never executed: } ((signalIdx != -1 && methodIdx != -1) ? static_cast<void>(0) : qt_assert("signalIdx != -1 && methodIdx != -1",methodIdx = QQuickBorderImage::staticMetaObject.indexOfSignal(method+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:
| 98 | ||||||
47 | return executed 138 times by 2 tests: border;return border; Executed by:
executed 138 times by 2 tests: return border; Executed by:
| 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 code | Preprocessed file |