All pastes #429180 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-04-08 02:41 UTC
rendered paste body
void View::changeRotateY(int value)
{
    kDebug() << __FUNCTION__ << ": value:  " << value <<endl;
    QList<Item *> items;
    
    if(scene()->selectedItems().count() == 0)
	return;

    foreach (QGraphicsItem *item, scene()->selectedItems()){
	if(Item *item = qgraphicsitem_cast<Item *>(item))
	    item->setRotateY(value);
//	    items << item;
    }

    kDebug() << __FUNCTION__ << ": items count: " << items.count() << endl;

//     foreach(Item *item, items){
// 	item->setRotateY(value);
// 	kDebug() << __FUNCTION__ << ": cambiando valorY " << endl;
//     }
//     	kDebug() << __FUNCTION__ << ": saliendo " << endl;

}