From 345215a45d5fa946953606243fb6dd2782f88cf0 Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Thu, 4 Dec 2008 21:03:58 +0100 Subject: [PATCH] Update the type table example to Qt 3. It was talking about Qt 1, which nobody uses anymore. --- kdbg/doc/en/types.html | 52 ++++++++++++++++++++++++++++++++++---------------- 1 file changed, 36 insertions(+), 16 deletions(-) diff --git a/kdbg/doc/en/types.html b/kdbg/doc/en/types.html index b288663..81e5d79 100644 --- a/kdbg/doc/en/types.html +++ b/kdbg/doc/en/types.html @@ -141,24 +141,44 @@ entry to quickly specify that a type should be treated like a non-leftmost base class for a multiple-inheritance class.

An example

-

The example shows how QString and QObject are defined -in qt.kdbgtt. Additionally, QTableView is defined as -an alias of QObject. This example applies to Qt 1.x, which is -located in shared library whose name ends in libqt.so.1.

+

The example shows how QString and QRect are defined +in qt3.kdbgtt. Furthermore, the template type QValueVector +is defined. This example applies to Qt 3.x, which is located in shared library +whose name ends in libqt-mt.so.3.

[Type Table]
-Types1=QString
-Types2=QObject,QTableView
-LibDisplayName=libqt 1.x
-ShlibRE=libqt\.so\.1$
+Types1=QString,QRect
+Types2=QValueVector
+LibDisplayName=libqt 3.x
+ShlibRE=libqt-mt\.so\.3$
+EnableBuiltin=QString::Data,QCharIsShort
+
 [QString]
 Display={ % }
-Expr1=(%s).shd->data
-[QObject]
-Display={ name=% #chld=% }
-Expr1=(%s).objname
-Expr2=(%s).childObjects->numNodes
-[QTableView]
-Alias=QObject
-

Note that it is safer to wrap the %s in parentheses.

+Expr1=/QString::Data (%s).d + +[QValueVector] +Template=QValueVector<*> +Display={ size=% shared=% capacity=% } +Expr1=($tmp=(%s).sh)->finish-$tmp->start +Expr2=(%s).sh->count +Expr3=($tmp=(%s).sh)->end-$tmp->start + +[QRect] +Display={ tl=(%,%) br=(%,%) } +Expr1=(%s).x1 +Expr2=(%s).y1 +Expr3=(%s).x2 +Expr4=(%s).y2 +

This example shows these features:

+ -- 2.11.4.GIT