From c627733320efcc4f32bb5f88b7788534c3b98111 Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Sun, 13 Oct 2013 18:37:48 +1000 Subject: [PATCH] Better session duration spacing --- sleepyhead/daily.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sleepyhead/daily.cpp b/sleepyhead/daily.cpp index 5300b3e6..1fdab7e8 100644 --- a/sleepyhead/daily.cpp +++ b/sleepyhead/daily.cpp @@ -1232,7 +1232,8 @@ void Daily::Load(QDate date) html+=QString("%5%6%7%3%2") .arg((*s)->session()) .arg(tooltip) - .arg(QString().sprintf("%ih %im %is",h,m,s1)) + .arg(QString("%1h %2m %3s").arg(h,2,10,QChar('0')).arg(m,2,10,QChar('0')).arg(s1,2,10,QChar('0'))) + //sprintf("%ih %im %is",h,m,s1)) .arg((b ? "on" : "off")) .arg(fd.date().toString(Qt::SystemLocaleShortDate)) .arg(fd.toString("HH:mm"))