X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdrawingview.cpp;h=3f27f96f84c5284b24d7efb5b06f67e7f32c14a8;hb=baf67656b97e3d61e9223e66ebe4f554e364cd4a;hp=8c706a9372b8f27330bcff2c4b1f7f299b68b284;hpb=5446001bd9adfd9f4787f5de5a2a7afd8d7cdb5a;p=architektonas diff --git a/src/drawingview.cpp b/src/drawingview.cpp index 8c706a9..3f27f96 100644 --- a/src/drawingview.cpp +++ b/src/drawingview.cpp @@ -67,7 +67,7 @@ DrawingView::DrawingView(QWidget * parent/*= NULL*/): QWidget(parent), 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); + Dimension * dimension = new Dimension(Vector(0, 0), Vector(0, 0), DTLinear, &document); line->SetDimensionOnLine(dimension); document.Add(dimension); #else @@ -242,7 +242,8 @@ void DrawingView::paintEvent(QPaintEvent * /*event*/) painter.DrawLine(-16384, 0, 16384, 0); // Draw supplemental (tool related) points - +// NOTE that this can be done as an action! +// In that case, we would need access to the document... if (rotateTool) { painter.SetPen(QPen(QColor(0, 200, 0), 2.0, Qt::SolidLine));