Use QStringLiteral
This commit is contained in:
@@ -127,8 +127,8 @@ PlaylistView::PlaylistView(QWidget *parent)
|
||||
inhibit_autoscroll_(false),
|
||||
currently_autoscrolling_(false),
|
||||
row_height_(-1),
|
||||
currenttrack_play_(":/pictures/currenttrack_play.png"),
|
||||
currenttrack_pause_(":/pictures/currenttrack_pause.png"),
|
||||
currenttrack_play_(QStringLiteral(":/pictures/currenttrack_play.png")),
|
||||
currenttrack_pause_(QStringLiteral(":/pictures/currenttrack_pause.png")),
|
||||
cached_current_row_row_(-1),
|
||||
drop_indicator_row_(-1),
|
||||
drag_over_(false),
|
||||
@@ -219,8 +219,8 @@ void PlaylistView::SetItemDelegates() {
|
||||
setItemDelegateForColumn(Playlist::Column_DateCreated, new DateItemDelegate(this));
|
||||
setItemDelegateForColumn(Playlist::Column_DateModified, new DateItemDelegate(this));
|
||||
|
||||
setItemDelegateForColumn(Playlist::Column_Samplerate, new PlaylistDelegateBase(this, ("Hz")));
|
||||
setItemDelegateForColumn(Playlist::Column_Bitdepth, new PlaylistDelegateBase(this, ("Bit")));
|
||||
setItemDelegateForColumn(Playlist::Column_Samplerate, new PlaylistDelegateBase(this, tr("Hz")));
|
||||
setItemDelegateForColumn(Playlist::Column_Bitdepth, new PlaylistDelegateBase(this, tr("Bit")));
|
||||
setItemDelegateForColumn(Playlist::Column_Bitrate, new PlaylistDelegateBase(this, tr("kbps")));
|
||||
|
||||
setItemDelegateForColumn(Playlist::Column_Filename, new NativeSeparatorsDelegate(this));
|
||||
@@ -404,9 +404,9 @@ void PlaylistView::RestoreHeaderState() {
|
||||
|
||||
void PlaylistView::ReloadBarPixmaps() {
|
||||
|
||||
currenttrack_bar_left_ = LoadBarPixmap(":/pictures/currenttrack_bar_left.png", true);
|
||||
currenttrack_bar_mid_ = LoadBarPixmap(":/pictures/currenttrack_bar_mid.png", false);
|
||||
currenttrack_bar_right_ = LoadBarPixmap(":/pictures/currenttrack_bar_right.png", true);
|
||||
currenttrack_bar_left_ = LoadBarPixmap(QStringLiteral(":/pictures/currenttrack_bar_left.png"), true);
|
||||
currenttrack_bar_mid_ = LoadBarPixmap(QStringLiteral(":/pictures/currenttrack_bar_mid.png"), false);
|
||||
currenttrack_bar_right_ = LoadBarPixmap(QStringLiteral(":/pictures/currenttrack_bar_right.png"), true);
|
||||
|
||||
}
|
||||
|
||||
@@ -452,8 +452,8 @@ QList<QPixmap> PlaylistView::LoadBarPixmap(const QString &filename, const bool k
|
||||
|
||||
void PlaylistView::LoadTinyPlayPausePixmaps(const int desired_size) {
|
||||
|
||||
QImage image_play = QImage(":/pictures/tiny-play.png").scaled(desired_size, desired_size, Qt::KeepAspectRatio, Qt::SmoothTransformation);
|
||||
QImage image_pause = QImage(":/pictures/tiny-pause.png").scaled(desired_size, desired_size, Qt::KeepAspectRatio, Qt::SmoothTransformation);
|
||||
QImage image_play = QImage(QStringLiteral(":/pictures/tiny-play.png")).scaled(desired_size, desired_size, Qt::KeepAspectRatio, Qt::SmoothTransformation);
|
||||
QImage image_pause = QImage(QStringLiteral(":/pictures/tiny-pause.png")).scaled(desired_size, desired_size, Qt::KeepAspectRatio, Qt::SmoothTransformation);
|
||||
pixmap_tinyplay_ = QPixmap::fromImage(image_play);
|
||||
pixmap_tinypause_ = QPixmap::fromImage(image_pause);
|
||||
|
||||
@@ -1397,7 +1397,7 @@ void PlaylistView::CopyCurrentSongToClipboard() const {
|
||||
|
||||
QMimeData *mime_data = new QMimeData;
|
||||
mime_data->setUrls(QList<QUrl>() << url);
|
||||
mime_data->setText(columns.join(" - "));
|
||||
mime_data->setText(columns.join(QStringLiteral(" - ")));
|
||||
|
||||
QApplication::clipboard()->setMimeData(mime_data);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user