mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-12-05 08:10:21 +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:
@@ -103,11 +103,11 @@ void RDLogModel::setFont(const QFont &font)
|
||||
//
|
||||
// Calculate Minimum Column Widths
|
||||
//
|
||||
if(rda->timeFormatIs24Hour()) {
|
||||
d_size_hints[0]=QSize(40+d_bold_fms->width("T00:00:00"),0);
|
||||
if(rda->showTwelveHourTime()) {
|
||||
d_size_hints[0]=QSize(40+d_bold_fms->width("T00:00:00.0 AM"),0);
|
||||
}
|
||||
else {
|
||||
d_size_hints[0]=QSize(40+d_bold_fms->width("T00:00:00 AM"),0);
|
||||
d_size_hints[0]=QSize(40+d_bold_fms->width("T00:00:00.0"),0);
|
||||
}
|
||||
width=d_bold_fms->width(tr("PLAY"));
|
||||
if(d_bold_fms->width(tr("SEGUE"))>width) {
|
||||
|
||||
Reference in New Issue
Block a user