X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdrawingview.cpp;h=a88be252f9df4b9e3fb011bb700f4316a544a302;hb=86ad64f2288cf50ae9832116ef37c433556355c4;hp=a86e857880402542b3bdf4d53c16d4bb8133f4e7;hpb=325cc9567b5df3be48530d61d3f5056dda19e170;p=architektonas diff --git a/src/drawingview.cpp b/src/drawingview.cpp index a86e857..a88be25 100644 --- a/src/drawingview.cpp +++ b/src/drawingview.cpp @@ -56,7 +56,6 @@ DrawingView::DrawingView(QWidget * parent/*= NULL*/): QWidget(parent), setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); Global::gridSpacing = 12.0; // In base units (inch is default) - #if 0 Line * line = new Line(Vector(5, 5), Vector(50, 40), &document); document.Add(line); @@ -94,6 +93,7 @@ DrawingView::DrawingView(QWidget * parent/*= NULL*/): QWidget(parent), document.objects.push_back(new Text(Vector(10, 83), "Here is some awesome text!")); #endif +printf("Document topLevel = %s\n", (document.topLevel ? "true" : "false")); /* Here we set the grid size in pixels--12 in this case. Initially, we have our zoom set to make this represent 12 inches at a zoom factor of 25%. (This is