| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<!-- |
| 3 |
**************************************************************************** |
| 4 |
** |
| 5 |
** Copyright (C) 2021 The Qt Company Ltd. |
| 6 |
** Contact: https://www.qt.io/licensing/ |
| 7 |
** |
| 8 |
** This file is part of the Qt VS Tools. |
| 9 |
** |
| 10 |
** $QT_BEGIN_LICENSE:GPL-EXCEPT$ |
| 11 |
** Commercial License Usage |
| 12 |
** Licensees holding valid commercial Qt licenses may use this file in |
| 13 |
** accordance with the commercial license agreement provided with the |
| 14 |
** Software or, alternatively, in accordance with the terms contained in |
| 15 |
** a written agreement between you and The Qt Company. For licensing terms |
| 16 |
** and conditions see https://www.qt.io/terms-conditions. For further |
| 17 |
** information use the contact form at https://www.qt.io/contact-us. |
| 18 |
** |
| 19 |
** GNU General Public License Usage |
| 20 |
** Alternatively, this file may be used under the terms of the GNU |
| 21 |
** General Public License version 3 as published by the Free Software |
| 22 |
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT |
| 23 |
** included in the packaging of this file. Please review the following |
| 24 |
** information to ensure the GNU General Public License requirements will |
| 25 |
** be met: https://www.gnu.org/licenses/gpl-3.0.html. |
| 26 |
** |
| 27 |
** $QT_END_LICENSE$ |
| 28 |
** |
| 29 |
**************************************************************************** |
| 30 |
--> |
| 31 |
|
| 32 |
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010"> |
| 33 |
|
| 34 |
<Type Name="QSpecialInteger<*>"> |
| 35 |
<DisplayString>{val}</DisplayString> |
| 36 |
<Expand> |
| 37 |
<Item Name="[value]">val</Item> |
| 38 |
</Expand> |
| 39 |
</Type> |
| 40 |
|
| 41 |
<Type Name="QBasicAtomicInteger<*>"> |
| 42 |
<DisplayString>{_q_value}</DisplayString> |
| 43 |
<Expand> |
| 44 |
<Item Name="[value]">_q_value</Item> |
| 45 |
</Expand> |
| 46 |
</Type> |
| 47 |
|
| 48 |
<Type Name="QBasicAtomicPointer<*>"> |
| 49 |
<Intrinsic Name="isNull" Expression="value()==0" /> |
| 50 |
<Intrinsic Name="value" Expression="_q_value.value()" /> |
| 51 |
<DisplayString Condition="isNull()">empty</DisplayString> |
| 52 |
<DisplayString Condition="!isNull()">{_q_value}</DisplayString> |
| 53 |
<Expand> |
| 54 |
<Item Name=" " Condition="!isNull()">*value()</Item> |
| 55 |
</Expand> |
| 56 |
</Type> |
| 57 |
|
| 58 |
<Type Name="QPoint"> |
| 59 |
<AlternativeType Name="QPointF"/> |
| 60 |
<DisplayString>{{ x = {xp}, y = {yp} }}</DisplayString> |
| 61 |
<Expand> |
| 62 |
<Item Name="[x]">xp</Item> |
| 63 |
<Item Name="[y]">yp</Item> |
| 64 |
</Expand> |
| 65 |
</Type> |
| 66 |
|
| 67 |
<Type Name="QRect"> |
| 68 |
<DisplayString>{{ x = {x1}, y = {y1}, width = {x2 - x1 + 1}, height = {y2 - y1 + 1} }}</DisplayString> |
| 69 |
<Expand> |
| 70 |
<Item Name="[x]">x1</Item> |
| 71 |
<Item Name="[y]">y1</Item> |
| 72 |
<Item Name="[width]">x2 - x1 + 1</Item> |
| 73 |
<Item Name="[height]">y2 - y1 + 1</Item> |
| 74 |
</Expand> |
| 75 |
</Type> |
| 76 |
|
| 77 |
<Type Name="QRectF"> |
| 78 |
<DisplayString>{{ x = {xp}, y = {yp}, width = {w}, height = {h} }}</DisplayString> |
| 79 |
<Expand> |
| 80 |
<Item Name="[x]">xp</Item> |
| 81 |
<Item Name="[y]">yp</Item> |
| 82 |
<Item Name="[width]">w</Item> |
| 83 |
<Item Name="[height]">h</Item> |
| 84 |
</Expand> |
| 85 |
</Type> |
| 86 |
|
| 87 |
<Type Name="QSize"> |
| 88 |
<AlternativeType Name="QSizeF"/> |
| 89 |
<DisplayString>{{ width = {wd}, height = {ht} }}</DisplayString> |
| 90 |
<Expand> |
| 91 |
<Item Name="[width]">wd</Item> |
| 92 |
<Item Name="[height]">ht</Item> |
| 93 |
</Expand> |
| 94 |
</Type> |
| 95 |
|
| 96 |
<Type Name="QLine"> |
| 97 |
<AlternativeType Name="QLineF"/> |
| 98 |
<DisplayString>{{ start point = {pt1}, end point = {pt2} }}</DisplayString> |
| 99 |
<Expand> |
| 100 |
<Synthetic Name="[start point]"> |
| 101 |
<DisplayString>{pt1}</DisplayString> |
| 102 |
<Expand> |
| 103 |
<ExpandedItem>pt1</ExpandedItem> |
| 104 |
</Expand> |
| 105 |
</Synthetic> |
| 106 |
<Synthetic Name="[end point]"> |
| 107 |
<DisplayString>{pt2}</DisplayString> |
| 108 |
<Expand> |
| 109 |
<ExpandedItem>pt2</ExpandedItem> |
| 110 |
</Expand> |
| 111 |
</Synthetic> |
| 112 |
|
| 113 |
</Expand> |
| 114 |
</Type> |
| 115 |
|
| 116 |
<Type Name="QPolygon"> |
| 117 |
<DisplayString>{{ size={d->size} }}</DisplayString> |
| 118 |
<Expand> |
| 119 |
<Item Name="[referenced]">d->ref.atomic._q_value</Item> |
| 120 |
<ArrayItems> |
| 121 |
<Size>d->size</Size> |
| 122 |
<ValuePointer>(QPoint*)((reinterpret_cast<char*>(d)) + d->offset)</ValuePointer> |
| 123 |
</ArrayItems> |
| 124 |
</Expand> |
| 125 |
</Type> |
| 126 |
|
| 127 |
<Type Name="QPolygonF"> |
| 128 |
<DisplayString>{{ size={d->size} }}</DisplayString> |
| 129 |
<Expand> |
| 130 |
<Item Name="[closed]"> |
| 131 |
d->size > 0 |
| 132 |
&& ((((QPointF*)((reinterpret_cast<char*>(d)) + d->offset)[0]).xp |
| 133 |
== (((QPointF*)((reinterpret_cast<char*>(d)) + d->offset)[d->size - 1]).xp) |
| 134 |
&& ((((QPointF*)((reinterpret_cast<char*>(d)) + d->offset)[0]).yp |
| 135 |
== (((QPointF*)((reinterpret_cast<char*>(d)) + d->offset)[d->size - 1]).yp) |
| 136 |
</Item> |
| 137 |
<Item Name="[referenced]">d->ref.atomic._q_value</Item> |
| 138 |
<ArrayItems> |
| 139 |
<Size>d->size</Size> |
| 140 |
<ValuePointer>(QPointF*)((reinterpret_cast<char*>(d)) + d->offset)</ValuePointer> |
| 141 |
</ArrayItems> |
| 142 |
</Expand> |
| 143 |
</Type> |
| 144 |
|
| 145 |
<Type Name="QVector2D"> |
| 146 |
<DisplayString>{{ x = {xp}, y = {yp} }}</DisplayString> |
| 147 |
<Expand> |
| 148 |
<Item Name="[x]">xp</Item> |
| 149 |
<Item Name="[y]">yp</Item> |
| 150 |
</Expand> |
| 151 |
</Type> |
| 152 |
|
| 153 |
<Type Name="QVector3D"> |
| 154 |
<DisplayString>{{ x = {xp}, y = {yp}, z = {zp} }}</DisplayString> |
| 155 |
<Expand> |
| 156 |
<Item Name="[x]">xp</Item> |
| 157 |
<Item Name="[y]">yp</Item> |
| 158 |
<Item Name="[z]">zp</Item> |
| 159 |
</Expand> |
| 160 |
</Type> |
| 161 |
|
| 162 |
<Type Name="QVector4D"> |
| 163 |
<DisplayString>{{ x = {xp}, y = {yp}, z = {zp}, w = {wp} }}</DisplayString> |
| 164 |
<Expand> |
| 165 |
<Item Name="[x]">xp</Item> |
| 166 |
<Item Name="[y]">yp</Item> |
| 167 |
<Item Name="[z]">zp</Item> |
| 168 |
<Item Name="[w]">wp</Item> |
| 169 |
</Expand> |
| 170 |
</Type> |
| 171 |
|
| 172 |
<Type Name="QMatrix"> |
| 173 |
<DisplayString> |
| 174 |
{{ m11 = {_m11}, m12 = {_m12}, m21 = {_m21}, m22 = {_m22}, ... }} |
| 175 |
</DisplayString> |
| 176 |
<Expand> |
| 177 |
<Item Name="[m11]">_m11</Item> |
| 178 |
<Item Name="[m12]">_m12</Item> |
| 179 |
<Item Name="[m21]">_m21</Item> |
| 180 |
<Item Name="[m22]">_m22</Item> |
| 181 |
<Item Name="[dx]">_dx</Item> |
| 182 |
<Item Name="[dy]">_dy</Item> |
| 183 |
</Expand> |
| 184 |
</Type> |
| 185 |
|
| 186 |
<Type Name="QMatrix4x4"> |
| 187 |
<DisplayString> |
| 188 |
{{ m11 = {m[0][0]}, m12 = {m[1][0]}, m13 = {m[2][0]}, m14 = {m[3][0]}, ... }} |
| 189 |
</DisplayString> |
| 190 |
<Expand> |
| 191 |
<Item Name="[m11]">m[0][0]</Item> |
| 192 |
<Item Name="[m12]">m[1][0]</Item> |
| 193 |
<Item Name="[m13]">m[2][0]</Item> |
| 194 |
<Item Name="[m14]">m[3][0]</Item> |
| 195 |
<Item Name="[m21]">m[0][1]</Item> |
| 196 |
<Item Name="[m22]">m[1][1]</Item> |
| 197 |
<Item Name="[m23]">m[2][1]</Item> |
| 198 |
<Item Name="[m24]">m[3][1]</Item> |
| 199 |
<Item Name="[m31]">m[0][2]</Item> |
| 200 |
<Item Name="[m32]">m[1][2]</Item> |
| 201 |
<Item Name="[m33]">m[2][2]</Item> |
| 202 |
<Item Name="[m34]">m[3][2]</Item> |
| 203 |
<Item Name="[m41]">m[0][3]</Item> |
| 204 |
<Item Name="[m42]">m[1][3]</Item> |
| 205 |
<Item Name="[m43]">m[2][3]</Item> |
| 206 |
<Item Name="[m44]">m[3][3]</Item> |
| 207 |
</Expand> |
| 208 |
</Type> |
| 209 |
|
| 210 |
<Type Name="QSizePolicy"> |
| 211 |
<DisplayString> |
| 212 |
{{ horizontal = {static_cast<Policy>(bits.horPolicy)}, vertical = {static_cast<Policy>(bits.verPolicy)}, type = {ControlType(1 << bits.ctype)} }} |
| 213 |
</DisplayString> |
| 214 |
<Expand> |
| 215 |
<Synthetic Name="[vertical policy]"> |
| 216 |
<DisplayString>QSizePolicy::Policy::{static_cast<Policy>(bits.verPolicy)}</DisplayString> |
| 217 |
</Synthetic> |
| 218 |
<Synthetic Name="[horizontal policy]"> |
| 219 |
<DisplayString>QSizePolicy::Policy::{static_cast<Policy>(bits.horPolicy)}</DisplayString> |
| 220 |
</Synthetic> |
| 221 |
<Synthetic Name="[control type]"> |
| 222 |
<DisplayString>QSizePolicy::ControlType::{ControlType(1 << bits.ctype)}</DisplayString> |
| 223 |
</Synthetic> |
| 224 |
<Synthetic Name="[expanding directions]"> |
| 225 |
<DisplayString |
| 226 |
Condition="(static_cast<Policy>(bits.verPolicy) & ExpandFlag)"> |
| 227 |
Qt::Vertical (2) |
| 228 |
</DisplayString> |
| 229 |
<DisplayString |
| 230 |
Condition="(static_cast<Policy>(bits.horPolicy) & ExpandFlag)"> |
| 231 |
Qt::Horizontal (1) |
| 232 |
</DisplayString> |
| 233 |
</Synthetic> |
| 234 |
<Item Name="[vertical stretch]">static_cast<int>(bits.verStretch)</Item> |
| 235 |
<Item Name="[horizontal stretch]">static_cast<int>(bits.horStretch)</Item> |
| 236 |
<Item Name="[has height for width]">bits.hfw == 1</Item> |
| 237 |
<Item Name="[has width for height]">bits.wfh == 1</Item> |
| 238 |
</Expand> |
| 239 |
</Type> |
| 240 |
|
| 241 |
<Type Name="QChar"> |
| 242 |
<DisplayString>{ucs,c}</DisplayString> |
| 243 |
<StringView>ucs,c</StringView> |
| 244 |
<Expand> |
| 245 |
<Item Name="[latin 1]">ucs > 0xff ? '\0' : char(ucs),c</Item> |
| 246 |
<Item Name="[unicode]">ucs,c</Item> |
| 247 |
</Expand> |
| 248 |
</Type> |
| 249 |
|
| 250 |
<Type Name="QString"> |
| 251 |
<DisplayString>"{(reinterpret_cast<unsigned short*>(d.ptr)),sub}"</DisplayString> |
| 252 |
<StringView>(reinterpret_cast<unsigned short*>(d.ptr)),sub</StringView> |
| 253 |
<Expand> |
| 254 |
<Item Name="[size]">d.size</Item> |
| 255 |
<ArrayItems> |
| 256 |
<Size>d.size</Size> |
| 257 |
<ValuePointer>d.ptr</ValuePointer> |
| 258 |
</ArrayItems> |
| 259 |
</Expand> |
| 260 |
</Type> |
| 261 |
|
| 262 |
<Type Name="QStringRef"> |
| 263 |
<DisplayString Condition="m_string == nullptr">{m_string,[m_size]} u""</DisplayString> |
| 264 |
<DisplayString Condition="m_string != nullptr">{m_string->d.ptr+m_position,[m_size]}</DisplayString> |
| 265 |
<StringView Condition="m_string == nullptr">""</StringView> |
| 266 |
<StringView Condition="m_string != nullptr">m_string,[m_position+m_size]</StringView> |
| 267 |
<Expand> |
| 268 |
<Item Name="[position]" ExcludeView="simple">m_position</Item> |
| 269 |
<Item Name="[size]" ExcludeView="simple">m_size</Item> |
| 270 |
<ArrayItems Condition="m_string != nullptr"> |
| 271 |
<Size>m_size</Size> |
| 272 |
<ValuePointer>m_string->d.ptr+m_position</ValuePointer> |
| 273 |
</ArrayItems> |
| 274 |
</Expand> |
| 275 |
</Type> |
| 276 |
|
| 277 |
<Type Name="QStringView"> |
| 278 |
<DisplayString>{m_data,[m_size]}</DisplayString> |
| 279 |
<StringView>m_data,[m_size]</StringView> |
| 280 |
<Expand> |
| 281 |
<Item Name="[size]" ExcludeView="simple">m_size</Item> |
| 282 |
<ArrayItems> |
| 283 |
<Size>m_size</Size> |
| 284 |
<ValuePointer>m_data</ValuePointer> |
| 285 |
</ArrayItems> |
| 286 |
</Expand> |
| 287 |
</Type> |
| 288 |
|
| 289 |
<Type Name="QByteArray"> |
| 290 |
<DisplayString>"{((reinterpret_cast<char*>(d.ptr))),sb}"</DisplayString> |
| 291 |
<StringView>((reinterpret_cast<char*>(d.ptr))),sb</StringView> |
| 292 |
<Expand> |
| 293 |
<Item Name="[size]">d.size</Item> |
| 294 |
<ArrayItems> |
| 295 |
<Size>d.size</Size> |
| 296 |
<ValuePointer>d.ptr</ValuePointer> |
| 297 |
</ArrayItems> |
| 298 |
</Expand> |
| 299 |
</Type> |
| 300 |
|
| 301 |
<Type Name="QUrl"> |
| 302 |
<Intrinsic Name="isEmpty" Expression="size==0"> |
| 303 |
<Parameter Name="size" Type="int"/> |
| 304 |
</Intrinsic> |
| 305 |
<Intrinsic Name="memberOffset" Expression="sizeof(QAtomicInt) + sizeof(int) + (sizeof(QString) * count)"> |
| 306 |
<Parameter Name="count" Type="int"/> |
| 307 |
</Intrinsic> |
| 308 |
<Intrinsic Name="scheme" Expression="*((QString*)(((char*)(d) + memberOffset(0))))" /> |
| 309 |
<Intrinsic Name="username" Expression="*((QString*)(((char*)(d) + memberOffset(1))))" /> |
| 310 |
<Intrinsic Name="password" Expression="*((QString*)(((char*)(d) + memberOffset(2))))" /> |
| 311 |
<Intrinsic Name="host" Expression="*((QString*)(((char*)(d) + memberOffset(3))))" /> |
| 312 |
<Intrinsic Name="path" Expression="*((QString*)(((char*)(d) + memberOffset(4))))" /> |
| 313 |
<Intrinsic Name="query" Expression="*((QString*)(((char*)(d) + memberOffset(5))))" /> |
| 314 |
<Intrinsic Name="fragment" Expression="*((QString*)(((char*)(d) + memberOffset(6))))" /> |
| 315 |
|
| 316 |
<DisplayString Condition="!isEmpty(scheme().d->size)">{scheme()}://{host()}{path()}</DisplayString> |
| 317 |
<DisplayString Condition="isEmpty(scheme().d->size)">{path()}</DisplayString> |
| 318 |
<Expand> |
| 319 |
<Item Name="[scheme]">scheme()</Item> |
| 320 |
<Item Name="[username]">username()</Item> |
| 321 |
<Item Name="[password]">password()</Item> |
| 322 |
<Item Name="[host]">host()</Item> |
| 323 |
<Item Name="[path]">path()</Item> |
| 324 |
<Item Name="[query]">query()</Item> |
| 325 |
<Item Name="[fragment]">fragment()</Item> |
| 326 |
</Expand> |
| 327 |
</Type> |
| 328 |
|
| 329 |
<Type Name="QDate"> |
| 330 |
<DisplayString>{{ julian day = {jd} }}</DisplayString> |
| 331 |
</Type> |
| 332 |
|
| 333 |
<Type Name="QTime"> |
| 334 |
<Intrinsic Name="hour" Expression="mds / 3600000" /> |
| 335 |
<Intrinsic Name="minute" Expression="(mds % 3600000) / 60000" /> |
| 336 |
<Intrinsic Name="second" Expression="(mds / 1000) % 60" /> |
| 337 |
<Intrinsic Name="millisecond" Expression="mds % 1000" /> |
| 338 |
<DisplayString Condition="mds == 1">{{ millisecond = {mds} }}</DisplayString> |
| 339 |
<DisplayString Condition="mds != 1">{{ milliseconds = {mds} }}</DisplayString> |
| 340 |
<Expand> |
| 341 |
<Item Name="[hour]" |
| 342 |
Condition="(mds / 3600000) == 1">hour(), d</Item> |
| 343 |
<Item Name="[hours]" |
| 344 |
Condition="(mds / 3600000) != 1">hour(), d</Item> |
| 345 |
<Item Name="[minute]" |
| 346 |
Condition="((mds % 3600000) / 60000) == 1">minute(), d</Item> |
| 347 |
<Item Name="[minutes]" |
| 348 |
Condition="((mds % 3600000) / 60000) != 1">minute(), d</Item> |
| 349 |
<Item Name="[second]" |
| 350 |
Condition="((mds / 1000) % 60) == 1">second(), d</Item> |
| 351 |
<Item Name="[seconds]" |
| 352 |
Condition="((mds / 1000) % 60) != 1">second(), d</Item> |
| 353 |
<Item Name="[millisecond]" |
| 354 |
Condition="(mds % 1000) == 1">millisecond(), d</Item> |
| 355 |
<Item Name="[milliseconds]" |
| 356 |
Condition="(mds % 1000) != 1">millisecond(), d</Item> |
| 357 |
</Expand> |
| 358 |
</Type> |
| 359 |
|
| 360 |
<Type Name="QPair<*,*>"> |
| 361 |
<DisplayString>({first}, {second})</DisplayString> |
| 362 |
<Expand> |
| 363 |
<Item Name="[first]">first</Item> |
| 364 |
<Item Name="[second]">second</Item> |
| 365 |
</Expand> |
| 366 |
</Type> |
| 367 |
|
| 368 |
<Type Name="QList<*>"> |
| 369 |
<AlternativeType Name="QVector<*>"/> |
| 370 |
<DisplayString>{{ size={d.size} }}</DisplayString> |
| 371 |
<Expand> |
| 372 |
<ArrayItems> |
| 373 |
<Size>d.size</Size> |
| 374 |
<ValuePointer>reinterpret_cast<$T1*>(d.ptr)</ValuePointer> |
| 375 |
</ArrayItems> |
| 376 |
</Expand> |
| 377 |
</Type> |
| 378 |
|
| 379 |
<Type Name="QVarLengthArray<*>"> |
| 380 |
<DisplayString>{{ size={s} }}</DisplayString> |
| 381 |
<Expand> |
| 382 |
<Item Name="[capacity]">a</Item> |
| 383 |
<ArrayItems> |
| 384 |
<Size>s</Size> |
| 385 |
<ValuePointer>ptr</ValuePointer> |
| 386 |
</ArrayItems> |
| 387 |
</Expand> |
| 388 |
</Type> |
| 389 |
|
| 390 |
<Type Name="QMap<*,*>"> |
| 391 |
<AlternativeType Name="QMultiMap<*,*>"/> |
| 392 |
<DisplayString>{{ size={d.d->m._Mypair._Myval2._Myval2._Mysize} }}</DisplayString> |
| 393 |
<Expand> |
| 394 |
<Item Name="[std::map]">d.d->m</Item> |
| 395 |
</Expand> |
| 396 |
</Type> |
| 397 |
|
| 398 |
<Type Name="QHash<*,*>"> |
| 399 |
<AlternativeType Name="QMultiHash<*,*>"/> |
| 400 |
<DisplayString>{{ size = {d->size} }}</DisplayString> |
| 401 |
<Expand> |
| 402 |
<Item Name="[referenced]">d->ref.atomic._q_value</Item> |
| 403 |
</Expand> |
| 404 |
</Type> |
| 405 |
|
| 406 |
</AutoVisualizer> |