Replace QLatin1String with operator _L1
This commit is contained in:
@@ -45,6 +45,7 @@
|
||||
#include "covermanager/albumcoverchoicecontroller.h"
|
||||
#include "playingwidget.h"
|
||||
|
||||
using namespace Qt::StringLiterals;
|
||||
using std::make_unique;
|
||||
|
||||
namespace {
|
||||
@@ -407,16 +408,16 @@ void PlayingWidget::UpdateDetailsText() {
|
||||
switch (mode_) {
|
||||
case Mode::SmallSongDetails:
|
||||
details_->setTextWidth(-1);
|
||||
html += QLatin1String("<p>");
|
||||
html += "<p>"_L1;
|
||||
break;
|
||||
case Mode::LargeSongDetails:
|
||||
details_->setTextWidth(desired_height_);
|
||||
html += QLatin1String("<p align=center>");
|
||||
html += "<p align=center>"_L1;
|
||||
break;
|
||||
}
|
||||
|
||||
html += QStringLiteral("%1<br/>%2<br/>%3").arg(song_.PrettyTitle().toHtmlEscaped(), song_.artist().toHtmlEscaped(), song_.album().toHtmlEscaped());
|
||||
html += QLatin1String("</p>");
|
||||
html += "</p>"_L1;
|
||||
|
||||
details_->setHtml(html);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user