Browse Source

Remove thin space

Generally qbt doesn't put a space before percentage symbol.
This change makes the UI elements consistent.
adaptive-webui-19844
Chocobo1 1 year ago
parent
commit
39efd0e9ff
  1. 1
      src/base/unicodestrings.h
  2. 2
      src/gui/torrentcontentmodelitem.cpp

1
src/base/unicodestrings.h

@ -37,7 +37,6 @@
inline const QString C_COPYRIGHT = u"©"_s; inline const QString C_COPYRIGHT = u"©"_s;
inline const QString C_INEQUALITY = u""_s; inline const QString C_INEQUALITY = u""_s;
inline const QString C_INFINITY = 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_UTP = u"μTP"_s;
inline const QString C_LOCALE_ARABIC = u"عربي"_s; inline const QString C_LOCALE_ARABIC = u"عربي"_s;

2
src/gui/torrentcontentmodelitem.cpp

@ -137,7 +137,7 @@ QString TorrentContentModelItem::displayData(const int column) const
const QString value = (avail >= 1) const QString value = (avail >= 1)
? u"100"_s ? u"100"_s
: Utils::String::fromDouble((avail * 100), 1); : Utils::String::fromDouble((avail * 100), 1);
return (value + C_THIN_SPACE + u'%'); return (value + u'%');
} }
default: default:
Q_ASSERT(false); Q_ASSERT(false);

Loading…
Cancel
Save