mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-12 07:35:55 +01:00
2021-08-11 Fred Gleason <fredg@paravelsystems.com>
* Removed the 'SYSTEM.TIME_FORMAT' field from the database. * Added a 'SYSTEM.SHOW_TWELVE_HOUR_TIME' field to the database. * Incremented the database version 352. * Added 'RDSystem::showTwelveHourTime()' and 'RDSystem::setShowTwelveHourTime()' methods. * Refactored 'RDTimeEdit' to support 12 hour time format. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -41,12 +41,7 @@ HourSelector::HourSelector(QWidget *parent)
|
||||
mapper->setMapping(hour_button[i],i);
|
||||
connect(hour_button[i],SIGNAL(clicked()),mapper,SLOT(map()));
|
||||
}
|
||||
if(rda->timeFormatIs24Hour()) {
|
||||
for(unsigned i=0;i<24;i++) {
|
||||
hour_button[i]->setText(QString().sprintf("%02u",i));
|
||||
}
|
||||
}
|
||||
else {
|
||||
if(rda->showTwelveHourTime()) {
|
||||
hour_button[0]->setText(tr("12a"));
|
||||
hour_button[1]->setText(tr("1a"));
|
||||
hour_button[2]->setText(tr("2a"));
|
||||
@@ -72,6 +67,11 @@ HourSelector::HourSelector(QWidget *parent)
|
||||
hour_button[22]->setText(tr("10p"));
|
||||
hour_button[23]->setText(tr("11p"));
|
||||
}
|
||||
else {
|
||||
for(unsigned i=0;i<24;i++) {
|
||||
hour_button[i]->setText(QString().sprintf("%02u",i));
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Update Timer
|
||||
|
||||
Reference in New Issue
Block a user