Logo Search packages:      
Sourcecode: ktechlab version File versions

bool CNItemGroup::canRotate (  )  const

Returns true if at least some of the CNItems in this group can be rotated. Returns false if no items present.

Definition at line 343 of file cnitemgroup.cpp.

Referenced by ItemInterface::updateItemActions().

      const ItemList::const_iterator end = m_itemList.end();
      for ( ItemList::const_iterator it = m_itemList.begin(); it != end; ++it )
            // Components can rotate
            if ( dynamic_cast<Component*>((Item*)*it) )
                  return true;
      return false;

Generated by  Doxygen 1.6.0   Back to index