From: Niko Sams <niko.sams@gmail.com>
To: gdb <gdb@sourceware.org>
Subject: Execute code in python pretty printers
Date: Sun, 28 Jun 2009 19:14:00 -0000 [thread overview]
Message-ID: <629542d40906281214x73c3b505nfeb7e7eecfb1f708@mail.gmail.com> (raw)
Hi,
I'm writing pretty printers for various Qt classes.
For QModelIndex I'd like to show the parent QModelIndex as child. The
parent isn't
saved in the QModelIndex object direclty - instead QModelIndex asks
the model for it's parent.
Basically it returns this->model->parent(this).
QAbstractItemModel::parent is a virtual function implemented
differently in every model.
So to find out the parent the method has to be executed.
Is this possible?
Niko
next reply other threads:[~2009-06-28 19:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-28 19:14 Niko Sams [this message]
2009-06-29 17:08 ` Tom Tromey
2009-06-29 17:18 ` Niko Sams
2009-06-29 18:25 ` Tom Tromey
2009-06-29 17:51 ` Paul Pluzhnikov
2009-06-29 18:26 ` Tom Tromey
2009-06-29 21:36 ` Paul Pluzhnikov
2009-06-29 19:13 ` Niko Sams
2009-06-29 19:18 ` Paul Pluzhnikov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=629542d40906281214x73c3b505nfeb7e7eecfb1f708@mail.gmail.com \
--to=niko.sams@gmail.com \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox