24 #include <QStyleOptionGraphicsItem>
29 #include <QGraphicsView>
31 #include <qgraphicssceneevent.h>
37 derivedItem(derivedItem)
44 QGraphicsView* view = qobject_cast<QGraphicsView*>(event->widget()->parent());
50 qreal lodT = QStyleOptionGraphicsItem::levelOfDetailFromTransform(painter->worldTransform());
63 float width = derivedItem->boundingRect().width() * levelOfDetail;
79 qreal lodT = QStyleOptionGraphicsItem::levelOfDetailFromTransform(painter->worldTransform());
86 lodP /= derivedItem->scale();