From kde-core-devel Mon Aug 30 06:57:49 1999 From: Stefan Taferner Date: Mon, 30 Aug 1999 06:57:49 +0000 To: kde-core-devel Subject: Re: KTabListBox X-MARC-Message: https://marc.info/?l=kde-core-devel&m=93600354118516 On Fri, 27 Aug 1999, Stephan Kulow wrote: > Hi! > > Who put the obsolete warning in ktablistbox header? > Not that I mind to get rid of it, but it's API is > rather very different from the one of QListView, > so the porting isn't that easy. Has someone a tip > how to get an easy mapping from integer->item in > that row without iterating over the whole list > each time (which should get way too slow)? Make a subclass of QListViewItem that also contains an index number which is the index for the container you have. The plus of this approach is that you won't suffer from resorting the QListView. --Stefan