# HG changeset patch # User Jeandet Alexis # Date 2015-06-18 12:11:42 # Node ID 78cd1f963533dfdb1db18fd9812e33e1cc359d6d # Parent b996b116b7be0c7a4bce647cf218c9b2edee464b Make via movable. diff --git a/test/PCBView/pcbvia.cpp b/test/PCBView/pcbvia.cpp --- a/test/PCBView/pcbvia.cpp +++ b/test/PCBView/pcbvia.cpp @@ -38,6 +38,7 @@ PCBVia::PCBVia(QIlib::QIcadPcbVia *viaNo void PCBVia::init(QPointF offset) { this->setCacheMode(QGraphicsItem::DeviceCoordinateCache); + this->setFlags(ItemIsMovable|ItemIsSelectable|ItemIsFocusable); offset-=QPointF(this->viaNode->size().width()/2,this->viaNode->size().height()/2); for(int i=0;iviaNode->layers().count();i++)