Skip to content

Commit

Permalink
Add all existing metatypes left
Browse files Browse the repository at this point in the history
Beyond the name of the type, there are no specific views.
It may not be worth the efforts.

Change-Id: Ie93b511b428c38775d39efeb11eb9156d3289bc4
Reviewed-on: https://codereview.kdab.com/c/kdab/KDToolBox/+/122058
Tested-by: Continuous Integration <build@kdab.com>
Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
  • Loading branch information
narnaud committed Feb 21, 2023
1 parent f0b88c9 commit 710f7c2
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions qt/qt6_natvis/qt6.natvis
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,9 @@

<DisplayString Condition="d.is_null">(null)</DisplayString>

<!-- Static core pointers -->
<DisplayString Condition="typeId() == QMetaType::QObjectStar">QObject*</DisplayString>

<!-- Static core template classes -->
<DisplayString Condition="typeId() == QMetaType::QVariantMap">{*(QMap&lt;QString,QVariant&gt;*) sharedDataStar()}</DisplayString>
<DisplayString Condition="typeId() == QMetaType::QVariantList">{*(QList&lt;QVariant&gt;*) sharedDataStar()}</DisplayString>
Expand Down Expand Up @@ -694,6 +697,34 @@
<DisplayString Condition="typeId() == QMetaType::QModelIndex">ModelIndex</DisplayString>
<DisplayString Condition="typeId() == QMetaType::QPersistentModelIndex">QPersistentModelIndex</DisplayString>

<!-- Static gui classes -->
<DisplayString Condition="typeId() == QMetaType::QFont">QFont</DisplayString>
<DisplayString Condition="typeId() == QMetaType::QPixmap">QPixmap</DisplayString>
<DisplayString Condition="typeId() == QMetaType::QBrush">QBrush</DisplayString>
<DisplayString Condition="typeId() == QMetaType::QColor">QColor</DisplayString>
<DisplayString Condition="typeId() == QMetaType::QPalette">QPalette</DisplayString>
<DisplayString Condition="typeId() == QMetaType::QIcon">QIcon</DisplayString>
<DisplayString Condition="typeId() == QMetaType::QImage">QImage</DisplayString>
<DisplayString Condition="typeId() == QMetaType::QPolygon">QPolygon</DisplayString>
<DisplayString Condition="typeId() == QMetaType::QRegion">QRegion</DisplayString>
<DisplayString Condition="typeId() == QMetaType::QBitmap">QBitmap</DisplayString>
<DisplayString Condition="typeId() == QMetaType::QCursor">QCursor</DisplayString>
<DisplayString Condition="typeId() == QMetaType::QKeySequence">QKeySequence</DisplayString>
<DisplayString Condition="typeId() == QMetaType::QPen">QPen</DisplayString>
<DisplayString Condition="typeId() == QMetaType::QTextLength">QTextLength</DisplayString>
<DisplayString Condition="typeId() == QMetaType::QTextFormat">QTextFormat</DisplayString>
<DisplayString Condition="typeId() == QMetaType::QTransform">QTransform</DisplayString>
<DisplayString Condition="typeId() == QMetaType::QMatrix4x4">QMatrix4x4</DisplayString>
<DisplayString Condition="typeId() == QMetaType::QVector2D">QVector2D</DisplayString>
<DisplayString Condition="typeId() == QMetaType::QVector3D">QVector3D</DisplayString>
<DisplayString Condition="typeId() == QMetaType::QVector4D">QVector4D</DisplayString>
<DisplayString Condition="typeId() == QMetaType::QQuaternion">QQuaternion</DisplayString>
<DisplayString Condition="typeId() == QMetaType::QPolygonF">QPolygonF</DisplayString>
<DisplayString Condition="typeId() == QMetaType::QColorSpace">QColorSpace</DisplayString>

<!-- Static widget classes -->
<DisplayString Condition="typeId() == QMetaType::QSizePolicy">QSizePolicy</DisplayString>

<!-- Unhandled : display the typeId-->
<DisplayString>QMetaType::Type ({typeId()})</DisplayString>
</Type>
Expand Down

0 comments on commit 710f7c2

Please sign in to comment.