]> Shamusworld >> Repos - architektonas/blobdiff - src/drawingview.cpp
Initial stab at text object. Nonfunctional ATM.
[architektonas] / src / drawingview.cpp
index 8c706a9372b8f27330bcff2c4b1f7f299b68b284..3f27f96f84c5284b24d7efb5b06f67e7f32c14a8 100644 (file)
@@ -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));