doc fixes

Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
Rachel Powers 2023-05-06 19:18:39 -07:00
parent 62a402d05a
commit 718abaae0e
2 changed files with 2 additions and 3 deletions

View File

@ -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.

View File

@ -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;