From kde-core-devel Fri Aug 27 10:53:52 1999 From: Roberto Alsina Date: Fri, 27 Aug 1999 10:53:52 +0000 To: kde-core-devel Subject: Re: KTabListBox X-MARC-Message: https://marc.info/?l=kde-core-devel&m=93577378105318 On Fri, 27 Aug 1999, Reginald Stadlbauer wrote: > 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)? > > I fear there is no way to do this. But for what do you need it? Well, a simple way is to add items to a QList when you add them to the QListView. It breaks when you resort the QListView, of course, and sucks if you have nested QListViewItems. ("\''/").__..-''"`-. . Roberto Alsina `9_ 9 ) `-. ( ).`-._.`) ralsina@unl.edu.ar (_Y_.)' ._ ) `._`. " -.-' Centro de Telematica _..`-'_..-_/ /-'_.' Universidad Nacional del Litoral (l)-'' ((i).' ((!.' Santa Fe - Argentina KDE Developer (MFCH) Not mad, but bound more than a madman is (Romeo and Juliet, Act I Scene II)