/QGI/QGraphicsItem/

This commit is contained in:
WandererFan
2016-01-17 12:13:45 -05:00
committed by wmayer
parent 08c46a7d07
commit ffbaf79f4a
43 changed files with 186 additions and 188 deletions

View File

@@ -43,11 +43,11 @@ using namespace TechDrawGui;
QGCustomClip::QGCustomClip()
{
setHandlesChildEvents(false); //not sure if needs to handle events for Views in Group???
setCacheMode(QGI::NoCache);
setCacheMode(QGraphicsItem::NoCache);
setAcceptHoverEvents(false);
setFlag(QGI::ItemIsSelectable, false);
setFlag(QGI::ItemIsMovable, false);
setFlag(QGI::ItemClipsChildrenToShape, true);
setFlag(QGraphicsItem::ItemIsSelectable, false);
setFlag(QGraphicsItem::ItemIsMovable, false);
setFlag(QGraphicsItem::ItemClipsChildrenToShape, true);
m_rect = QRectF(0.,0.,10.,10.);
}
@@ -93,7 +93,7 @@ void QGCustomClip::paint ( QPainter * painter, const QStyleOptionGraphicsItem *
QStyleOptionGraphicsItem myOption(*option);
myOption.state &= ~QStyle::State_Selected;
QGIGroup::paint (painter, &myOption, widget);
QGraphicsItemGroup::paint (painter, &myOption, widget);
}
QRectF QGCustomClip::boundingRect() const //sb shape()?