PlaylistListView: Remove newlines from tr text

Fixes #1564
This commit is contained in:
Jonas Kvinge
2024-09-26 02:33:50 +02:00
parent 5bcfd5dd25
commit 4b55150515
27 changed files with 135 additions and 155 deletions

View File

@@ -33,6 +33,8 @@
#include "playlistlistview.h"
#include "playlist.h"
using namespace Qt::StringLiterals;
namespace {
constexpr int kDragHoverTimeout = 500;
}
@@ -51,11 +53,12 @@ void PlaylistListView::paintEvent(QPaintEvent *event) {
bold_font.setBold(true);
p.setFont(bold_font);
p.drawText(rect, Qt::AlignHCenter | Qt::TextWordWrap,
tr("\n\n"
"You can favorite playlists by clicking the star icon next "
"to a playlist name\n\n"
"Favorited playlists will be saved here"));
p.drawText(rect,
Qt::AlignHCenter | Qt::TextWordWrap,
"\n\n"_L1 +
tr("You can favorite playlists by clicking the star icon next to a playlist name") +
"\n\n"_L1 +
tr("Favorited playlists will be saved here"));
}
else {
AutoExpandingTreeView::paintEvent(event);