OpenCoverage

qquickimage_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/items/qquickimage_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4class QQuickImagePrivate;-
5class __attribute__((visibility("default"))) QQuickImage : public QQuickImageBase-
6{-
7 public:-
8#pragma GCC diagnostic push-
9 -
10#pragma GCC diagnostic ignored "-Wsuggest-override"-
11 static const QMetaObject staticMetaObject; virtual const QMetaObject *metaObject() const; virtual void *qt_metacast(const char *); virtual int qt_metacall(QMetaObject::Call, int, void **); static inline QString tr(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } __attribute__ ((__deprecated__)) static inline QString trUtf8(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } private:-
12#pragma GCC diagnostic ignored "-Wattributes"-
13 __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **);-
14#pragma GCC diagnostic pop-
15 struct QPrivateSignal {};-
16-
17 -
18 -
19 -
20 -
21 -
22 -
23 -
24-
25public:-
26 QQuickImage(QQuickItem *parent=nullptr);-
27 ~QQuickImage();-
28-
29 enum HAlignment { AlignLeft = Qt::AlignLeft,-
30 AlignRight = Qt::AlignRight,-
31 AlignHCenter = Qt::AlignHCenter };-
32 friend constexpr const QMetaObject *qt_getEnumMetaObject(HAlignment) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(HAlignment) noexcept { return "HAlignment"; }-
33 enum VAlignment { AlignTop = Qt::AlignTop,-
34 AlignBottom = Qt::AlignBottom,-
35 AlignVCenter = Qt::AlignVCenter };-
36 friend constexpr const QMetaObject *qt_getEnumMetaObject(VAlignment) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(VAlignment) noexcept { return "VAlignment"; }-
37-
38 enum FillMode { Stretch, PreserveAspectFit, PreserveAspectCrop, Tile, TileVertically, TileHorizontally, Pad };-
39 friend constexpr const QMetaObject *qt_getEnumMetaObject(FillMode) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(FillMode) noexcept { return "FillMode"; }-
40-
41 FillMode fillMode() const;-
42 void setFillMode(FillMode);-
43-
44 qreal paintedWidth() const;-
45 qreal paintedHeight() const;-
46-
47 QRectF boundingRect() const override;-
48-
49 HAlignment horizontalAlignment() const;-
50 void setHorizontalAlignment(HAlignment align);-
51-
52 VAlignment verticalAlignment() const;-
53 void setVerticalAlignment(VAlignment align);-
54-
55 bool isTextureProvider() const override { return
executed 4 times by 2 tests: return true;
Executed by:
  • tst_qquickborderimage
  • tst_qquickshadereffect
true;
executed 4 times by 2 tests: return true;
Executed by:
  • tst_qquickborderimage
  • tst_qquickshadereffect
}
4
56 QSGTextureProvider *textureProvider() const override;-
57-
58 bool mipmap() const;-
59 void setMipmap(bool use);-
60-
61 void emitAutoTransformBaseChanged() override { autoTransformChanged(); }
never executed: end of block
0
62-
63public :-
64 void fillModeChanged();-
65 void paintedGeometryChanged();-
66 void horizontalAlignmentChanged(HAlignment alignment);-
67 void verticalAlignmentChanged(VAlignment alignment);-
68 void mipmapChanged(bool);-
69 void autoTransformChanged();-
70-
71private :-
72 void invalidateSceneGraph();-
73-
74protected:-
75 QQuickImage(QQuickImagePrivate &dd, QQuickItem *parent);-
76 void pixmapChange() override;-
77 void updatePaintedGeometry();-
78 void releaseResources() override;-
79-
80 void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) override;-
81 QSGNode *updatePaintNode(QSGNode *, UpdatePaintNodeData *) override;-
82-
83private:-
84 QQuickImage(const QQuickImage &) = delete; QQuickImage &operator=(const QQuickImage &) = delete;-
85 inline QQuickImagePrivate* d_func() { return
executed 33599 times by 15 tests: return reinterpret_cast<QQuickImagePrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinfo
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickitem
  • tst_qquickitemparticle
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_scenegraph
  • tst_sharedimage
reinterpret_cast<QQuickImagePrivate *>(qGetPtrHelper(d_ptr));
executed 33599 times by 15 tests: return reinterpret_cast<QQuickImagePrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinfo
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickitem
  • tst_qquickitemparticle
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_scenegraph
  • tst_sharedimage
} inline const QQuickImagePrivate* d_func() const { return
executed 430 times by 4 tests: return reinterpret_cast<const QQuickImagePrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickshadereffect
reinterpret_cast<const QQuickImagePrivate *>(qGetPtrHelper(d_ptr));
executed 430 times by 4 tests: return reinterpret_cast<const QQuickImagePrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickshadereffect
} friend class QQuickImagePrivate;
430-33599
86};-
87-
88-
89 template <> struct QMetaTypeId< QQuickImage * > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQuickImage * >("QQuickImage *", reinterpret_cast< QQuickImage * *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; template <> struct QMetaTypeId< QQmlListProperty<QQuickImage> > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQmlListProperty<QQuickImage> >("QQmlListProperty<QQuickImage>", reinterpret_cast< QQmlListProperty<QQuickImage> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } };-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0