forked from monroewilliams/lldb-qt-formatters
-
Notifications
You must be signed in to change notification settings - Fork 2
/
QtFormatters.lldb
18 lines (17 loc) · 1.2 KB
/
QtFormatters.lldb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# types created through the Python code
type summary add -x "^QUrl$" -e -F QtFormatters.QUrl_SummaryProvider
type summary add -x "^QString$" -e -F QtFormatters.QString_SummaryProvider
type synthetic add -x "^QVector<.+>$" -l QtFormatters.QVector_SyntheticProvider
type summary add -x "^QVector<.+>$" -e -s "size=${svar%#}"
type synthetic add -x "^QList<.+>$" -l QtFormatters.QList_SyntheticProvider
type summary add -x "^QList<.+>$" -e -s "size=${svar%#}"
type synthetic add -x "^QPointer<.+>$" -l QtFormatters.QPointer_SyntheticProvider
type summary add -x "^QPointer<.+>$" -e -s "filled="${svar%#}"
# summary only types
type summary add --summary-string "(w=${var.wd}, h=${var.ht})" QSize
type summary add --summary-string "(w=${var.wd}, h=${var.ht})" QSizeF
type summary add --summary-string "(x=${var.xp}, y=${var.yp})" QPoint
type summary add --summary-string "(x=${var.xp}, y=${var.yp})" QPointF
type summary add --summary-string "(x1=${var.x1}, y1=${var.y1}), size=(w=${var.x2}, h=${var.y2})" QRect
type summary add --summary-string "(xp=${var.xp}, yp=${var.yp}), size=(w=${var.w},h=${var.h})" QRectF
type summary add --summary-string "\{${var.data1%x} - ${var.data2%x} - ${var.data3%x} - ${var.data4[0-7]%x}\}" QUuid