Logo Search packages:      
Sourcecode: qt4-x11 version File versions

void QGraphicsItem::setFlag ( GraphicsItemFlag  flag,
bool  enabled = true 
) [inherited]

If enabled is true, the item flag flag is enabled; otherwise, it is disabled.

See also:
flags(), setFlags()

Definition at line 1119 of file qgraphicsitem.cpp.

References QGraphicsItem::flags(), and QGraphicsItem::setFlags().

Referenced by Arrow::Arrow(), DiagramItem::DiagramItem(), and DiagramTextItem::DiagramTextItem().

    if (enabled)
        setFlags(flags() | flag);
        setFlags(flags() & ~flag);

Generated by  Doxygen 1.6.0   Back to index