-// connect(toolAction, SIGNAL(ObjectReady(Object *)), this,
-// SLOT(AddNewObjectToDocument(Object *)));
-//This works, now how to scroll it???
-// QPixmap pm(256, 256);
- QPainter pmp(&gridBackground);
-#if 0
- pmp.fillRect(0, 0, 256, 256, Qt::lightGray);
-
- pmp.fillRect(0, 64, 64, 64, Qt::darkGray);
- pmp.fillRect(0, 192, 64, 64, Qt::darkGray);
- pmp.fillRect(64, 0, 64, 64, Qt::darkGray);
- pmp.fillRect(64, 128, 64, 64, Qt::darkGray);
- pmp.fillRect(128, 64, 64, 64, Qt::darkGray);
- pmp.fillRect(128, 192, 64, 64, Qt::darkGray);
- pmp.fillRect(192, 0, 64, 64, Qt::darkGray);
- pmp.fillRect(192, 128, 64, 64, Qt::darkGray);
-#else
- pmp.fillRect(0, 0, 256, 256, QColor(240, 240, 240));
- pmp.setPen(QPen(QColor(210, 210, 255), 2.0, Qt::SolidLine));
- for(int i=0; i<255; i+=12)
- pmp.drawLine(i, 0, i, 255);
- for(int i=0; i<255; i+=12)
- pmp.drawLine(0, i, 255, i);
-#endif
- pmp.end();
- UpdateGridBackground();
-}
-