Use QStringLiteral

This commit is contained in:
Jonas Kvinge
2024-04-09 23:20:26 +02:00
parent 3cfffa5fbb
commit 58944993b8
233 changed files with 3885 additions and 3885 deletions

View File

@@ -66,27 +66,27 @@ void RadioView::contextMenuEvent(QContextMenuEvent *e) {
if (!menu_) {
menu_ = new QMenu;
action_playlist_append_ = new QAction(IconLoader::Load("media-playback-start"), tr("Append to current playlist"), this);
action_playlist_append_ = new QAction(IconLoader::Load(QStringLiteral("media-playback-start")), tr("Append to current playlist"), this);
QObject::connect(action_playlist_append_, &QAction::triggered, this, &RadioView::AddToPlaylist);
menu_->addAction(action_playlist_append_);
action_playlist_replace_ = new QAction(IconLoader::Load("media-playback-start"), tr("Replace current playlist"), this);
action_playlist_replace_ = new QAction(IconLoader::Load(QStringLiteral("media-playback-start")), tr("Replace current playlist"), this);
QObject::connect(action_playlist_replace_, &QAction::triggered, this, &RadioView::ReplacePlaylist);
menu_->addAction(action_playlist_replace_);
action_playlist_new_ = new QAction(IconLoader::Load("document-new"), tr("Open in new playlist"), this);
action_playlist_new_ = new QAction(IconLoader::Load(QStringLiteral("document-new")), tr("Open in new playlist"), this);
QObject::connect(action_playlist_new_, &QAction::triggered, this, &RadioView::OpenInNewPlaylist);
menu_->addAction(action_playlist_new_);
action_homepage_ = new QAction(IconLoader::Load("download"), tr("Open homepage"), this);
action_homepage_ = new QAction(IconLoader::Load(QStringLiteral("download")), tr("Open homepage"), this);
QObject::connect(action_homepage_, &QAction::triggered, this, &RadioView::Homepage);
menu_->addAction(action_homepage_);
action_donate_ = new QAction(IconLoader::Load("download"), tr("Donate"), this);
action_donate_ = new QAction(IconLoader::Load(QStringLiteral("download")), tr("Donate"), this);
QObject::connect(action_donate_, &QAction::triggered, this, &RadioView::Donate);
menu_->addAction(action_donate_);
menu_->addAction(IconLoader::Load("view-refresh"), tr("Refresh channels"), this, &RadioView::GetChannels);
menu_->addAction(IconLoader::Load(QStringLiteral("view-refresh")), tr("Refresh channels"), this, &RadioView::GetChannels);
}
const bool channels_selected = !selectedIndexes().isEmpty();