Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
03bdbe2c
Commit
03bdbe2c
authored
Nov 22, 2014
by
Mitchell Rosen
Browse files
Added '<1m ago'
parent
0af70883
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/gamesmodel.cpp
View file @
03bdbe2c
...
...
@@ -22,6 +22,9 @@ namespace {
* 300+ minutes will return "5+ hr ago"
*/
QString
prettyPrintSecsAgo
(
uint32_t
secs
)
{
if
(
secs
<
SECS_PER_MIN
)
{
return
QObject
::
tr
(
"<1m ago"
);
}
if
(
secs
<
SECS_PER_MIN
*
5
)
{
return
QObject
::
tr
(
"<5m ago"
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment