mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-18 08:31:16 +02: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:
@@ -61,13 +61,18 @@ QSize TestDatetimes::sizeHint() const
|
||||
}
|
||||
|
||||
|
||||
int TestDatetimes::exec(const QString &long_date_fmt,\
|
||||
const QString &short_date_fmt,
|
||||
const QString &time_fmt)
|
||||
int TestDatetimes::exec(const QString &long_date_fmt,
|
||||
const QString &short_date_fmt,
|
||||
bool use12hour)
|
||||
{
|
||||
d_long_date_label->setText(d_sample_datetime.toString(long_date_fmt));
|
||||
d_short_date_label->setText(d_sample_datetime.toString(short_date_fmt));
|
||||
d_time_label->setText(d_sample_datetime.toString(time_fmt));
|
||||
if(use12hour) {
|
||||
d_time_label->setText(d_sample_datetime.toString("h:mm:ss ap"));
|
||||
}
|
||||
else {
|
||||
d_time_label->setText(d_sample_datetime.toString("hh:mm:ss"));
|
||||
}
|
||||
|
||||
return QDialog::exec();
|
||||
}
|
||||
|
Reference in New Issue
Block a user