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

bool RS_Entity::isParentSelected (  )  [virtual, inherited]

true if a parent entity of this entity is selected.

Definition at line 169 of file rs_entity.cpp.

References RS_Entity::getParent(), and RS_Entity::isSelected().

Referenced by RS_GraphicView::drawEntity().

    RS_Entity* p = this;

    do {
        p = p->getParent();
        if (p!=NULL && p->isSelected()==true) {
            return true;
    } while(p!=NULL);

    return false;

Generated by  Doxygen 1.6.0   Back to index