Logo Search packages:      
Sourcecode: ktechlab version File versions  Download package

void Item::setSelected ( bool  yes  )  [virtual, inherited]

Sets the selected flag of the item to yes. selected or unselected will be emitted as appropriate

Reimplemented in DPLine, DPText, DPRectangle, FlowContainer, and MechanicsItem.

Definition at line 336 of file item.cpp.

References Item::selected(), and Item::unselected().

Referenced by CNItemGroup::addItem(), ItemLibrary::itemImage(), CNItemGroup::removeItem(), MechanicsItem::setSelected(), FlowContainer::setSelected(), DPRectangle::setSelected(), DPText::setSelected(), and DPLine::setSelected().

{
      if ( isSelected() == yes ) {
            return;
      }
      QCanvasPolygon::setSelected(yes);
      yes ? (emit selected(this)) : (emit unselected(this));
}


Generated by  Doxygen 1.6.0   Back to index