mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-18 08:31:16 +02:00
2021-07-07 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in sound panels that broke timer countdowns during play-out. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -484,7 +484,7 @@ void RDPanelButton::WriteKeycap(int secs)
|
||||
}
|
||||
}
|
||||
else {
|
||||
QString lenstr=RDGetTimeLength(button_active_length+1000,true,false);
|
||||
QString lenstr=RDGetTimeLength(1000*(1+secs),true,false);
|
||||
p->drawText(size().width()-p->fontMetrics().width(lenstr)-
|
||||
RDPANEL_BUTTON_MARGIN-2,
|
||||
size().height()-2-RDPANEL_BUTTON_MARGIN,
|
||||
@@ -492,7 +492,7 @@ void RDPanelButton::WriteKeycap(int secs)
|
||||
p->setFont(bigLabelFont());
|
||||
p->drawText((size().width()-p->fontMetrics().width(button_output_text))/2,
|
||||
74*size().height()/100,
|
||||
button_output_text);
|
||||
button_output_text);
|
||||
}
|
||||
}
|
||||
p->end();
|
||||
|
Reference in New Issue
Block a user