[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-edu
Subject:    Re: [kde-edu]: no more QPtrLists!
From:       Pino Toscano <toscano.pino () tiscali ! it>
Date:       2005-05-31 21:29:52
Message-ID: 429CD750.4020101 () tiscali ! it
[Download RAW message or body]

Jason Harris ha scritto:
> The word on the net is, we can't use QPtrList's in kde4 code.
> 
> % cd ~/kde/kdesvn/kdeedu/kstars/kstars
> % grep QPtrList *.h *.cpp tools/*.h tools/*.cpp | wc -l
> 97
> 
> Ouch.  So, I'm supposed to use QValueLists instead; is that right?  Are they 
> essentially a "drop in" replacement (other than the fact that they contain 
> refs rather than pointers)?

Ehm... even QValueList<T> is gone ;)

You (or better, we) should use one of QList<T> or QLinkedList<T>.
And if you have to store pointers to eg a class Foo, you could use
QList<Foo*> or QLinkedList<Foo*>.

Best regards,

-- 
Pino Toscano
_______________________________________________
kde-edu mailing list
kde-edu@mail.kde.org
https://mail.kde.org/mailman/listinfo/kde-edu
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic