setLayout(layout);
setMinimumSize(640,480);
+ // All real userIDs are positive, so we won't trigger the delete in postAction until setUserID is called
+ userID = -1;
+
QObject::connect(prompt, SIGNAL(connectToServer(QString, QString)), this, SIGNAL(connectToServer(QString, QString)));
QObject::connect(canvas, SIGNAL(mouseMovedTo(QPointF)), this, SLOT(handleMouseMoved(QPointF)));
QObject::connect(canvas, SIGNAL(segmentDrawn(QPointF,QPointF)), this, SLOT(handleSegmentDrawn(QPointF,QPointF)));
MouseMoveAction* action = new MouseMoveAction();
action->userID = userID;
action->pos = pos;
- localHistory.append(action);
emit actionHappened(action);
qDebug() << "shareboard.cpp: mouse moved to" << pos;
}