退回前一个版本

This commit is contained in:
2020-04-17 18:19:08 +08:00
parent 5b7b11d8b6
commit 33bd1f37a8
3 changed files with 17 additions and 9 deletions
+6 -6
View File
@@ -38,11 +38,11 @@ WayPointLine::WayPointLine(WayPointItem *from, WayPointItem *to, MapGraphicItem
connect(from, SIGNAL(aboutToBeDeleted(WayPointItem *)), this, SLOT(waypointdeleted()));
connect(to, SIGNAL(aboutToBeDeleted(WayPointItem *)), this, SLOT(waypointdeleted()));
if (myColor == Qt::green) {
this->setZValue(10);
this->setZValue(2);
} else if (myColor == Qt::yellow) {
this->setZValue(9);
this->setZValue(2);
} else if (myColor == Qt::red) {
this->setZValue(8);
this->setZValue(2);
}
connect(map, SIGNAL(childSetOpacity(qreal)), this, SLOT(setOpacitySlot(qreal)));
}
@@ -55,11 +55,11 @@ WayPointLine::WayPointLine(HomeItem *from, WayPointItem *to, MapGraphicItem *map
connect(to, SIGNAL(localPositionChanged(QPointF, WayPointItem *)), this, SLOT(refreshLocations()));
connect(to, SIGNAL(aboutToBeDeleted(WayPointItem *)), this, SLOT(waypointdeleted()));
if (myColor == Qt::green) {
this->setZValue(10);
this->setZValue(2);
} else if (myColor == Qt::yellow) {
this->setZValue(9);
this->setZValue(2);
} else if (myColor == Qt::red) {
this->setZValue(8);
this->setZValue(2);
}
connect(map, SIGNAL(childSetOpacity(qreal)), this, SLOT(setOpacitySlot(qreal)));
}