[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-games-devel
Subject: Re: [Kde-games-devel] kspaceduel: porting to Graphics View
From: Henrique Pinto <henrique.pinto () kdemail ! net>
Date: 2006-12-28 21:59:23
Message-ID: 200612282000.04651.henrique.pinto () kdemail ! net
[Download RAW message or body]
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@kdemail.net
_______________________________________________
kde-games-devel mailing list
kde-games-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-games-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic