summaryrefslogtreecommitdiffstats
path: root/qt-gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-gui.cpp')
-rw-r--r--qt-gui.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/qt-gui.cpp b/qt-gui.cpp
index 9d6dde45f..f342e20e1 100644
--- a/qt-gui.cpp
+++ b/qt-gui.cpp
@@ -391,12 +391,12 @@ QString get_dive_date_string(timestamp_t when)
struct tm tm;
utc_mkdate(when, &tm);
return translate("gettextFromC", "%1, %2 %3, %4 %5:%6")
- .arg(weekday(tm.tm_wday))
- .arg(monthname(tm.tm_mon))
- .arg(tm.tm_mday)
- .arg(tm.tm_year + 1900)
- .arg(tm.tm_hour, 2, 10, QChar('0'))
- .arg(tm.tm_min, 2, 10, QChar('0'));
+ .arg(weekday(tm.tm_wday))
+ .arg(monthname(tm.tm_mon))
+ .arg(tm.tm_mday)
+ .arg(tm.tm_year + 1900)
+ .arg(tm.tm_hour, 2, 10, QChar('0'))
+ .arg(tm.tm_min, 2, 10, QChar('0'));
}
QString get_short_dive_date_string(timestamp_t when)
@@ -404,11 +404,11 @@ QString get_short_dive_date_string(timestamp_t when)
struct tm tm;
utc_mkdate(when, &tm);
return translate("gettextFromC", "%1 %2, %3\n%4:%5")
- .arg(monthname(tm.tm_mon))
- .arg(tm.tm_mday)
- .arg(tm.tm_year + 1900)
- .arg(tm.tm_hour, 2, 10, QChar('0'))
- .arg(tm.tm_min, 2, 10, QChar('0'));
+ .arg(monthname(tm.tm_mon))
+ .arg(tm.tm_mday)
+ .arg(tm.tm_year + 1900)
+ .arg(tm.tm_hour, 2, 10, QChar('0'))
+ .arg(tm.tm_min, 2, 10, QChar('0'));
}
QString get_trip_date_string(timestamp_t when, int nr)
@@ -417,11 +417,11 @@ QString get_trip_date_string(timestamp_t when, int nr)
utc_mkdate(when, &tm);
if (nr != 1)
return translate("gettextFromC", "%1 %2 (%3 dives)")
- .arg(monthname(tm.tm_mon))
- .arg(tm.tm_year + 1900)
- .arg(nr);
+ .arg(monthname(tm.tm_mon))
+ .arg(tm.tm_year + 1900)
+ .arg(nr);
else
return translate("gettextFromC", "%1 %2 (1 dive)")
- .arg(monthname(tm.tm_mon))
- .arg(tm.tm_year + 1900);
+ .arg(monthname(tm.tm_mon))
+ .arg(tm.tm_year + 1900);
}