mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-12 09:33:37 +02:00
2021-08-04 Fred Gleason <fredg@paravelsystems.com>
* Modified rdairplay(1) to use the standard date/time formatting strings. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -56,24 +56,10 @@ PostCounter::PostCounter(QWidget *parent)
|
||||
UpdateDisplay();
|
||||
}
|
||||
|
||||
void PostCounter::setTimeMode(RDAirPlayConf::TimeMode mode)
|
||||
{
|
||||
switch(mode) {
|
||||
case RDAirPlayConf::TwentyFourHour:
|
||||
post_time_format="hh:mm:ss";
|
||||
break;
|
||||
|
||||
case RDAirPlayConf::TwelveHour:
|
||||
post_time_format="h:mm:ss ap";
|
||||
break;
|
||||
}
|
||||
UpdateDisplay();
|
||||
}
|
||||
|
||||
QSize PostCounter::sizeHint() const
|
||||
{
|
||||
return QSize(180,80);
|
||||
// return QSize(200,60);
|
||||
return QSize(200,80);
|
||||
}
|
||||
|
||||
|
||||
@@ -144,8 +130,7 @@ void PostCounter::UpdateDisplay()
|
||||
}
|
||||
|
||||
if(isEnabled()&&(!post_time.isNull())) {
|
||||
point= trUtf8("Next Timed Start") + " [" + post_time.toString(post_time_format) + "]";
|
||||
|
||||
point=tr("Next Timed Start")+" ["+rda->timeString(post_time)+"]";
|
||||
if(post_offset_valid) {
|
||||
if(offset<-POST_COUNTER_MARGIN) {
|
||||
state="-"+QTime(0,0,0).addMSecs(-offset).toString();
|
||||
|
Reference in New Issue
Block a user