mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Round waypoint TOTs in the UI.
This commit is contained in:
parent
bbb6251aa9
commit
de3ba5908f
@ -349,6 +349,7 @@ class QLiberationMap(QGraphicsView):
|
|||||||
if time is None:
|
if time is None:
|
||||||
tot = ""
|
tot = ""
|
||||||
else:
|
else:
|
||||||
|
time = datetime.timedelta(seconds=int(time.total_seconds()))
|
||||||
tot = f"{prefix} T+{time}"
|
tot = f"{prefix} T+{time}"
|
||||||
|
|
||||||
pen = QPen(QColor("black"), 0.3)
|
pen = QPen(QColor("black"), 0.3)
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
import itertools
|
import itertools
|
||||||
|
from datetime import timedelta
|
||||||
|
|
||||||
from PySide2.QtCore import QItemSelectionModel, QPoint
|
from PySide2.QtCore import QItemSelectionModel, QPoint
|
||||||
from PySide2.QtGui import QStandardItem, QStandardItemModel
|
from PySide2.QtGui import QStandardItem, QStandardItemModel
|
||||||
@ -81,4 +82,5 @@ class QFlightWaypointList(QTableView):
|
|||||||
time = flight.flight_plan.depart_time_for_waypoint(waypoint)
|
time = flight.flight_plan.depart_time_for_waypoint(waypoint)
|
||||||
if time is None:
|
if time is None:
|
||||||
return ""
|
return ""
|
||||||
|
time = timedelta(seconds=int(time.total_seconds()))
|
||||||
return f"{prefix}T+{time}"
|
return f"{prefix}T+{time}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user