OpenCoverage

qqmlmodelindexvaluetype_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/types/qqmlmodelindexvaluetype_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4struct QQmlModelIndexValueType-
5{-
6 QModelIndex v;-
7-
8 -
9 -
10 -
11 -
12 -
13 -
14 public: static const QMetaObject staticMetaObject; void qt_check_for_QGADGET_macro(); typedef void QtGadgetHelper; private:-
15#pragma GCC diagnostic push-
16 -
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 -
21-
22public:-
23 QString toString() const-
24 { return
executed 4 times by 1 test: return QLatin1String("QModelIndex") + propertiesString(v);
Executed by:
  • tst_qqmlenginedebugservice
QLatin1String("QModelIndex") + propertiesString(v);
executed 4 times by 1 test: return QLatin1String("QModelIndex") + propertiesString(v);
Executed by:
  • tst_qqmlenginedebugservice
}
4
25-
26 inline int row() const noexcept { return
executed 10 times by 1 test: return v.row();
Executed by:
  • tst_qqmlitemmodels
v.row();
executed 10 times by 1 test: return v.row();
Executed by:
  • tst_qqmlitemmodels
}
10
27 inline int column() const noexcept { return
executed 10 times by 1 test: return v.column();
Executed by:
  • tst_qqmlitemmodels
v.column();
executed 10 times by 1 test: return v.column();
Executed by:
  • tst_qqmlitemmodels
}
10
28 inline QModelIndex parent() const { return
executed 10 times by 1 test: return v.parent();
Executed by:
  • tst_qqmlitemmodels
v.parent();
executed 10 times by 1 test: return v.parent();
Executed by:
  • tst_qqmlitemmodels
}
10
29 inline bool isValid() const noexcept { return
executed 10 times by 1 test: return v.isValid();
Executed by:
  • tst_qqmlitemmodels
v.isValid();
executed 10 times by 1 test: return v.isValid();
Executed by:
  • tst_qqmlitemmodels
}
10
30 inline QAbstractItemModel *model() const noexcept-
31 { return
executed 10 times by 1 test: return const_cast<QAbstractItemModel *>(v.model());
Executed by:
  • tst_qqmlitemmodels
const_cast<QAbstractItemModel *>(v.model());
executed 10 times by 1 test: return const_cast<QAbstractItemModel *>(v.model());
Executed by:
  • tst_qqmlitemmodels
}
10
32 quint64 internalId() const { return
executed 10 times by 1 test: return v.internalId();
Executed by:
  • tst_qqmlitemmodels
v.internalId();
executed 10 times by 1 test: return v.internalId();
Executed by:
  • tst_qqmlitemmodels
}
10
33-
34 static QString propertiesString(const QModelIndex &idx);-
35-
36 static QPersistentModelIndex toPersistentModelIndex(const QModelIndex &index)-
37 { return
never executed: return QPersistentModelIndex(index);
QPersistentModelIndex(index);
never executed: return QPersistentModelIndex(index);
}
0
38};-
39-
40struct QQmlPersistentModelIndexValueType-
41{-
42 QPersistentModelIndex v;-
43-
44 -
45 -
46 -
47 -
48 -
49 -
50 public: static const QMetaObject staticMetaObject; void qt_check_for_QGADGET_macro(); typedef void QtGadgetHelper; private:-
51#pragma GCC diagnostic push-
52 -
53#pragma GCC diagnostic ignored "-Wattributes"-
54 __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **);-
55#pragma GCC diagnostic pop-
56 -
57-
58public:-
59 QString toString() const-
60 { return
never executed: return QLatin1String("QPersistentModelIndex") + QQmlModelIndexValueType::propertiesString(v);
QLatin1String("QPersistentModelIndex") + QQmlModelIndexValueType::propertiesString(v);
never executed: return QLatin1String("QPersistentModelIndex") + QQmlModelIndexValueType::propertiesString(v);
}
0
61-
62 inline int row() const { return
executed 10 times by 1 test: return v.row();
Executed by:
  • tst_qqmlitemmodels
v.row();
executed 10 times by 1 test: return v.row();
Executed by:
  • tst_qqmlitemmodels
}
10
63 inline int column() const { return
executed 10 times by 1 test: return v.column();
Executed by:
  • tst_qqmlitemmodels
v.column();
executed 10 times by 1 test: return v.column();
Executed by:
  • tst_qqmlitemmodels
}
10
64 inline QModelIndex parent() const { return
executed 10 times by 1 test: return v.parent();
Executed by:
  • tst_qqmlitemmodels
v.parent();
executed 10 times by 1 test: return v.parent();
Executed by:
  • tst_qqmlitemmodels
}
10
65 inline bool isValid() const { return
executed 10 times by 1 test: return v.isValid();
Executed by:
  • tst_qqmlitemmodels
v.isValid();
executed 10 times by 1 test: return v.isValid();
Executed by:
  • tst_qqmlitemmodels
}
10
66 inline QAbstractItemModel *model() const { return
executed 10 times by 1 test: return const_cast<QAbstractItemModel *>(v.model());
Executed by:
  • tst_qqmlitemmodels
const_cast<QAbstractItemModel *>(v.model());
executed 10 times by 1 test: return const_cast<QAbstractItemModel *>(v.model());
Executed by:
  • tst_qqmlitemmodels
}
10
67 inline quint64 internalId() const { return
executed 10 times by 1 test: return v.internalId();
Executed by:
  • tst_qqmlitemmodels
v.internalId();
executed 10 times by 1 test: return v.internalId();
Executed by:
  • tst_qqmlitemmodels
}
10
68-
69 static const QModelIndex &toModelIndex(const QPersistentModelIndex &index)-
70 { return
never executed: return index;
index;
never executed: return index;
}
0
71};-
72-
73struct QQmlItemSelectionRangeValueType-
74{-
75 QItemSelectionRange v;-
76-
77 -
78 -
79 -
80 -
81 -
82 -
83 -
84 -
85 -
86 -
87 -
88 -
89 public: static const QMetaObject staticMetaObject; void qt_check_for_QGADGET_macro(); typedef void QtGadgetHelper; private:-
90#pragma GCC diagnostic push-
91 -
92#pragma GCC diagnostic ignored "-Wattributes"-
93 __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **);-
94#pragma GCC diagnostic pop-
95 -
96-
97public:-
98 QString toString() const;-
99 inline bool contains(const QModelIndex &index) const-
100 { return
executed 10 times by 1 test: return v.contains(index);
Executed by:
  • tst_qqmlitemmodels
v.contains(index);
executed 10 times by 1 test: return v.contains(index);
Executed by:
  • tst_qqmlitemmodels
}
10
101 inline bool contains(int row, int column, const QModelIndex &parentIndex) const-
102 { return
executed 2 times by 1 test: return v.contains(row, column, parentIndex);
Executed by:
  • tst_qqmlitemmodels
v.contains(row, column, parentIndex);
executed 2 times by 1 test: return v.contains(row, column, parentIndex);
Executed by:
  • tst_qqmlitemmodels
}
2
103 inline bool intersects(const QItemSelectionRange &other) const-
104 { return
executed 2 times by 1 test: return v.intersects(other);
Executed by:
  • tst_qqmlitemmodels
v.intersects(other);
executed 2 times by 1 test: return v.intersects(other);
Executed by:
  • tst_qqmlitemmodels
}
2
105 QItemSelectionRange intersected(const QItemSelectionRange &other) const-
106 { return
executed 2 times by 1 test: return v.intersected(other);
Executed by:
  • tst_qqmlitemmodels
v.intersected(other);
executed 2 times by 1 test: return v.intersected(other);
Executed by:
  • tst_qqmlitemmodels
}
2
107-
108 inline int top() const { return
executed 4 times by 1 test: return v.top();
Executed by:
  • tst_qqmlitemmodels
v.top();
executed 4 times by 1 test: return v.top();
Executed by:
  • tst_qqmlitemmodels
}
4
109 inline int left() const { return
executed 4 times by 1 test: return v.left();
Executed by:
  • tst_qqmlitemmodels
v.left();
executed 4 times by 1 test: return v.left();
Executed by:
  • tst_qqmlitemmodels
}
4
110 inline int bottom() const { return
executed 4 times by 1 test: return v.bottom();
Executed by:
  • tst_qqmlitemmodels
v.bottom();
executed 4 times by 1 test: return v.bottom();
Executed by:
  • tst_qqmlitemmodels
}
4
111 inline int right() const { return
executed 4 times by 1 test: return v.right();
Executed by:
  • tst_qqmlitemmodels
v.right();
executed 4 times by 1 test: return v.right();
Executed by:
  • tst_qqmlitemmodels
}
4
112 inline int width() const { return
executed 4 times by 1 test: return v.width();
Executed by:
  • tst_qqmlitemmodels
v.width();
executed 4 times by 1 test: return v.width();
Executed by:
  • tst_qqmlitemmodels
}
4
113 inline int height() const { return
executed 4 times by 1 test: return v.height();
Executed by:
  • tst_qqmlitemmodels
v.height();
executed 4 times by 1 test: return v.height();
Executed by:
  • tst_qqmlitemmodels
}
4
114 inline QPersistentModelIndex &topLeft() const { return
never executed: return const_cast<QPersistentModelIndex &>(v.topLeft());
const_cast<QPersistentModelIndex &>(v.topLeft());
never executed: return const_cast<QPersistentModelIndex &>(v.topLeft());
}
0
115 inline QPersistentModelIndex &bottomRight() const { return
never executed: return const_cast<QPersistentModelIndex &>(v.bottomRight());
const_cast<QPersistentModelIndex &>(v.bottomRight());
never executed: return const_cast<QPersistentModelIndex &>(v.bottomRight());
}
0
116 inline QModelIndex parent() const { return
never executed: return v.parent();
v.parent();
never executed: return v.parent();
}
0
117 inline QAbstractItemModel *model() const { return
executed 4 times by 1 test: return const_cast<QAbstractItemModel *>(v.model());
Executed by:
  • tst_qqmlitemmodels
const_cast<QAbstractItemModel *>(v.model());
executed 4 times by 1 test: return const_cast<QAbstractItemModel *>(v.model());
Executed by:
  • tst_qqmlitemmodels
}
4
118 inline bool isValid() const { return
executed 4 times by 1 test: return v.isValid();
Executed by:
  • tst_qqmlitemmodels
v.isValid();
executed 4 times by 1 test: return v.isValid();
Executed by:
  • tst_qqmlitemmodels
}
4
119 inline bool isEmpty() const { return
executed 4 times by 1 test: return v.isEmpty();
Executed by:
  • tst_qqmlitemmodels
v.isEmpty();
executed 4 times by 1 test: return v.isEmpty();
Executed by:
  • tst_qqmlitemmodels
}
4
120};-
121-
122-
123-
124-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0