Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/items/qquicktableview_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||
---|---|---|---|---|---|---|---|---|
1 | - | |||||||
2 | - | |||||||
3 | - | |||||||
4 | class QQuickTableViewAttached; | - | ||||||
5 | class QQuickTableViewPrivate; | - | ||||||
6 | class QQmlChangeSet; | - | ||||||
7 | - | |||||||
8 | class __attribute__((visibility("default"))) QQuickTableView : public QQuickFlickable | - | ||||||
9 | { | - | ||||||
10 | public: | - | ||||||
11 | #pragma GCC diagnostic push | - | ||||||
12 | - | |||||||
13 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - | ||||||
14 | 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: | - | ||||||
15 | #pragma GCC diagnostic ignored "-Wattributes" | - | ||||||
16 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - | ||||||
17 | #pragma GCC diagnostic pop | - | ||||||
18 | struct QPrivateSignal {}; | - | ||||||
19 | - | |||||||
20 | - | |||||||
21 | - | |||||||
22 | - | |||||||
23 | - | |||||||
24 | - | |||||||
25 | - | |||||||
26 | - | |||||||
27 | - | |||||||
28 | - | |||||||
29 | - | |||||||
30 | - | |||||||
31 | - | |||||||
32 | - | |||||||
33 | public: | - | ||||||
34 | QQuickTableView(QQuickItem *parent = nullptr); | - | ||||||
35 | - | |||||||
36 | int rows() const; | - | ||||||
37 | int columns() const; | - | ||||||
38 | - | |||||||
39 | qreal rowSpacing() const; | - | ||||||
40 | void setRowSpacing(qreal spacing); | - | ||||||
41 | - | |||||||
42 | qreal columnSpacing() const; | - | ||||||
43 | void setColumnSpacing(qreal spacing); | - | ||||||
44 | - | |||||||
45 | qreal topMargin() const; | - | ||||||
46 | void setTopMargin(qreal margin); | - | ||||||
47 | - | |||||||
48 | qreal bottomMargin() const; | - | ||||||
49 | void setBottomMargin(qreal margin); | - | ||||||
50 | - | |||||||
51 | qreal leftMargin() const; | - | ||||||
52 | void setLeftMargin(qreal margin); | - | ||||||
53 | - | |||||||
54 | qreal rightMargin() const; | - | ||||||
55 | void setRightMargin(qreal margin); | - | ||||||
56 | - | |||||||
57 | int cacheBuffer() const; | - | ||||||
58 | void setCacheBuffer(int newBuffer); | - | ||||||
59 | - | |||||||
60 | QVariant model() const; | - | ||||||
61 | void setModel(const QVariant &newModel); | - | ||||||
62 | - | |||||||
63 | QQmlComponent *delegate() const; | - | ||||||
64 | void setDelegate(QQmlComponent *); | - | ||||||
65 | - | |||||||
66 | static QQuickTableViewAttached *qmlAttachedProperties(QObject *); | - | ||||||
67 | - | |||||||
68 | public : | - | ||||||
69 | void rowsChanged(); | - | ||||||
70 | void columnsChanged(); | - | ||||||
71 | void rowSpacingChanged(); | - | ||||||
72 | void columnSpacingChanged(); | - | ||||||
73 | void topMarginChanged(); | - | ||||||
74 | void bottomMarginChanged(); | - | ||||||
75 | void leftMarginChanged(); | - | ||||||
76 | void rightMarginChanged(); | - | ||||||
77 | void cacheBufferChanged(); | - | ||||||
78 | void modelChanged(); | - | ||||||
79 | void delegateChanged(); | - | ||||||
80 | - | |||||||
81 | protected: | - | ||||||
82 | void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) override; | - | ||||||
83 | void viewportMoved(Qt::Orientations orientation) override; | - | ||||||
84 | void componentComplete() override; | - | ||||||
85 | - | |||||||
86 | private: | - | ||||||
87 | QQuickTableView(const QQuickTableView &) = delete; QQuickTableView &operator=(const QQuickTableView &) = delete; | - | ||||||
88 | inline QQuickTableViewPrivate* d_func() { return executed 710 times by 1 test: reinterpret_cast<QQuickTableViewPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<QQuickTableViewPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 710 times by 1 test: } inline const QQuickTableViewPrivate* d_func() const { returnreturn reinterpret_cast<QQuickTableViewPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 102 times by 1 test: reinterpret_cast<const QQuickTableViewPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<const QQuickTableViewPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 102 times by 1 test: } friend class QQuickTableViewPrivate;return reinterpret_cast<const QQuickTableViewPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
| 102-710 | ||||||
89 | }; | - | ||||||
90 | - | |||||||
91 | class __attribute__((visibility("default"))) QQuickTableViewAttached : public QObject | - | ||||||
92 | { | - | ||||||
93 | public: | - | ||||||
94 | #pragma GCC diagnostic push | - | ||||||
95 | - | |||||||
96 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - | ||||||
97 | 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: | - | ||||||
98 | #pragma GCC diagnostic ignored "-Wattributes" | - | ||||||
99 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - | ||||||
100 | #pragma GCC diagnostic pop | - | ||||||
101 | struct QPrivateSignal {}; | - | ||||||
102 | - | |||||||
103 | - | |||||||
104 | - | |||||||
105 | - | |||||||
106 | - | |||||||
107 | - | |||||||
108 | - | |||||||
109 | public: | - | ||||||
110 | QQuickTableViewAttached(QObject *parent) | - | ||||||
111 | : QObject(parent) {} never executed: end of block | 0 | ||||||
112 | - | |||||||
113 | QQuickTableView *tableView() const { return never executed: m_tableview;return m_tableview; never executed: }return m_tableview; | 0 | ||||||
114 | void setTableView(QQuickTableView *newTableView) { | - | ||||||
115 | if (newTableView == m_tableview
| 0 | ||||||
116 | return; never executed: return; | 0 | ||||||
117 | m_tableview = newTableView; | - | ||||||
118 | tableViewChanged(); | - | ||||||
119 | } never executed: end of block | 0 | ||||||
120 | - | |||||||
121 | qreal cellWidth() const { return never executed: m_cellWidth;return m_cellWidth; never executed: }return m_cellWidth; | 0 | ||||||
122 | void setCellWidth(qreal newWidth) { | - | ||||||
123 | if (newWidth == m_cellWidth
| 0 | ||||||
124 | return; never executed: return; | 0 | ||||||
125 | m_cellWidth = newWidth; | - | ||||||
126 | cellWidthChanged(); | - | ||||||
127 | } never executed: end of block | 0 | ||||||
128 | - | |||||||
129 | qreal cellHeight() const { return never executed: m_cellHeight;return m_cellHeight; never executed: }return m_cellHeight; | 0 | ||||||
130 | void setCellHeight(qreal newHeight) { | - | ||||||
131 | if (newHeight == m_cellHeight
| 0 | ||||||
132 | return; never executed: return; | 0 | ||||||
133 | m_cellHeight = newHeight; | - | ||||||
134 | cellHeightChanged(); | - | ||||||
135 | } never executed: end of block | 0 | ||||||
136 | - | |||||||
137 | int row() const { return never executed: m_row;return m_row; never executed: }return m_row; | 0 | ||||||
138 | void setRow(int newRow) { | - | ||||||
139 | if (newRow == m_row
| 0 | ||||||
140 | return; never executed: return; | 0 | ||||||
141 | m_row = newRow; | - | ||||||
142 | rowChanged(); | - | ||||||
143 | } never executed: end of block | 0 | ||||||
144 | - | |||||||
145 | int column() const { return never executed: m_column;return m_column; never executed: }return m_column; | 0 | ||||||
146 | void setColumn(int newColumn) { | - | ||||||
147 | if (newColumn == m_column
| 0 | ||||||
148 | return; never executed: return; | 0 | ||||||
149 | m_column = newColumn; | - | ||||||
150 | columnChanged(); | - | ||||||
151 | } never executed: end of block | 0 | ||||||
152 | - | |||||||
153 | public : | - | ||||||
154 | void tableViewChanged(); | - | ||||||
155 | void cellWidthChanged(); | - | ||||||
156 | void cellHeightChanged(); | - | ||||||
157 | void rowChanged(); | - | ||||||
158 | void columnChanged(); | - | ||||||
159 | - | |||||||
160 | private: | - | ||||||
161 | QPointer<QQuickTableView> m_tableview; | - | ||||||
162 | int m_row = -1; | - | ||||||
163 | int m_column = -1; | - | ||||||
164 | QQmlNullableValue<qreal> m_cellWidth; | - | ||||||
165 | QQmlNullableValue<qreal> m_cellHeight; | - | ||||||
166 | - | |||||||
167 | friend class QQuickTableViewPrivate; | - | ||||||
168 | }; | - | ||||||
169 | - | |||||||
170 | - | |||||||
171 | - | |||||||
172 | template <> struct QMetaTypeId< QQuickTableView * > { 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< QQuickTableView * >("QQuickTableView *", reinterpret_cast< QQuickTableView * *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; template <> struct QMetaTypeId< QQmlListProperty<QQuickTableView> > { 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<QQuickTableView> >("QQmlListProperty<QQuickTableView>", reinterpret_cast< QQmlListProperty<QQuickTableView> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; | - | ||||||
173 | template <> class QQmlTypeInfo<QQuickTableView > { public: enum { hasAttachedProperties = (((QML_HAS_ATTACHED_PROPERTIES) & QML_HAS_ATTACHED_PROPERTIES) == QML_HAS_ATTACHED_PROPERTIES) }; }; | - | ||||||
Switch to Source code | Preprocessed file |