demos/affine/xform.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
    66     pts->setShapePen(QPen(QColor(255, 100, 50, alpha)));
    66     pts->setShapePen(QPen(QColor(255, 100, 50, alpha)));
    67     pts->setConnectionPen(QPen(QColor(151, 0, 0, 50)));
    67     pts->setConnectionPen(QPen(QColor(151, 0, 0, 50)));
    68     pts->setBoundingRect(QRectF(0, 0, 500, 500));
    68     pts->setBoundingRect(QRectF(0, 0, 500, 500));
    69     ctrlPoints << QPointF(250, 250) << QPointF(350, 250);
    69     ctrlPoints << QPointF(250, 250) << QPointF(350, 250);
    70     pts->setPoints(ctrlPoints);
    70     pts->setPoints(ctrlPoints);
    71     connect(pts, SIGNAL(pointsChanged(const QPolygonF&)),
    71     connect(pts, SIGNAL(pointsChanged(QPolygonF)),
    72             this, SLOT(updateCtrlPoints(const QPolygonF &)));
    72             this, SLOT(updateCtrlPoints(QPolygonF)));
    73     setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
    73     setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
    74 }
    74 }
    75 
    75 
    76 XFormView::XFormType XFormView::type() const
    76 XFormView::XFormType XFormView::type() const
    77 {
    77 {