doc fixes
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
parent
62a402d05a
commit
718abaae0e
@ -23,8 +23,8 @@ namespace Time {
|
|||||||
QString prettifyDuration(int64_t duration);
|
QString prettifyDuration(int64_t duration);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Returns a string with short form time duration ie. `2days 1h3m4s56.0ms`
|
* @brief Returns a string with short form time duration ie. `2days 1h3m4s56.0ms`.
|
||||||
* miliseconds are only included if `percison` is greater than 0
|
* miliseconds are only included if `precision` is greater than 0.
|
||||||
*
|
*
|
||||||
* @param duration a number of seconds as floating point
|
* @param duration a number of seconds as floating point
|
||||||
* @param precision number of decmial points to display on fractons of a second, defualts to 0.
|
* @param precision number of decmial points to display on fractons of a second, defualts to 0.
|
||||||
|
@ -78,7 +78,6 @@ int StringUtils::naturalCompare(const QString& s1, const QString& s2, Qt::CaseSe
|
|||||||
return QString::compare(s1, s2, cs);
|
return QString::compare(s1, s2, cs);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Truncate a url while keeping its readability py placing the `...` in the middle of the path
|
|
||||||
QString StringUtils::truncateUrlHumanFriendly(QUrl &url, int max_len, bool hard_limit)
|
QString StringUtils::truncateUrlHumanFriendly(QUrl &url, int max_len, bool hard_limit)
|
||||||
{
|
{
|
||||||
auto display_options = QUrl::RemoveUserInfo | QUrl::RemoveFragment | QUrl::NormalizePathSegments;
|
auto display_options = QUrl::RemoveUserInfo | QUrl::RemoveFragment | QUrl::NormalizePathSegments;
|
||||||
|
Loading…
Reference in New Issue
Block a user