[Kde-games-devel] kspaceduel: porting to Graphics View
    Henrique Pinto 
    henrique.pinto at kdemail.net
       
    Thu Dec 28 23:00:04 CET 2006
    
    
  
On Thu 28 Dec 2006 19:53, Dirk wrote:
> QList<QGraphicsItem *> hitlist;
> QList<QGraphicsItem *>::Iterator it;
> for(it=hitlist.begin(); it != hitlist.end(); ++it) {
>                   bullet=(BulletSprite*)(*it);
Either:
	foreach(QGraphicsItem *item, hitlist)
	{
		bullet = static_cast<BulletSprite*>(item);
		...
	}
or:
	foreach(BulletSprite *bullet, hitlist)
	{
		...
	}
-- 
	Henrique Pinto
	henrique.pinto at kdemail.net
    
    
More information about the kde-games-devel
mailing list