Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Execute code in python pretty printers
@ 2009-06-28 19:14 Niko Sams
  2009-06-29 17:08 ` Tom Tromey
  0 siblings, 1 reply; 9+ messages in thread
From: Niko Sams @ 2009-06-28 19:14 UTC (permalink / raw)
  To: gdb

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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-06-29 21:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-28 19:14 Execute code in python pretty printers Niko Sams
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox