| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/items/qquicklistview_p.h |
| Switch to Source code | Preprocessed file |
| Line | Source | Count |
|---|---|---|
| 1 | - | |
| 2 | static_assert(bool(1 == 1), "Required feature " "quick_listview" " for file " __FILE__ " not available."); | - |
| 3 | - | |
| 4 | - | |
| 5 | - | |
| 6 | - | |
| 7 | - | |
| 8 | class QQuickListView; | - |
| 9 | class QQuickListViewPrivate; | - |
| 10 | class __attribute__((visibility("default"))) QQuickViewSection : public QObject | - |
| 11 | { | - |
| 12 | public: | - |
| 13 | #pragma GCC diagnostic push | - |
| 14 | - | |
| 15 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
| 16 | 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: | - |
| 17 | #pragma GCC diagnostic ignored "-Wattributes" | - |
| 18 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
| 19 | #pragma GCC diagnostic pop | - |
| 20 | struct QPrivateSignal {}; | - |
| 21 | - | |
| 22 | - | |
| 23 | - | |
| 24 | - | |
| 25 | public: | - |
| 26 | QQuickViewSection(QQuickListView *parent=nullptr); | - |
| 27 | - | |
| 28 | QString property() const { return executed 7532 times by 4 tests: m_property;return m_property;Executed by:
executed 7532 times by 4 tests: }return m_property;Executed by:
| 7532 |
| 29 | void setProperty(const QString &); | - |
| 30 | - | |
| 31 | enum SectionCriteria { FullString, FirstCharacter }; | - |
| 32 | friend constexpr const QMetaObject *qt_getEnumMetaObject(SectionCriteria) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(SectionCriteria) noexcept { return "SectionCriteria"; } | - |
| 33 | SectionCriteria criteria() const { return never executed: m_criteria;return m_criteria;never executed: }return m_criteria; | 0 |
| 34 | void setCriteria(SectionCriteria); | - |
| 35 | - | |
| 36 | QQmlComponent *delegate() const { return executed 8561 times by 4 tests: m_delegate;return m_delegate;Executed by:
executed 8561 times by 4 tests: }return m_delegate;Executed by:
| 8561 |
| 37 | void setDelegate(QQmlComponent *delegate); | - |
| 38 | - | |
| 39 | QString sectionString(const QString &value); | - |
| 40 | - | |
| 41 | enum LabelPositioning { InlineLabels = 0x01, CurrentLabelAtStart = 0x02, NextLabelAtEnd = 0x04 }; | - |
| 42 | friend constexpr const QMetaObject *qt_getEnumMetaObject(LabelPositioning) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(LabelPositioning) noexcept { return "LabelPositioning"; } | - |
| 43 | int labelPositioning() const { return executed 17179 times by 4 tests: m_labelPositioning;return m_labelPositioning;Executed by:
executed 17179 times by 4 tests: }return m_labelPositioning;Executed by:
| 17179 |
| 44 | void setLabelPositioning(int pos); | - |
| 45 | - | |
| 46 | public : | - |
| 47 | void sectionsChanged(); | - |
| 48 | void propertyChanged(); | - |
| 49 | void criteriaChanged(); | - |
| 50 | void delegateChanged(); | - |
| 51 | void labelPositioningChanged(); | - |
| 52 | - | |
| 53 | private: | - |
| 54 | QString m_property; | - |
| 55 | SectionCriteria m_criteria; | - |
| 56 | QQmlComponent *m_delegate; | - |
| 57 | int m_labelPositioning; | - |
| 58 | QQuickListViewPrivate *m_view; | - |
| 59 | }; | - |
| 60 | - | |
| 61 | - | |
| 62 | class QQmlInstanceModel; | - |
| 63 | class QQuickListViewAttached; | - |
| 64 | class __attribute__((visibility("default"))) QQuickListView : public QQuickItemView | - |
| 65 | { | - |
| 66 | public: | - |
| 67 | #pragma GCC diagnostic push | - |
| 68 | - | |
| 69 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
| 70 | 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: | - |
| 71 | #pragma GCC diagnostic ignored "-Wattributes" | - |
| 72 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
| 73 | #pragma GCC diagnostic pop | - |
| 74 | struct QPrivateSignal {}; | - |
| 75 | inline QQuickListViewPrivate* d_func() { return executed 16292 times by 9 tests: reinterpret_cast<QQuickListViewPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<QQuickListViewPrivate *>(qGetPtrHelper(d_ptr));Executed by:
executed 16292 times by 9 tests: } inline const QQuickListViewPrivate* d_func() const { returnreturn reinterpret_cast<QQuickListViewPrivate *>(qGetPtrHelper(d_ptr));Executed by:
executed 1087068 times by 11 tests: reinterpret_cast<const QQuickListViewPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<const QQuickListViewPrivate *>(qGetPtrHelper(d_ptr));Executed by:
executed 1087068 times by 11 tests: } friend class QQuickListViewPrivate;return reinterpret_cast<const QQuickListViewPrivate *>(qGetPtrHelper(d_ptr));Executed by:
| 16292-1087068 |
| 76 | - | |
| 77 | - | |
| 78 | - | |
| 79 | - | |
| 80 | - | |
| 81 | - | |
| 82 | - | |
| 83 | - | |
| 84 | - | |
| 85 | - | |
| 86 | - | |
| 87 | - | |
| 88 | - | |
| 89 | - | |
| 90 | - | |
| 91 | - | |
| 92 | - | |
| 93 | - | |
| 94 | public: | - |
| 95 | QQuickListView(QQuickItem *parent=nullptr); | - |
| 96 | ~QQuickListView(); | - |
| 97 | - | |
| 98 | qreal spacing() const; | - |
| 99 | void setSpacing(qreal spacing); | - |
| 100 | - | |
| 101 | enum Orientation { Horizontal = Qt::Horizontal, Vertical = Qt::Vertical }; | - |
| 102 | friend constexpr const QMetaObject *qt_getEnumMetaObject(Orientation) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(Orientation) noexcept { return "Orientation"; } | - |
| 103 | Orientation orientation() const; | - |
| 104 | void setOrientation(Orientation); | - |
| 105 | - | |
| 106 | QQuickViewSection *sectionCriteria(); | - |
| 107 | QString currentSection() const; | - |
| 108 | - | |
| 109 | void setHighlightFollowsCurrentItem(bool) override; | - |
| 110 | - | |
| 111 | qreal highlightMoveVelocity() const; | - |
| 112 | void setHighlightMoveVelocity(qreal); | - |
| 113 | - | |
| 114 | qreal highlightResizeVelocity() const; | - |
| 115 | void setHighlightResizeVelocity(qreal); | - |
| 116 | - | |
| 117 | int highlightResizeDuration() const; | - |
| 118 | void setHighlightResizeDuration(int); | - |
| 119 | - | |
| 120 | void setHighlightMoveDuration(int) override; | - |
| 121 | - | |
| 122 | enum SnapMode { NoSnap, SnapToItem, SnapOneItem }; | - |
| 123 | friend constexpr const QMetaObject *qt_getEnumMetaObject(SnapMode) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(SnapMode) noexcept { return "SnapMode"; } | - |
| 124 | SnapMode snapMode() const; | - |
| 125 | void setSnapMode(SnapMode mode); | - |
| 126 | - | |
| 127 | enum HeaderPositioning { InlineHeader, OverlayHeader, PullBackHeader }; | - |
| 128 | friend constexpr const QMetaObject *qt_getEnumMetaObject(HeaderPositioning) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(HeaderPositioning) noexcept { return "HeaderPositioning"; } | - |
| 129 | HeaderPositioning headerPositioning() const; | - |
| 130 | void setHeaderPositioning(HeaderPositioning positioning); | - |
| 131 | - | |
| 132 | enum FooterPositioning { InlineFooter, OverlayFooter, PullBackFooter }; | - |
| 133 | friend constexpr const QMetaObject *qt_getEnumMetaObject(FooterPositioning) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(FooterPositioning) noexcept { return "FooterPositioning"; } | - |
| 134 | FooterPositioning footerPositioning() const; | - |
| 135 | void setFooterPositioning(FooterPositioning positioning); | - |
| 136 | - | |
| 137 | static QQuickListViewAttached *qmlAttachedProperties(QObject *); | - |
| 138 | - | |
| 139 | public : | - |
| 140 | void incrementCurrentIndex(); | - |
| 141 | void decrementCurrentIndex(); | - |
| 142 | - | |
| 143 | public : | - |
| 144 | void spacingChanged(); | - |
| 145 | void orientationChanged(); | - |
| 146 | void currentSectionChanged(); | - |
| 147 | void highlightMoveVelocityChanged(); | - |
| 148 | void highlightResizeVelocityChanged(); | - |
| 149 | void highlightResizeDurationChanged(); | - |
| 150 | void snapModeChanged(); | - |
| 151 | void headerPositioningChanged(); | - |
| 152 | void footerPositioningChanged(); | - |
| 153 | - | |
| 154 | protected: | - |
| 155 | void viewportMoved(Qt::Orientations orient) override; | - |
| 156 | void keyPressEvent(QKeyEvent *) override; | - |
| 157 | void geometryChanged(const QRectF &newGeometry,const QRectF &oldGeometry) override; | - |
| 158 | void initItem(int index, QObject *item) override; | - |
| 159 | qreal maxYExtent() const override; | - |
| 160 | qreal maxXExtent() const override; | - |
| 161 | }; | - |
| 162 | - | |
| 163 | class QQuickListViewAttached : public QQuickItemViewAttached | - |
| 164 | { | - |
| 165 | public: | - |
| 166 | #pragma GCC diagnostic push | - |
| 167 | - | |
| 168 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
| 169 | 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: | - |
| 170 | #pragma GCC diagnostic ignored "-Wattributes" | - |
| 171 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
| 172 | #pragma GCC diagnostic pop | - |
| 173 | struct QPrivateSignal {}; | - |
| 174 | - | |
| 175 | public: | - |
| 176 | QQuickListViewAttached(QObject *parent) | - |
| 177 | : QQuickItemViewAttached(parent), m_sectionItem(nullptr) {} executed 32708 times by 10 tests: end of blockExecuted by:
| 32708 |
| 178 | ~QQuickListViewAttached() {} | - |
| 179 | - | |
| 180 | public: | - |
| 181 | QPointer<QQuickItem> m_sectionItem; | - |
| 182 | }; | - |
| 183 | - | |
| 184 | - | |
| 185 | - | |
| 186 | - | |
| 187 | template <> class QQmlTypeInfo<QQuickListView > { public: enum { hasAttachedProperties = (((QML_HAS_ATTACHED_PROPERTIES) & QML_HAS_ATTACHED_PROPERTIES) == QML_HAS_ATTACHED_PROPERTIES) }; }; | - |
| 188 | template <> struct QMetaTypeId< QQuickListView * > { 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< QQuickListView * >("QQuickListView *", reinterpret_cast< QQuickListView * *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; template <> struct QMetaTypeId< QQmlListProperty<QQuickListView> > { 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<QQuickListView> >("QQmlListProperty<QQuickListView>", reinterpret_cast< QQmlListProperty<QQuickListView> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; | - |
| 189 | template <> struct QMetaTypeId< QQuickViewSection * > { 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< QQuickViewSection * >("QQuickViewSection *", reinterpret_cast< QQuickViewSection * *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; template <> struct QMetaTypeId< QQmlListProperty<QQuickViewSection> > { 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<QQuickViewSection> >("QQmlListProperty<QQuickViewSection>", reinterpret_cast< QQmlListProperty<QQuickViewSection> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; | - |
| Switch to Source code | Preprocessed file |