kernel/qguivariant.cpp

Switch to Source codePreprocessed file
LineSource CodeCoverage
1 -
2 -
3 -
4 -
5 -
6 -
7 -
8 -
9 -
10 -
11__attribute__((visibility("default"))) const QVariant::Handler *qcoreVariantHandler(); -
12 -
13namespace { -
14struct GuiTypesFilter { -
15 template<typename T> -
16 struct Acceptor { -
17 static const bool IsAccepted = QModulesPrivate::QTypeModuleInfo<T>::IsGui && QtMetaTypePrivate::TypeDefinition<T>::IsAvailable; -
18 }; -
19}; -
20 -
21static void construct(QVariant::Private *x, const void *copy) -
22{ -
23 const int type = x->type; -
24 QVariantConstructor<GuiTypesFilter> constructor(x, copy); -
25 QMetaTypeSwitcher::switcher<void>(constructor, type, 0); -
26}
executed: }
Execution Count:3600457
3600457
27 -
28static void clear(QVariant::Private *d) -
29{ -
30 QVariantDestructor<GuiTypesFilter> destructor(d); -
31 QMetaTypeSwitcher::switcher<void>(destructor, d->type, 0); -
32}
executed: }
Execution Count:3600442
3600442
33 -
34 -
35template<class Filter> -
36class QGuiVariantIsNull : public QVariantIsNull<Filter> { -
37 typedef QVariantIsNull<Filter> Base; -
38public: -
39 QGuiVariantIsNull(const QVariant::Private *d) -
40 : QVariantIsNull<Filter>(d) -
41 {}
executed: }
Execution Count:31995
31995
42 template<typename T> -
43 bool delegate(const T *p) { return Base::delegate(p); }
executed: return Base::delegate(p);
Execution Count:31989
31989
44 bool delegate(const QPolygon*) { return v_cast<QPolygon>(Base::m_d)->isEmpty(); }
executed: return v_cast<QPolygon>(Base::m_d)->isEmpty();
Execution Count:6
6
45 bool delegate(const void *p) { return Base::delegate(p); }
never executed: return Base::delegate(p);
0
46}; -
47static bool isNull(const QVariant::Private *d) -
48{ -
49 QGuiVariantIsNull<GuiTypesFilter> isNull(d); -
50 return QMetaTypeSwitcher::switcher<bool>(isNull, d->type, 0);
executed: return QMetaTypeSwitcher::switcher<bool>(isNull, d->type, 0);
Execution Count:31995
31995
51} -
52 -
53 -
54template<class Filter> -
55class QGuiVariantComparator : public QVariantComparator<Filter> { -
56 typedef QVariantComparator<Filter> Base; -
57public: -
58 QGuiVariantComparator(const QVariant::Private *a, const QVariant::Private *b) -
59 : QVariantComparator<Filter>(a, b) -
60 {}
executed: }
Execution Count:872
872
61 template<typename T> -
62 bool delegate(const T *p) -
63 { -
64 return Base::delegate(p);
executed: return Base::delegate(p);
Execution Count:330
330
65 } -
66 bool delegate(const QPixmap*) -
67 { -
68 return v_cast<QPixmap>(Base::m_a)->cacheKey() == v_cast<QPixmap>(Base::m_b)->cacheKey();
never executed: return v_cast<QPixmap>(Base::m_a)->cacheKey() == v_cast<QPixmap>(Base::m_b)->cacheKey();
0
69 } -
70 bool delegate(const QBitmap*) -
71 { -
72 return v_cast<QBitmap>(Base::m_a)->cacheKey() == v_cast<QBitmap>(Base::m_b)->cacheKey();
never executed: return v_cast<QBitmap>(Base::m_a)->cacheKey() == v_cast<QBitmap>(Base::m_b)->cacheKey();
0
73 } -
74 -
75 bool delegate(const QCursor*) -
76 { -
77 return v_cast<QCursor>(Base::m_a)->shape() == v_cast<QCursor>(Base::m_b)->shape();
executed: return v_cast<QCursor>(Base::m_a)->shape() == v_cast<QCursor>(Base::m_b)->shape();
Execution Count:1
1
78 } -
79 -
80 -
81 bool delegate(const QIcon *) -
82 { -
83 return false;
executed: return false;
Execution Count:541
541
84 } -
85 -
86 bool delegate(const void *p) { return Base::delegate(p); }
never executed: return Base::delegate(p);
0
87}; -
88 -
89static bool compare(const QVariant::Private *a, const QVariant::Private *b) -
90{ -
91 QGuiVariantComparator<GuiTypesFilter> comparator(a, b); -
92 return QMetaTypeSwitcher::switcher<bool>(comparator, a->type, 0);
executed: return QMetaTypeSwitcher::switcher<bool>(comparator, a->type, 0);
Execution Count:872
872
93} -
94 -
95static bool convert(const QVariant::Private *d, int t, -
96 void *result, bool *ok) -
97{ -
98 switch (t) { -
99 case QVariant::ByteArray: -
100 if (d->type == QVariant::Color) {
never evaluated: d->type == QVariant::Color
0
101 *static_cast<QByteArray *>(result) = v_cast<QColor>(d)->name().toLatin1(); -
102 return true;
never executed: return true;
0
103 } -
104 break;
never executed: break;
0
105 case QVariant::String: { -
106 QString *str = static_cast<QString *>(result); -
107 switch (d->type) { -
108 -
109 case QVariant::KeySequence: -
110 *str = (*v_cast<QKeySequence>(d)).toString(QKeySequence::NativeText); -
111 return true;
executed: return true;
Execution Count:1
1
112 -
113 case QVariant::Font: -
114 *str = v_cast<QFont>(d)->toString(); -
115 return true;
executed: return true;
Execution Count:1
1
116 case QVariant::Color: -
117 *str = v_cast<QColor>(d)->name(); -
118 return true;
executed: return true;
Execution Count:3
3
119 default: -
120 break;
never executed: break;
0
121 } -
122 break;
never executed: break;
0
123 } -
124 case QVariant::Pixmap: -
125 if (d->type == QVariant::Image) {
evaluated: d->type == QVariant::Image
TRUEFALSE
yes
Evaluation Count:143
yes
Evaluation Count:26733
143-26733
126 *static_cast<QPixmap *>(result) = QPixmap::fromImage(*v_cast<QImage>(d)); -
127 return true;
executed: return true;
Execution Count:143
143
128 } else if (d->type == QVariant::Bitmap) {
evaluated: d->type == QVariant::Bitmap
TRUEFALSE
yes
Evaluation Count:1
yes
Evaluation Count:26732
1-26732
129 *static_cast<QPixmap *>(result) = *v_cast<QBitmap>(d); -
130 return true;
executed: return true;
Execution Count:1
1
131 } else if (d->type == QVariant::Brush) {
partially evaluated: d->type == QVariant::Brush
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:26732
0-26732
132 if (v_cast<QBrush>(d)->style() == Qt::TexturePattern) {
never evaluated: v_cast<QBrush>(d)->style() == Qt::TexturePattern
0
133 *static_cast<QPixmap *>(result) = v_cast<QBrush>(d)->texture(); -
134 return true;
never executed: return true;
0
135 } -
136 }
never executed: }
0
137 break;
executed: break;
Execution Count:26732
26732
138 case QVariant::Image: -
139 if (d->type == QVariant::Pixmap) {
never evaluated: d->type == QVariant::Pixmap
0
140 *static_cast<QImage *>(result) = v_cast<QPixmap>(d)->toImage(); -
141 return true;
never executed: return true;
0
142 } else if (d->type == QVariant::Bitmap) {
never evaluated: d->type == QVariant::Bitmap
0
143 *static_cast<QImage *>(result) = v_cast<QBitmap>(d)->toImage(); -
144 return true;
never executed: return true;
0
145 } -
146 break;
never executed: break;
0
147 case QVariant::Bitmap: -
148 if (d->type == QVariant::Pixmap) {
never evaluated: d->type == QVariant::Pixmap
0
149 *static_cast<QBitmap *>(result) = *v_cast<QPixmap>(d); -
150 return true;
never executed: return true;
0
151 } else if (d->type == QVariant::Image) {
never evaluated: d->type == QVariant::Image
0
152 *static_cast<QBitmap *>(result) = QBitmap::fromImage(*v_cast<QImage>(d)); -
153 return true;
never executed: return true;
0
154 } -
155 break;
never executed: break;
0
156 -
157 case QVariant::Int: -
158 if (d->type == QVariant::KeySequence) {
partially evaluated: d->type == QVariant::KeySequence
TRUEFALSE
yes
Evaluation Count:1
no
Evaluation Count:0
0-1
159 const QKeySequence &seq = *v_cast<QKeySequence>(d); -
160 *static_cast<int *>(result) = seq.isEmpty() ? 0 : seq[0];
partially evaluated: seq.isEmpty()
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:1
0-1
161 return true;
executed: return true;
Execution Count:1
1
162 } -
163 break;
never executed: break;
0
164 -
165 case QVariant::Font: -
166 if (d->type == QVariant::String) {
evaluated: d->type == QVariant::String
TRUEFALSE
yes
Evaluation Count:1
yes
Evaluation Count:4363
1-4363
167 QFont *f = static_cast<QFont *>(result); -
168 f->fromString(*v_cast<QString>(d)); -
169 return true;
executed: return true;
Execution Count:1
1
170 } -
171 break;
executed: break;
Execution Count:4363
4363
172 case QVariant::Color: -
173 if (d->type == QVariant::String) {
evaluated: d->type == QVariant::String
TRUEFALSE
yes
Evaluation Count:50
yes
Evaluation Count:1
1-50
174 static_cast<QColor *>(result)->setNamedColor(*v_cast<QString>(d)); -
175 return static_cast<QColor *>(result)->isValid();
executed: return static_cast<QColor *>(result)->isValid();
Execution Count:50
50
176 } else if (d->type == QVariant::ByteArray) {
partially evaluated: d->type == QVariant::ByteArray
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:1
0-1
177 static_cast<QColor *>(result)->setNamedColor(QString::fromLatin1( -
178 *v_cast<QByteArray>(d))); -
179 return true;
never executed: return true;
0
180 } else if (d->type == QVariant::Brush) {
partially evaluated: d->type == QVariant::Brush
TRUEFALSE
yes
Evaluation Count:1
no
Evaluation Count:0
0-1
181 if (v_cast<QBrush>(d)->style() == Qt::SolidPattern) {
partially evaluated: v_cast<QBrush>(d)->style() == Qt::SolidPattern
TRUEFALSE
yes
Evaluation Count:1
no
Evaluation Count:0
0-1
182 *static_cast<QColor *>(result) = v_cast<QBrush>(d)->color(); -
183 return true;
executed: return true;
Execution Count:1
1
184 } -
185 }
never executed: }
0
186 break;
never executed: break;
0
187 case QVariant::Brush: -
188 if (d->type == QVariant::Color) {
evaluated: d->type == QVariant::Color
TRUEFALSE
yes
Evaluation Count:58606
yes
Evaluation Count:164155
58606-164155
189 *static_cast<QBrush *>(result) = QBrush(*v_cast<QColor>(d)); -
190 return true;
executed: return true;
Execution Count:58606
58606
191 } else if (d->type == QVariant::Pixmap) {
evaluated: d->type == QVariant::Pixmap
TRUEFALSE
yes
Evaluation Count:1
yes
Evaluation Count:164154
1-164154
192 *static_cast<QBrush *>(result) = QBrush(*v_cast<QPixmap>(d)); -
193 return true;
executed: return true;
Execution Count:1
1
194 } -
195 break;
executed: break;
Execution Count:164154
164154
196 -
197 case QVariant::KeySequence: { -
198 QKeySequence *seq = static_cast<QKeySequence *>(result); -
199 switch (d->type) { -
200 case QVariant::String: -
201 *seq = QKeySequence(*v_cast<QString>(d)); -
202 return true;
executed: return true;
Execution Count:1
1
203 case QVariant::Int: -
204 *seq = QKeySequence(d->data.i); -
205 return true;
executed: return true;
Execution Count:1
1
206 default: -
207 break;
never executed: break;
0
208 } -
209 } -
210 -
211 -
212 case QVariant::Icon: { -
213 if (ok)
partially evaluated: ok
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:28816
0-28816
214 *ok = false;
never executed: *ok = false;
0
215 return false;
executed: return false;
Execution Count:28816
28816
216 } -
217 -
218 default: -
219 break;
executed: break;
Execution Count:7889
7889
220 } -
221 return qcoreVariantHandler()->convert(d, t, result, ok);
executed: return qcoreVariantHandler()->convert(d, t, result, ok);
Execution Count:203138
203138
222} -
223 -
224 -
225static void streamDebug(QDebug dbg, const QVariant &v) -
226{ -
227 QVariant::Private *d = const_cast<QVariant::Private *>(&v.data_ptr()); -
228 QVariantDebugStream<GuiTypesFilter> stream(dbg, d); -
229 QMetaTypeSwitcher::switcher<void>(stream, d->type, 0); -
230}
executed: }
Execution Count:23
23
231 -
232 -
233const QVariant::Handler qt_gui_variant_handler = { -
234 construct, -
235 clear, -
236 isNull, -
237 -
238 0, -
239 0, -
240 -
241 compare, -
242 convert, -
243 0, -
244 -
245 streamDebug -
246 -
247 -
248 -
249}; -
250 -
251 -
252 -
253 -
254static const QMetaTypeInterface qVariantGuiHelper[] = { -
255 { (QtMetaTypePrivate::QMetaTypeFunctionHelper<QFont, QtMetaTypePrivate::TypeDefinition<QFont>::IsAvailable>::Create), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QFont, QtMetaTypePrivate::TypeDefinition<QFont>::IsAvailable>::Delete), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QFont, QtMetaTypePrivate::TypeDefinition<QFont>::IsAvailable>::Save), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QFont, QtMetaTypePrivate::TypeDefinition<QFont>::IsAvailable>::Load), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QFont, QtMetaTypePrivate::TypeDefinition<QFont>::IsAvailable>::Construct), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QFont, QtMetaTypePrivate::TypeDefinition<QFont>::IsAvailable>::Destruct), (QTypeInfo<QFont>::sizeOf), QtPrivate::QMetaTypeTypeFlags<QFont>::Flags, (QtPrivate::MetaObjectForType<QFont>::value()) }, { (QtMetaTypePrivate::QMetaTypeFunctionHelper<QPixmap, QtMetaTypePrivate::TypeDefinition<QPixmap>::IsAvailable>::Create), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QPixmap, QtMetaTypePrivate::TypeDefinition<QPixmap>::IsAvailable>::Delete), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QPixmap, QtMetaTypePrivate::TypeDefinition<QPixmap>::IsAvailable>::Save), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QPixmap, QtMetaTypePrivate::TypeDefinition<QPixmap>::IsAvailable>::Load), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QPixmap, QtMetaTypePrivate::TypeDefinition<QPixmap>::IsAvailable>::Construct), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QPixmap, QtMetaTypePrivate::TypeDefinition<QPixmap>::IsAvailable>::Destruct), (QTypeInfo<QPixmap>::sizeOf), QtPrivate::QMetaTypeTypeFlags<QPixmap>::Flags, (QtPrivate::MetaObjectForType<QPixmap>::value()) }, { (QtMetaTypePrivate::QMetaTypeFunctionHelper<QBrush, QtMetaTypePrivate::TypeDefinition<QBrush>::IsAvailable>::Create), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QBrush, QtMetaTypePrivate::TypeDefinition<QBrush>::IsAvailable>::Delete), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QBrush, QtMetaTypePrivate::TypeDefinition<QBrush>::IsAvailable>::Save), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QBrush, QtMetaTypePrivate::TypeDefinition<QBrush>::IsAvailable>::Load), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QBrush, QtMetaTypePrivate::TypeDefinition<QBrush>::IsAvailable>::Construct), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QBrush, QtMetaTypePrivate::TypeDefinition<QBrush>::IsAvailable>::Destruct), (QTypeInfo<QBrush>::sizeOf), QtPrivate::QMetaTypeTypeFlags<QBrush>::Flags, (QtPrivate::MetaObjectForType<QBrush>::value()) }, { (QtMetaTypePrivate::QMetaTypeFunctionHelper<QColor, QtMetaTypePrivate::TypeDefinition<QColor>::IsAvailable>::Create), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QColor, QtMetaTypePrivate::TypeDefinition<QColor>::IsAvailable>::Delete), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QColor, QtMetaTypePrivate::TypeDefinition<QColor>::IsAvailable>::Save), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QColor, QtMetaTypePrivate::TypeDefinition<QColor>::IsAvailable>::Load), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QColor, QtMetaTypePrivate::TypeDefinition<QColor>::IsAvailable>::Construct), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QColor, QtMetaTypePrivate::TypeDefinition<QColor>::IsAvailable>::Destruct), (QTypeInfo<QColor>::sizeOf), QtPrivate::QMetaTypeTypeFlags<QColor>::Flags, (QtPrivate::MetaObjectForType<QColor>::value()) }, { (QtMetaTypePrivate::QMetaTypeFunctionHelper<QPalette, QtMetaTypePrivate::TypeDefinition<QPalette>::IsAvailable>::Create), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QPalette, QtMetaTypePrivate::TypeDefinition<QPalette>::IsAvailable>::Delete), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QPalette, QtMetaTypePrivate::TypeDefinition<QPalette>::IsAvailable>::Save), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QPalette, QtMetaTypePrivate::TypeDefinition<QPalette>::IsAvailable>::Load), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QPalette, QtMetaTypePrivate::TypeDefinition<QPalette>::IsAvailable>::Construct), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QPalette, QtMetaTypePrivate::TypeDefinition<QPalette>::IsAvailable>::Destruct), (QTypeInfo<QPalette>::sizeOf), QtPrivate::QMetaTypeTypeFlags<QPalette>::Flags, (QtPrivate::MetaObjectForType<QPalette>::value()) }, { (QtMetaTypePrivate::QMetaTypeFunctionHelper<QIcon, QtMetaTypePrivate::TypeDefinition<QIcon>::IsAvailable>::Create), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QIcon, QtMetaTypePrivate::TypeDefinition<QIcon>::IsAvailable>::Delete), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QIcon, QtMetaTypePrivate::TypeDefinition<QIcon>::IsAvailable>::Save), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QIcon, QtMetaTypePrivate::TypeDefinition<QIcon>::IsAvailable>::Load), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QIcon, QtMetaTypePrivate::TypeDefinition<QIcon>::IsAvailable>::Construct), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QIcon, QtMetaTypePrivate::TypeDefinition<QIcon>::IsAvailable>::Destruct), (QTypeInfo<QIcon>::sizeOf), QtPrivate::QMetaTypeTypeFlags<QIcon>::Flags, (QtPrivate::MetaObjectForType<QIcon>::value()) }, { (QtMetaTypePrivate::QMetaTypeFunctionHelper<QImage, QtMetaTypePrivate::TypeDefinition<QImage>::IsAvailable>::Create), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QImage, QtMetaTypePrivate::TypeDefinition<QImage>::IsAvailable>::Delete), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QImage, QtMetaTypePrivate::TypeDefinition<QImage>::IsAvailable>::Save), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QImage, QtMetaTypePrivate::TypeDefinition<QImage>::IsAvailable>::Load), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QImage, QtMetaTypePrivate::TypeDefinition<QImage>::IsAvailable>::Construct), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QImage, QtMetaTypePrivate::TypeDefinition<QImage>::IsAvailable>::Destruct), (QTypeInfo<QImage>::sizeOf), QtPrivate::QMetaTypeTypeFlags<QImage>::Flags, (QtPrivate::MetaObjectForType<QImage>::value()) }, { (QtMetaTypePrivate::QMetaTypeFunctionHelper<QPolygon, QtMetaTypePrivate::TypeDefinition<QPolygon>::IsAvailable>::Create), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QPolygon, QtMetaTypePrivate::TypeDefinition<QPolygon>::IsAvailable>::Delete), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QPolygon, QtMetaTypePrivate::TypeDefinition<QPolygon>::IsAvailable>::Save), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QPolygon, QtMetaTypePrivate::TypeDefinition<QPolygon>::IsAvailable>::Load), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QPolygon, QtMetaTypePrivate::TypeDefinition<QPolygon>::IsAvailable>::Construct), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QPolygon, QtMetaTypePrivate::TypeDefinition<QPolygon>::IsAvailable>::Destruct), (QTypeInfo<QPolygon>::sizeOf), QtPrivate::QMetaTypeTypeFlags<QPolygon>::Flags, (QtPrivate::MetaObjectForType<QPolygon>::value()) }, { (QtMetaTypePrivate::QMetaTypeFunctionHelper<QRegion, QtMetaTypePrivate::TypeDefinition<QRegion>::IsAvailable>::Create), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QRegion, QtMetaTypePrivate::TypeDefinition<QRegion>::IsAvailable>::Delete), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QRegion, QtMetaTypePrivate::TypeDefinition<QRegion>::IsAvailable>::Save), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QRegion, QtMetaTypePrivate::TypeDefinition<QRegion>::IsAvailable>::Load), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QRegion, QtMetaTypePrivate::TypeDefinition<QRegion>::IsAvailable>::Construct), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QRegion, QtMetaTypePrivate::TypeDefinition<QRegion>::IsAvailable>::Destruct), (QTypeInfo<QRegion>::sizeOf), QtPrivate::QMetaTypeTypeFlags<QRegion>::Flags, (QtPrivate::MetaObjectForType<QRegion>::value()) }, { (QtMetaTypePrivate::QMetaTypeFunctionHelper<QBitmap, QtMetaTypePrivate::TypeDefinition<QBitmap>::IsAvailable>::Create), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QBitmap, QtMetaTypePrivate::TypeDefinition<QBitmap>::IsAvailable>::Delete), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QBitmap, QtMetaTypePrivate::TypeDefinition<QBitmap>::IsAvailable>::Save), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QBitmap, QtMetaTypePrivate::TypeDefinition<QBitmap>::IsAvailable>::Load), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QBitmap, QtMetaTypePrivate::TypeDefinition<QBitmap>::IsAvailable>::Construct), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QBitmap, QtMetaTypePrivate::TypeDefinition<QBitmap>::IsAvailable>::Destruct), (QTypeInfo<QBitmap>::sizeOf), QtPrivate::QMetaTypeTypeFlags<QBitmap>::Flags, (QtPrivate::MetaObjectForType<QBitmap>::value()) }, { (QtMetaTypePrivate::QMetaTypeFunctionHelper<QCursor, QtMetaTypePrivate::TypeDefinition<QCursor>::IsAvailable>::Create), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QCursor, QtMetaTypePrivate::TypeDefinition<QCursor>::IsAvailable>::Delete), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QCursor, QtMetaTypePrivate::TypeDefinition<QCursor>::IsAvailable>::Save), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QCursor, QtMetaTypePrivate::TypeDefinition<QCursor>::IsAvailable>::Load), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QCursor, QtMetaTypePrivate::TypeDefinition<QCursor>::IsAvailable>::Construct), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QCursor, QtMetaTypePrivate::TypeDefinition<QCursor>::IsAvailable>::Destruct), (QTypeInfo<QCursor>::sizeOf), QtPrivate::QMetaTypeTypeFlags<QCursor>::Flags, (QtPrivate::MetaObjectForType<QCursor>::value()) }, { (QtMetaTypePrivate::QMetaTypeFunctionHelper<QKeySequence, QtMetaTypePrivate::TypeDefinition<QKeySequence>::IsAvailable>::Create), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QKeySequence, QtMetaTypePrivate::TypeDefinition<QKeySequence>::IsAvailable>::Delete), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QKeySequence, QtMetaTypePrivate::TypeDefinition<QKeySequence>::IsAvailable>::Save), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QKeySequence, QtMetaTypePrivate::TypeDefinition<QKeySequence>::IsAvailable>::Load), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QKeySequence, QtMetaTypePrivate::TypeDefinition<QKeySequence>::IsAvailable>::Construct), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QKeySequence, QtMetaTypePrivate::TypeDefinition<QKeySequence>::IsAvailable>::Destruct), (QTypeInfo<QKeySequence>::sizeOf), QtPrivate::QMetaTypeTypeFlags<QKeySequence>::Flags, (QtPrivate::MetaObjectForType<QKeySequence>::value()) }, { (QtMetaTypePrivate::QMetaTypeFunctionHelper<QPen, QtMetaTypePrivate::TypeDefinition<QPen>::IsAvailable>::Create), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QPen, QtMetaTypePrivate::TypeDefinition<QPen>::IsAvailable>::Delete), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QPen, QtMetaTypePrivate::TypeDefinition<QPen>::IsAvailable>::Save), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QPen, QtMetaTypePrivate::TypeDefinition<QPen>::IsAvailable>::Load), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QPen, QtMetaTypePrivate::TypeDefinition<QPen>::IsAvailable>::Construct), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QPen, QtMetaTypePrivate::TypeDefinition<QPen>::IsAvailable>::Destruct), (QTypeInfo<QPen>::sizeOf), QtPrivate::QMetaTypeTypeFlags<QPen>::Flags, (QtPrivate::MetaObjectForType<QPen>::value()) }, { (QtMetaTypePrivate::QMetaTypeFunctionHelper<QTextLength, QtMetaTypePrivate::TypeDefinition<QTextLength>::IsAvailable>::Create), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QTextLength, QtMetaTypePrivate::TypeDefinition<QTextLength>::IsAvailable>::Delete), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QTextLength, QtMetaTypePrivate::TypeDefinition<QTextLength>::IsAvailable>::Save), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QTextLength, QtMetaTypePrivate::TypeDefinition<QTextLength>::IsAvailable>::Load), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QTextLength, QtMetaTypePrivate::TypeDefinition<QTextLength>::IsAvailable>::Construct), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QTextLength, QtMetaTypePrivate::TypeDefinition<QTextLength>::IsAvailable>::Destruct), (QTypeInfo<QTextLength>::sizeOf), QtPrivate::QMetaTypeTypeFlags<QTextLength>::Flags, (QtPrivate::MetaObjectForType<QTextLength>::value()) }, { (QtMetaTypePrivate::QMetaTypeFunctionHelper<QTextFormat, QtMetaTypePrivate::TypeDefinition<QTextFormat>::IsAvailable>::Create), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QTextFormat, QtMetaTypePrivate::TypeDefinition<QTextFormat>::IsAvailable>::Delete), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QTextFormat, QtMetaTypePrivate::TypeDefinition<QTextFormat>::IsAvailable>::Save), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QTextFormat, QtMetaTypePrivate::TypeDefinition<QTextFormat>::IsAvailable>::Load), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QTextFormat, QtMetaTypePrivate::TypeDefinition<QTextFormat>::IsAvailable>::Construct), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QTextFormat, QtMetaTypePrivate::TypeDefinition<QTextFormat>::IsAvailable>::Destruct), (QTypeInfo<QTextFormat>::sizeOf), QtPrivate::QMetaTypeTypeFlags<QTextFormat>::Flags, (QtPrivate::MetaObjectForType<QTextFormat>::value()) }, { (QtMetaTypePrivate::QMetaTypeFunctionHelper<QMatrix, QtMetaTypePrivate::TypeDefinition<QMatrix>::IsAvailable>::Create), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QMatrix, QtMetaTypePrivate::TypeDefinition<QMatrix>::IsAvailable>::Delete), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QMatrix, QtMetaTypePrivate::TypeDefinition<QMatrix>::IsAvailable>::Save), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QMatrix, QtMetaTypePrivate::TypeDefinition<QMatrix>::IsAvailable>::Load), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QMatrix, QtMetaTypePrivate::TypeDefinition<QMatrix>::IsAvailable>::Construct), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QMatrix, QtMetaTypePrivate::TypeDefinition<QMatrix>::IsAvailable>::Destruct), (QTypeInfo<QMatrix>::sizeOf), QtPrivate::QMetaTypeTypeFlags<QMatrix>::Flags, (QtPrivate::MetaObjectForType<QMatrix>::value()) }, { (QtMetaTypePrivate::QMetaTypeFunctionHelper<QTransform, QtMetaTypePrivate::TypeDefinition<QTransform>::IsAvailable>::Create), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QTransform, QtMetaTypePrivate::TypeDefinition<QTransform>::IsAvailable>::Delete), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QTransform, QtMetaTypePrivate::TypeDefinition<QTransform>::IsAvailable>::Save), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QTransform, QtMetaTypePrivate::TypeDefinition<QTransform>::IsAvailable>::Load), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QTransform, QtMetaTypePrivate::TypeDefinition<QTransform>::IsAvailable>::Construct), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QTransform, QtMetaTypePrivate::TypeDefinition<QTransform>::IsAvailable>::Destruct), (QTypeInfo<QTransform>::sizeOf), QtPrivate::QMetaTypeTypeFlags<QTransform>::Flags, (QtPrivate::MetaObjectForType<QTransform>::value()) }, { (QtMetaTypePrivate::QMetaTypeFunctionHelper<QMatrix4x4, QtMetaTypePrivate::TypeDefinition<QMatrix4x4>::IsAvailable>::Create), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QMatrix4x4, QtMetaTypePrivate::TypeDefinition<QMatrix4x4>::IsAvailable>::Delete), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QMatrix4x4, QtMetaTypePrivate::TypeDefinition<QMatrix4x4>::IsAvailable>::Save), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QMatrix4x4, QtMetaTypePrivate::TypeDefinition<QMatrix4x4>::IsAvailable>::Load), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QMatrix4x4, QtMetaTypePrivate::TypeDefinition<QMatrix4x4>::IsAvailable>::Construct), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QMatrix4x4, QtMetaTypePrivate::TypeDefinition<QMatrix4x4>::IsAvailable>::Destruct), (QTypeInfo<QMatrix4x4>::sizeOf), QtPrivate::QMetaTypeTypeFlags<QMatrix4x4>::Flags, (QtPrivate::MetaObjectForType<QMatrix4x4>::value()) }, { (QtMetaTypePrivate::QMetaTypeFunctionHelper<QVector2D, QtMetaTypePrivate::TypeDefinition<QVector2D>::IsAvailable>::Create), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QVector2D, QtMetaTypePrivate::TypeDefinition<QVector2D>::IsAvailable>::Delete), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QVector2D, QtMetaTypePrivate::TypeDefinition<QVector2D>::IsAvailable>::Save), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QVector2D, QtMetaTypePrivate::TypeDefinition<QVector2D>::IsAvailable>::Load), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QVector2D, QtMetaTypePrivate::TypeDefinition<QVector2D>::IsAvailable>::Construct), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QVector2D, QtMetaTypePrivate::TypeDefinition<QVector2D>::IsAvailable>::Destruct), (QTypeInfo<QVector2D>::sizeOf), QtPrivate::QMetaTypeTypeFlags<QVector2D>::Flags, (QtPrivate::MetaObjectForType<QVector2D>::value()) }, { (QtMetaTypePrivate::QMetaTypeFunctionHelper<QVector3D, QtMetaTypePrivate::TypeDefinition<QVector3D>::IsAvailable>::Create), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QVector3D, QtMetaTypePrivate::TypeDefinition<QVector3D>::IsAvailable>::Delete), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QVector3D, QtMetaTypePrivate::TypeDefinition<QVector3D>::IsAvailable>::Save), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QVector3D, QtMetaTypePrivate::TypeDefinition<QVector3D>::IsAvailable>::Load), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QVector3D, QtMetaTypePrivate::TypeDefinition<QVector3D>::IsAvailable>::Construct), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QVector3D, QtMetaTypePrivate::TypeDefinition<QVector3D>::IsAvailable>::Destruct), (QTypeInfo<QVector3D>::sizeOf), QtPrivate::QMetaTypeTypeFlags<QVector3D>::Flags, (QtPrivate::MetaObjectForType<QVector3D>::value()) }, { (QtMetaTypePrivate::QMetaTypeFunctionHelper<QVector4D, QtMetaTypePrivate::TypeDefinition<QVector4D>::IsAvailable>::Create), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QVector4D, QtMetaTypePrivate::TypeDefinition<QVector4D>::IsAvailable>::Delete), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QVector4D, QtMetaTypePrivate::TypeDefinition<QVector4D>::IsAvailable>::Save), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QVector4D, QtMetaTypePrivate::TypeDefinition<QVector4D>::IsAvailable>::Load), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QVector4D, QtMetaTypePrivate::TypeDefinition<QVector4D>::IsAvailable>::Construct), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QVector4D, QtMetaTypePrivate::TypeDefinition<QVector4D>::IsAvailable>::Destruct), (QTypeInfo<QVector4D>::sizeOf), QtPrivate::QMetaTypeTypeFlags<QVector4D>::Flags, (QtPrivate::MetaObjectForType<QVector4D>::value()) }, { (QtMetaTypePrivate::QMetaTypeFunctionHelper<QQuaternion, QtMetaTypePrivate::TypeDefinition<QQuaternion>::IsAvailable>::Create), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QQuaternion, QtMetaTypePrivate::TypeDefinition<QQuaternion>::IsAvailable>::Delete), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QQuaternion, QtMetaTypePrivate::TypeDefinition<QQuaternion>::IsAvailable>::Save), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QQuaternion, QtMetaTypePrivate::TypeDefinition<QQuaternion>::IsAvailable>::Load), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QQuaternion, QtMetaTypePrivate::TypeDefinition<QQuaternion>::IsAvailable>::Construct), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QQuaternion, QtMetaTypePrivate::TypeDefinition<QQuaternion>::IsAvailable>::Destruct), (QTypeInfo<QQuaternion>::sizeOf), QtPrivate::QMetaTypeTypeFlags<QQuaternion>::Flags, (QtPrivate::MetaObjectForType<QQuaternion>::value()) }, { (QtMetaTypePrivate::QMetaTypeFunctionHelper<QPolygonF, QtMetaTypePrivate::TypeDefinition<QPolygonF>::IsAvailable>::Create), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QPolygonF, QtMetaTypePrivate::TypeDefinition<QPolygonF>::IsAvailable>::Delete), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QPolygonF, QtMetaTypePrivate::TypeDefinition<QPolygonF>::IsAvailable>::Save), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QPolygonF, QtMetaTypePrivate::TypeDefinition<QPolygonF>::IsAvailable>::Load), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QPolygonF, QtMetaTypePrivate::TypeDefinition<QPolygonF>::IsAvailable>::Construct), (QtMetaTypePrivate::QMetaTypeFunctionHelper<QPolygonF, QtMetaTypePrivate::TypeDefinition<QPolygonF>::IsAvailable>::Destruct), (QTypeInfo<QPolygonF>::sizeOf), QtPrivate::QMetaTypeTypeFlags<QPolygonF>::Flags, (QtPrivate::MetaObjectForType<QPolygonF>::value()) }, -
256}; -
257 -
258 -
259} -
260 -
261extern __attribute__((visibility("default"))) const QMetaTypeInterface *qMetaTypeGuiHelper; -
262 -
263void qRegisterGuiVariant() -
264{ -
265 QVariantPrivate::registerHandler(QModulesPrivate::Gui, &qt_gui_variant_handler); -
266 qMetaTypeGuiHelper = qVariantGuiHelper; -
267}
executed: }
Execution Count:489
489
268namespace { static const struct qRegisterGuiVariant_ctor_class_ { inline qRegisterGuiVariant_ctor_class_() { qRegisterGuiVariant(); } } qRegisterGuiVariant_ctor_instance_; }
executed: }
Execution Count:200
200
269 -
270 -
271 -
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial