equal
deleted
inserted
replaced
59 diagramScene = new DiagramScene(); |
59 diagramScene = new DiagramScene(); |
60 QBrush pixmapBrush(QPixmap(":/images/cross.png").scaled(30, 30)); |
60 QBrush pixmapBrush(QPixmap(":/images/cross.png").scaled(30, 30)); |
61 diagramScene->setBackgroundBrush(pixmapBrush); |
61 diagramScene->setBackgroundBrush(pixmapBrush); |
62 diagramScene->setSceneRect(QRect(0, 0, 500, 500)); |
62 diagramScene->setSceneRect(QRect(0, 0, 500, 500)); |
63 |
63 |
64 connect(diagramScene, SIGNAL(itemMoved(DiagramItem *, const QPointF &)), |
64 connect(diagramScene, SIGNAL(itemMoved(DiagramItem*,QPointF)), |
65 this, SLOT(itemMoved(DiagramItem *, const QPointF &))); |
65 this, SLOT(itemMoved(DiagramItem*,QPointF))); |
66 |
66 |
67 setWindowTitle("Undo Framework"); |
67 setWindowTitle("Undo Framework"); |
68 QGraphicsView *view = new QGraphicsView(diagramScene); |
68 QGraphicsView *view = new QGraphicsView(diagramScene); |
69 setCentralWidget(view); |
69 setCentralWidget(view); |
70 resize(700, 500); |
70 resize(700, 500); |