2021-04-26 Fred Gleason <fredg@paravelsystems.com>

* Fixed regressions caused by changes in behavior in the null
	constructor of 'QTime' between Qt4 and Qt5.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-04-26 11:28:14 -04:00
parent ca51019b4f
commit 65d249a9e1
22 changed files with 80 additions and 77 deletions

View File

@@ -147,13 +147,13 @@ void PostCounter::UpdateDisplay()
if(post_offset_valid) {
if(offset<-POST_COUNTER_MARGIN) {
state="-"+QTime().addMSecs(-offset).toString();
state="-"+QTime(0,0,0).addMSecs(-offset).toString();
setPalette(post_early_palette);
color=POSTPOINT_EARLY_COLOR;
}
else {
if(offset>POST_COUNTER_MARGIN) {
state="+"+QTime().addMSecs(offset).toString();
state="+"+QTime(0,0,0).addMSecs(offset).toString();
setPalette(post_late_palette);
color=POSTPOINT_LATE_COLOR;
}