Use QStringLiteral
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user