]> Shamusworld >> Repos - architektonas/blobdiff - src/widgets/qg_graphicview.cpp
Partially fixed thumbnail rendering on Library Browser.
[architektonas] / src / widgets / qg_graphicview.cpp
index 40aaa7f07eae0cb583c1ba69bef7cb51c475a634..963738c4d09c2274a61002589eb971c6c6d91fbc 100644 (file)
@@ -810,7 +810,7 @@ of VectorWorks & etc. as well...
 
 // Qt4 handles double buffering of screen writes now, so this needs
 // a rewrite.
-#warning "!!! Need to pass a valid QPainter to drawIt() !!!"
+//#warning "!!! Need to pass a valid QPainter to drawIt() !!!"
 
        QPainter pntr(this);
        pntr.setBackgroundMode(Qt::OpaqueMode);
@@ -823,30 +823,13 @@ of VectorWorks & etc. as well...
 //just may go that way...
        drawIt();
 
-       // Draw the snapper first, we want to be able to see the preview on top of
-       // this...
+       // Draw the snapper first, because we want to be able to see the preview on
+       // top of this...
        if (snapper.Visible())
                snapper.Draw(this, painter);
 
        if (preview.Visible())
-#if 0
-       {
-               painter->setPen(RS_Pen(RS_Color(60, 255, 80), RS2::Width00, RS2::SolidLine));
-               painter->setOffset(preview.Offset());
-
-               // We have to traverse the container ourselves, because RS_Container::draw()
-               // uses drawEntity() instead of drawEntityPlain()...
-               for(RS_Entity * e=preview.firstEntity(RS2::ResolveNone); e!=NULL;
-                       e = preview.nextEntity(RS2::ResolveNone))
-               {
-                       drawEntityPlain(e);
-               }
-
-               painter->setOffset(Vector(0, 0));
-       }
-#else
                preview.Draw(this, painter);
-#endif
 
        delete painter;
        painter = NULL;