mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 23:17:21 -06:00
Fix compilation on MSVC2013 by moving unicode strings to
"unicodestrings.h". Closes #3059. Conflicts: src/core/misc.cpp src/gui/addnewtorrentdialog.cpp src/gui/options_imp.cpp src/gui/properties/propertieswidget.cpp src/gui/transferlistdelegate.cpp
This commit is contained in:
committed by
sledgehammer999
parent
07e2e88e79
commit
04e582793e
@@ -28,6 +28,7 @@
|
||||
* Contact : chris@qbittorrent.org
|
||||
*/
|
||||
|
||||
#include "core/unicodestrings.h"
|
||||
#include "misc.h"
|
||||
|
||||
#include <cmath>
|
||||
@@ -405,7 +406,7 @@ QString misc::magnetUriToHash(const QString& magnet_uri)
|
||||
QString misc::userFriendlyDuration(qlonglong seconds)
|
||||
{
|
||||
if (seconds < 0 || seconds >= MAX_ETA)
|
||||
return QString::fromUtf8("∞");
|
||||
return QString::fromUtf8(C_INFINITY);
|
||||
if (seconds == 0)
|
||||
return "0";
|
||||
if (seconds < 60)
|
||||
@@ -421,7 +422,7 @@ QString misc::userFriendlyDuration(qlonglong seconds)
|
||||
hours = hours - days * 24;
|
||||
if (days < 100)
|
||||
return QCoreApplication::translate("misc", "%1d %2h", "e.g: 2days 10hours").arg(QString::number(days)).arg(QString::number(hours));
|
||||
return QString::fromUtf8("∞");
|
||||
return QString::fromUtf8(C_INFINITY);
|
||||
}
|
||||
|
||||
QString misc::getUserIDString()
|
||||
|
||||
Reference in New Issue
Block a user