From 39efd0e9ffa58be1f709775cf81baa544ce1fc64 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Fri, 1 Sep 2023 18:20:35 +0800 Subject: [PATCH] Remove thin space Generally qbt doesn't put a space before percentage symbol. This change makes the UI elements consistent. --- src/base/unicodestrings.h | 1 - src/gui/torrentcontentmodelitem.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/base/unicodestrings.h b/src/base/unicodestrings.h index d988965ff..102fe164a 100644 --- a/src/base/unicodestrings.h +++ b/src/base/unicodestrings.h @@ -37,7 +37,6 @@ inline const QString C_COPYRIGHT = u"©"_s; inline const QString C_INEQUALITY = u"≠"_s; inline const QString C_INFINITY = u"∞"_s; -inline const QString C_THIN_SPACE = u" "_s; inline const QString C_UTP = u"μTP"_s; inline const QString C_LOCALE_ARABIC = u"عربي"_s; diff --git a/src/gui/torrentcontentmodelitem.cpp b/src/gui/torrentcontentmodelitem.cpp index 45c9ba887..d226d0852 100644 --- a/src/gui/torrentcontentmodelitem.cpp +++ b/src/gui/torrentcontentmodelitem.cpp @@ -137,7 +137,7 @@ QString TorrentContentModelItem::displayData(const int column) const const QString value = (avail >= 1) ? u"100"_s : Utils::String::fromDouble((avail * 100), 1); - return (value + C_THIN_SPACE + u'%'); + return (value + u'%'); } default: Q_ASSERT(false);