X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdrawingview.cpp;h=bd4bb4638612a895ecb99185e28abbca7a05ecb5;hb=746443089f76c115245d1500b780d7d189b9b2af;hp=920760ef6b592485cea97976c62feadb610d8a39;hpb=b8c3c411826c1df00e54daeaf6cd820685f4f460;p=architektonas diff --git a/src/drawingview.cpp b/src/drawingview.cpp index 920760e..bd4bb46 100644 --- a/src/drawingview.cpp +++ b/src/drawingview.cpp @@ -58,10 +58,15 @@ DrawingView::DrawingView(QWidget * parent/*= NULL*/): QWidget(parent), document.Add(new Circle(Vector(50, 150), 49, &document)); document.Add(new Arc(Vector(300, 300), 32, PI / 4.0, PI * 1.3, &document)), document.Add(new Arc(Vector(200, 200), 60, PI / 2.0, PI * 1.5, &document)); +#if 1 Dimension * dimension = new Dimension(Vector(0, 0), Vector(0, 0), &document); - line->SetDimensionOnPoint1(dimension); - line->SetDimensionOnPoint2(dimension); + line->SetDimensionOnLine(dimension); +// line->SetDimensionOnPoint2(dimension); document.Add(dimension); +#else + // Alternate way to do the above... + line->SetDimensionOnLine(); +#endif } QPoint DrawingView::GetAdjustedMousePosition(QMouseEvent * event)