This commit is contained in:
2020-04-13 21:37:30 +08:00
parent 0e2a05af55
commit 7db85cc4c3
13 changed files with 139 additions and 14 deletions
+3
View File
@@ -181,6 +181,9 @@ void MapGraphicItem::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
}
void MapGraphicItem::mousePressEvent(QGraphicsSceneMouseEvent *event)
{
//qDebug() << "MapGraphicItem" << "press";
if (!IsMouseOverMarker()) {
if (event->button() == config->DragButton && CanDragMap() && !((event->modifiers() == Qt::ShiftModifier) || (event->modifiers() == Qt::ControlModifier))) {
core->mouseDown.SetX(event->pos().x());