QTreeView setFirstColumnSpanned?

Dirk Hohndel dirk at hohndel.org
Sat Jun 8 20:40:24 PDT 2013


On Sat, 2013-06-08 at 18:16 -0700, Linus Torvalds wrote:
> On Sat, Jun 8, 2013 at 6:09 PM, Linus Torvalds
> <torvalds at linux-foundation.org> wrote:
> >
> > So hey, let's ask the Qt guys - how would you make trips have just
> > that one first field, and then just print both date and location in
> > that field? And how would you make it line up sanely since
> > setFirstColumnSpanned() doesn't seem to support having two fields and
> > the date string isn't fixed-width?
> 
> The "line up sanely" may not be needed. It's possible that if I were
> to have a dive trip with the location field being "Palau", the nicest
> header for that would just be
> 
>    Palau (11 dives, June 2013)

This I like :-)

> So just setFirstColumnSpanned() together with a nicer trip
> description/date string may well be fine. Which still leaves me with
> "where do I actually call setFirstColumnSpanned(), since we don't have
> any place where we actually iterate over all the entries in the
> QTreeView".

This I can't help with :-(

Thankfully, contrary to the Gtk situation, this time we have an army of
expert to help us (well, maybe a platoon...)

/D



More information about the subsurface mailing list